Record Class GgufTensorInfo
java.lang.Object
java.lang.Record
ai.beestream.jitnn.gguf.GgufTensorInfo
- Record Components:
name- the tensor's name, for exampleblk.0.attn_q.weightshape- the shape in jitNN order, outermost axis first; GGUF lists axes innermost first, so a weight stored as[in, out]there is[out, in]heretypeId- the ggml type idtype- the ggml type, ornullfor an id this reader does not knowoffset- the byte offset of the data from the start of the filebytes- the size of the data in bytes, or -1 when the type is unknown
-
Constructor Summary
ConstructorsConstructorDescriptionGgufTensorInfo(String name, long[] shape, int typeId, GgmlType type, long offset, long bytes) Creates an instance of aGgufTensorInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongbytes()Returns the value of thebytesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.longnumel()Number of values.longoffset()Returns the value of theoffsetrecord component.long[]shape()Returns the value of theshaperecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.inttypeId()Returns the value of thetypeIdrecord component.
-
Constructor Details
-
GgufTensorInfo
public GgufTensorInfo(String name, long[] shape, int typeId, GgmlType type, long offset, long bytes) Creates an instance of aGgufTensorInforecord class.- Parameters:
name- the value for thenamerecord componentshape- the value for theshaperecord componenttypeId- the value for thetypeIdrecord componenttype- the value for thetyperecord componentoffset- the value for theoffsetrecord componentbytes- the value for thebytesrecord component
-
-
Method Details
-
numel
public long numel()Number of values. -
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
-
shape
-
typeId
-
type
-
offset
-
bytes
-