Class Node

java.lang.Object
ai.beestream.jitnn.engine.Node

public final class Node extends Object
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

    Fields
    Modifier and Type
    Field
    Description
    final 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.Op
    The operator applied.
    final Tensor[]
    The operator's outputs.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Node(ai.beestream.jitnn.engine.Op op, Tensor[] inputs, Tensor[] outputs, int[] iattr, float[] fattr, boolean traced)
    An application of op; a null attribute array becomes an empty one.
  • Method Summary

    Modifier and Type
    Method
    Description
    in(int i)
    Input i.
    boolean
    Whether the node has run (always true for an untraced node).
    out(int i)
    Output i.
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • op

      public final ai.beestream.jitnn.engine.Op op
      The operator applied.
    • inputs

      public final Tensor[] inputs
      The operator's inputs.
    • outputs

      public final Tensor[] outputs
      The operator's outputs.
    • iattr

      public final int[] iattr
      The integer attributes of this application (shapes, axes, flags); never null.
    • fattr

      public final float[] fattr
      The float attributes of this application (scales, constants); never null.
  • Constructor Details

  • Method Details

    • isExecuted

      public boolean isExecuted()
      Whether the node has run (always true for an untraced node).
    • in

      public Tensor in(int i)
      Input i.
    • out

      public Tensor out(int i)
      Output i.
    • toString

      public String toString()
      Overrides:
      toString in class Object