SubqOpsCausalConv1d#
- class SubqOpsCausalConv1d(
- in_channels,
- out_channels,
- kernel_size,
- *,
- groups,
- bias=False,
- activation='identity',
Bases:
Conv1dDepthwise causal 1D conv using
subquadratic_ops_torch.causal_conv1d.- Parameters:
- __init__(
- in_channels,
- out_channels,
- kernel_size,
- *,
- groups,
- bias=False,
- activation='identity',
Build a depthwise causal conv with optional SiLU activation.
- Parameters:
in_channels (int) – Channel count (must equal
out_channelsandgroups).out_channels (int) – Output channels (depthwise: same as
in_channels).kernel_size (int) – Causal kernel length.
groups (int) – Must equal
in_channelsfor depthwise layout.bias (bool) – Whether to include a per-channel bias.
activation (str) –
"identity"or"silu"applied inside the CUDA kernel.
- Return type:
None