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_fwd

struct Struct_short_conv_ring_fwd

x + conv(x) over a ragged batch, pre-chunk taps from the ring.

Implemented traitsโ€‹

AnyType, Deinitable, Movable

Methodsโ€‹

executeโ€‹

static def execute[dtype: DType, ring_dtype: DType, //, target: StringSpan[ImmStaticOrigin]](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_row: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=conv_row.static_spec], context: DeviceContext)

Was this page helpful?