Record Class OnnxModel.Graph
java.lang.Object
java.lang.Record
ai.beestream.jitnn.onnx.OnnxModel.Graph
- Enclosing class:
OnnxModel
public static record OnnxModel.Graph(String name, List<OnnxModel.Node> nodes, Map<String, OnnxModel.TensorData> initializers, List<OnnxModel.ValueInfo> inputs, List<OnnxModel.ValueInfo> outputs)
extends Record
A graph: its nodes in topological order, the initializers (weights and constants) by name, and its
inputs and outputs.
-
Constructor Summary
ConstructorsConstructorDescriptionGraph(String name, List<OnnxModel.Node> nodes, Map<String, OnnxModel.TensorData> initializers, List<OnnxModel.ValueInfo> inputs, List<OnnxModel.ValueInfo> outputs) Creates an instance of aGraphrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinitializersrecord component.inputs()Returns the value of theinputsrecord component.name()Returns the value of thenamerecord component.nodes()Returns the value of thenodesrecord component.outputs()Returns the value of theoutputsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Graph
public Graph(String name, List<OnnxModel.Node> nodes, Map<String, OnnxModel.TensorData> initializers, List<OnnxModel.ValueInfo> inputs, List<OnnxModel.ValueInfo> outputs) Creates an instance of aGraphrecord class.- Parameters:
name- the value for thenamerecord componentnodes- the value for thenodesrecord componentinitializers- the value for theinitializersrecord componentinputs- the value for theinputsrecord componentoutputs- the value for theoutputsrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
nodes
Returns the value of thenodesrecord component.- Returns:
- the value of the
nodesrecord component
-
initializers
Returns the value of theinitializersrecord component.- Returns:
- the value of the
initializersrecord component
-
inputs
Returns the value of theinputsrecord component.- Returns:
- the value of the
inputsrecord component
-
outputs
Returns the value of theoutputsrecord component.- Returns:
- the value of the
outputsrecord component
-