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

    Constructors
    Constructor
    Description
    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 a Attribute record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    float
    f()
    Returns the value of the f record component.
    float[]
    Returns the value of the floats record component.
    g()
    Returns the value of the g record component.
    final int
    Returns a hash code value for this object.
    long
    i()
    Returns the value of the i record component.
    long[]
    Returns the value of the ints record component.
    Returns the value of the name record component.
    s()
    Returns the value of the s record component.
    t()
    Returns the value of the t record component.
    final String
    Returns a string representation of this record class.
    int
    Returns the value of the type record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a Attribute record class.
      Parameters:
      name - the value for the name record component
      type - the value for the type record component
      f - the value for the f record component
      i - the value for the i record component
      s - the value for the s record component
      t - the value for the t record component
      floats - the value for the floats record component
      ints - the value for the ints record component
      g - the value for the g record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • type

      public int type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • f

      public float f()
      Returns the value of the f record component.
      Returns:
      the value of the f record component
    • i

      public long i()
      Returns the value of the i record component.
      Returns:
      the value of the i record component
    • s

      public String s()
      Returns the value of the s record component.
      Returns:
      the value of the s record component
    • t

      Returns the value of the t record component.
      Returns:
      the value of the t record component
    • floats

      public float[] floats()
      Returns the value of the floats record component.
      Returns:
      the value of the floats record component
    • ints

      public long[] ints()
      Returns the value of the ints record component.
      Returns:
      the value of the ints record component
    • g

      public OnnxModel.Graph g()
      Returns the value of the g record component.
      Returns:
      the value of the g record component