Skip to main content

Mojo struct

SeqInfo

struct SeqInfo

Fields​

  • ​seq_len (UInt32):
  • ​start_of_seq (UInt32):
  • ​prompt_offset (UInt32):
  • ​head_idx (UInt32):
  • ​prompt_idx (UInt32):

Implemented traits​

AnyType, Copyable, ImplicitlyCopyable, ImplicitlyDestructible, Movable, RegisterPassable, TrivialRegisterPassable

Methods​

__init__​

__init__(seq_len: UInt32, start_of_seq: UInt32, work: WorkInfo) -> Self

is_valid​

is_valid(self) -> Bool

Returns:

Bool

create​

static create[ValidLengthType: OptionalPointer, //](work: WorkInfo, valid_length: ValidLengthType, max_seq_len: UInt32) -> Self