IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/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. /max/get-started.md).

Mojo function

gated_delta_conv1d_fwd_shape

def gated_delta_conv1d_fwd_shape[work_dtype: DType, state_dtype: DType](qkv_input_ragged: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=qkv_input_ragged.static_spec], conv_weight: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=conv_weight.static_spec], conv_state: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=conv_state.static_spec], slot_idx: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=slot_idx.static_spec], input_row_offsets: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=input_row_offsets.static_spec]) -> IndexList[Int(2)]

Computes the output shape for the gated_delta_conv1d_fwd graph op.

Parameters:

  • ​work_dtype (DType): Element type of the per-token input and weight tensors (inferred).
  • ​state_dtype (DType): Element type of the persistent conv-state pool, independent of work_dtype (inferred).

Args:

Returns:

IndexList[Int(2)]

Was this page helpful?