Mojo struct
SeqInfo
@register_passable(trivial)
struct SeqInfo
Fields
- seq_len (
SIMD[uint32, 1]
): - start_of_seq (
SIMD[uint32, 1]
): - prompt_offset (
SIMD[uint32, 1]
): - head_idx (
SIMD[uint32, 1]
): - prompt_idx (
SIMD[uint32, 1]
):
Implemented traits
AnyType
,
Copyable
,
ExplicitlyCopyable
,
Movable
,
UnknownDestructibility
Methods
__init__
__init__(seq_len: SIMD[uint32, 1], start_of_seq: SIMD[uint32, 1], work: WorkInfo) -> Self
is_valid
is_valid(self) -> Bool
create
static create[ragged: Bool](work: WorkInfo, valid_length: NDBuffer[uint32, 1, MutableAnyOrigin], max_seq_len: SIMD[uint32, 1]) -> Self
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!