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
CausalConv1DUpdate
struct CausalConv1DUpdate[activation: StaticString]
Incremental causal conv1d update for autoregressive decoding.
This operation accepts the previous conv_state as an input and produces the updated conv_state as a separate output, compatible with functional graph semantics (no in-place mutation).
Tensor Shapes: Outputs: - output: (batch, channels, seqlen) - Convolution output. - conv_state_out: (batch, channels, state_len) - Updated state. Inputs: - input: (batch, channels, seqlen) - New input tokens. - conv_state_in: (batch, channels, state_len) - Previous state. - weight: (channels, width) - Convolution weights. - bias: (channels,) - Per-channel bias.
Parameters
- activation (
StaticString): Activation function to apply:"none"or"silu".
Implemented traits
Methods
execute
static def execute(output: T, conv_state: T, input: T, conv_state_in: T, weight: T, bias: T, ctx: DeviceContext)