Class Node
java.lang.Object
ai.beestream.jitnn.engine.Node
One operator application. Traced nodes wait in the thread's
Trace until a sync point
runs them; untraced nodes (views) exist only so autograd can differentiate through them.-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal float[]The float attributes of this application (scales, constants); never null.final int[]The integer attributes of this application (shapes, axes, flags); never null.final Tensor[]The operator's inputs.final ai.beestream.jitnn.engine.OpThe operator applied.final Tensor[]The operator's outputs. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
op
public final ai.beestream.jitnn.engine.Op opThe operator applied. -
inputs
The operator's inputs. -
outputs
The operator's outputs. -
iattr
public final int[] iattrThe integer attributes of this application (shapes, axes, flags); never null. -
fattr
public final float[] fattrThe float attributes of this application (scales, constants); never null.
-
-
Constructor Details
-
Node
public Node(ai.beestream.jitnn.engine.Op op, Tensor[] inputs, Tensor[] outputs, int[] iattr, float[] fattr, boolean traced) An application ofop; a null attribute array becomes an empty one. Untraced nodes (views) never run, they exist for autograd. Operators create nodes throughTensor.record(Op, Tensor[], Tensor[], int[], float[], boolean).
-
-
Method Details
-
isExecuted
public boolean isExecuted()Whether the node has run (always true for an untraced node). -
in
Inputi. -
out
Outputi. -
toString
-