Record Class OnnxModel.Node
java.lang.Object
java.lang.Record
ai.beestream.jitnn.onnx.OnnxModel.Node
- Enclosing class:
OnnxModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAttributekey, or null when the node does not set it.floatFloat attributekey, orfallbackwhen the node does not set it.Returns the value of theattributesrecord component.longInteger attributekey, orfallbackwhen the node does not set it.long[]Integer-list attributekey, orfallbackwhen the node does not set it.attrString(String key, String fallback) String attributekey, orfallbackwhen the node does not set it.domain()Returns the value of thedomainrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.input(int k) Input k, or "" when absent (ONNX marks skipped optional inputs with "").inputs()Returns the value of theinputsrecord component.name()Returns the value of thenamerecord component.opType()Returns the value of theopTyperecord component.outputs()Returns the value of theoutputsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Node
public Node(String name, String opType, String domain, List<String> inputs, List<String> outputs, Map<String, OnnxModel.Attribute> attributes) Creates an instance of aNoderecord class.- Parameters:
name- the value for thenamerecord componentopType- the value for theopTyperecord componentdomain- the value for thedomainrecord componentinputs- the value for theinputsrecord componentoutputs- the value for theoutputsrecord componentattributes- the value for theattributesrecord component
-
-
Method Details
-
attr
Attributekey, or null when the node does not set it. -
attrInt
Integer attributekey, orfallbackwhen the node does not set it. -
attrFloat
Float attributekey, orfallbackwhen the node does not set it. -
attrInts
Integer-list attributekey, orfallbackwhen the node does not set it. -
attrString
-
input
Input k, or "" when absent (ONNX marks skipped optional inputs with ""). -
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
-
opType
Returns the value of theopTyperecord component.- Returns:
- the value of the
opTyperecord component
-
domain
Returns the value of thedomainrecord component.- Returns:
- the value of the
domainrecord component
-
inputs
-
outputs
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-