Record Class InterleavedMRope.MropePositions
java.lang.Object
java.lang.Record
smile.llm.model.qwen.InterleavedMRope.MropePositions
- Record Components:
t- temporal plane.h- height plane.w- width plane.ropeDelta-max(pos)+1 - seqLen.
- Enclosing class:
InterleavedMRope
public static record InterleavedMRope.MropePositions(int[] t, int[] h, int[] w, int ropeDelta)
extends Record
mRoPE position planes for one sequence.
-
Constructor Summary
ConstructorsConstructorDescriptionMropePositions(int[] t, int[] h, int[] w, int ropeDelta) Creates an instance of aMropePositionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.int[]h()Returns the value of thehrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theropeDeltarecord component.int[]t()Returns the value of thetrecord component.final StringtoString()Returns a string representation of this record class.int[]w()Returns the value of thewrecord component.
-
Constructor Details
-
MropePositions
public MropePositions(int[] t, int[] h, int[] w, int ropeDelta) Creates an instance of aMropePositionsrecord class.
-
-
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. -
t
-
h
-
w
-
ropeDelta
-