IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Mojo struct

Struct_short_conv_ring_commit

struct Struct_short_conv_ring_commit

Writes each sequence's last inputs into its conv ring slot.

Implemented traitsโ€‹

AnyType, Deinitable, Movable

Methodsโ€‹

executeโ€‹

static def execute[dtype: DType, ring_dtype: DType, //, target: StringSpan[ImmStaticOrigin]](ring: ManagedTensorSlice[IOSpec[_, _].MutableInput, static_spec=ring.static_spec], x: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=x.static_spec], input_row_offsets: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=input_row_offsets.static_spec], positions: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=positions.static_spec], conv_row: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=conv_row.static_spec], context: DeviceContext)

Was this page helpful?