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

struct Struct_short_conv_ring

x + conv(x) over a ragged batch, pre-chunk taps from the ring; with commit, also writes each sequence's last inputs into its ring slot.

Implemented traitsโ€‹

AnyType, Deinitable, Movable

Methodsโ€‹

executeโ€‹

static def execute[dtype: DType, ring_dtype: DType, commit: Bool, //, target: StaticString](output: ManagedTensorSlice[IOSpec[_, _].Output, static_spec=output.static_spec], x: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=x.static_spec], weight: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=weight.static_spec], ring: ManagedTensorSlice[IOSpec[_, _].MutableInput, static_spec=ring.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_rows: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=conv_rows.static_spec], layer_row: UInt32, context: DeviceContext)

Was this page helpful?