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_shape
def causal_conv1d_shape(input: T, weight: T, bias: T) -> IndexList[T.rank]
Returns the output shape for the causal_conv1d op.
Causal 1D convolution preserves the input shape: output has the same
(batch, channels, seqlen) as input.
Args:
- โinput (
T): Input tensor with shape(batch, channels, seqlen). - โweight (
T): Convolution weights with shape(channels, width). - โbias (
T): Per-channel bias with shape(channels,).
Returns:
IndexList[T.rank]: The output tensor shape, equal to input.shape().