Record Class OnnxModel.Attribute
java.lang.Object
java.lang.Record
ai.beestream.jitnn.onnx.OnnxModel.Attribute
- Enclosing class:
OnnxModel
public static record OnnxModel.Attribute(String name, int type, float f, long i, String s, OnnxModel.TensorData t, float[] floats, long[] ints, OnnxModel.Graph g)
extends Record
An attribute of a node; which fields are set depends on its type.
-
Constructor Summary
ConstructorsConstructorDescriptionAttribute(String name, int type, float f, long i, String s, OnnxModel.TensorData t, float[] floats, long[] ints, OnnxModel.Graph g) Creates an instance of aAttributerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.floatf()Returns the value of thefrecord component.float[]floats()Returns the value of thefloatsrecord component.g()Returns the value of thegrecord component.final inthashCode()Returns a hash code value for this object.longi()Returns the value of theirecord component.long[]ints()Returns the value of theintsrecord component.name()Returns the value of thenamerecord component.s()Returns the value of thesrecord component.t()Returns the value of thetrecord component.final StringtoString()Returns a string representation of this record class.inttype()Returns the value of thetyperecord component.
-
Constructor Details
-
Attribute
public Attribute(String name, int type, float f, long i, String s, OnnxModel.TensorData t, float[] floats, long[] ints, OnnxModel.Graph g) Creates an instance of aAttributerecord class.- Parameters:
name- the value for thenamerecord componenttype- the value for thetyperecord componentf- the value for thefrecord componenti- the value for theirecord components- the value for thesrecord componentt- the value for thetrecord componentfloats- the value for thefloatsrecord componentints- the value for theintsrecord componentg- the value for thegrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
type
public int type()Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
f
public float f()Returns the value of thefrecord component.- Returns:
- the value of the
frecord component
-
i
public long i()Returns the value of theirecord component.- Returns:
- the value of the
irecord component
-
s
Returns the value of thesrecord component.- Returns:
- the value of the
srecord component
-
t
Returns the value of thetrecord component.- Returns:
- the value of the
trecord component
-
floats
public float[] floats()Returns the value of thefloatsrecord component.- Returns:
- the value of the
floatsrecord component
-
ints
public long[] ints()Returns the value of theintsrecord component.- Returns:
- the value of the
intsrecord component
-
g
Returns the value of thegrecord component.- Returns:
- the value of the
grecord component
-