Mojo struct
SeqInfo
@register_passable(trivial)
struct SeqInfo
Fields
- seq_len (
UInt32
): - start_of_seq (
UInt32
): - prompt_offset (
UInt32
): - head_idx (
UInt32
): - prompt_idx (
UInt32
):
Implemented traits
AnyType
,
Copyable
,
ImplicitlyCopyable
,
Movable
,
UnknownDestructibility
Aliases
__copyinit__is_trivial
alias __copyinit__is_trivial = True
__del__is_trivial
alias __del__is_trivial = True
__moveinit__is_trivial
alias __moveinit__is_trivial = True
Methods
__init__
__init__(seq_len: UInt32, start_of_seq: UInt32, work: WorkInfo) -> Self
is_valid
create
static create[ValidLengthType: OptionalPointer, //](work: WorkInfo, valid_length: ValidLengthType, max_seq_len: UInt32) -> Self
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!