Class NodeInfo

java.lang.Object
ai.onnxruntime.NodeInfo

public class NodeInfo extends Object
The info for an input or output node from an ONNX model.
  • Constructor Details

    • NodeInfo

      public NodeInfo(String name, ValueInfo info)
      Creates a node info object from the supplied name and value info.

      Called from native code.

      Parameters:
      name - The name of the node.
      info - The ValueInfo for this node.
  • Method Details

    • getName

      public String getName()
      The name of the node.
      Returns:
      The name.
    • getInfo

      public ValueInfo getInfo()
      The type and shape information of this node.

      WARNING: MapInfo and SequenceInfo instances returned by this type will have insufficient information in them as it's not available from the model without an example output.

      Returns:
      The information of the value.
    • toString

      public String toString()
      Overrides:
      toString in class Object