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 function
causal_conv1d_varlen_update_shape
def causal_conv1d_varlen_update_shape(x: T, weight: T, bias: T, cache_seqlens: T, conv_state_indices: T) -> IndexList[Int(3)]
Returns the output shape for the causal_conv1d_varlen_update op.
The output shape equals the input shape (batch, dim, seqlen).
Args:
- x (
T): Input tensor with shape(batch, dim, seqlen). - weight (
T): Convolution weights with shape(dim, width). - bias (
T): Per-channel bias with shape(dim,). - cache_seqlens (
T): Current sequence lengths per batch entry with shape(batch,). - conv_state_indices (
T): Indices into the conv state buffer with shape(batch,).
Returns:
IndexList[Int(3)]: The output tensor shape, equal to x.shape().