Record Class PackedMatmulShape
java.lang.Object
java.lang.Record
io.github.kirstenali.deepj.tensor.PackedMatmulShape
public record PackedMatmulShape(int leftRows, int rightRows, int rows, int cols, int inner, boolean transposeLeft, boolean transposeRight)
extends Record
Logical dimensions for the compatibility API; never inferred from a GPU allocation's physical rows.
-
Constructor Summary
ConstructorsConstructorDescriptionPackedMatmulShape(int leftRows, int rightRows, int rows, int cols, int inner, boolean transposeLeft, boolean transposeRight) Creates an instance of aPackedMatmulShaperecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcols()Returns the value of thecolsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intinner()Returns the value of theinnerrecord component.intleftRows()Returns the value of theleftRowsrecord component.static PackedMatmulShapeintReturns the value of therightRowsrecord component.introws()Returns the value of therowsrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thetransposeLeftrecord component.booleanReturns the value of thetransposeRightrecord component.
-
Constructor Details
-
PackedMatmulShape
public PackedMatmulShape(int leftRows, int rightRows, int rows, int cols, int inner, boolean transposeLeft, boolean transposeRight) Creates an instance of aPackedMatmulShaperecord class.- Parameters:
leftRows- the value for theleftRowsrecord componentrightRows- the value for therightRowsrecord componentrows- the value for therowsrecord componentcols- the value for thecolsrecord componentinner- the value for theinnerrecord componenttransposeLeft- the value for thetransposeLeftrecord componenttransposeRight- the value for thetransposeRightrecord component
-
-
Method Details
-
of
-
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. -
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. -
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 with '=='. -
leftRows
public int leftRows()Returns the value of theleftRowsrecord component.- Returns:
- the value of the
leftRowsrecord component
-
rightRows
public int rightRows()Returns the value of therightRowsrecord component.- Returns:
- the value of the
rightRowsrecord component
-
rows
public int rows()Returns the value of therowsrecord component.- Returns:
- the value of the
rowsrecord component
-
cols
public int cols()Returns the value of thecolsrecord component.- Returns:
- the value of the
colsrecord component
-
inner
public int inner()Returns the value of theinnerrecord component.- Returns:
- the value of the
innerrecord component
-
transposeLeft
public boolean transposeLeft()Returns the value of thetransposeLeftrecord component.- Returns:
- the value of the
transposeLeftrecord component
-
transposeRight
public boolean transposeRight()Returns the value of thetransposeRightrecord component.- Returns:
- the value of the
transposeRightrecord component
-