TORCH_CHECK(dim%8==0,"causal_conv1d only supports channel dimension divisible by 8 for now");
TORCH_CHECK(x.stride(2)%8==0andx.stride(0)%8==0,"causal_conv1d with channel last layout requires strides (x.stride(0) and x.stride(2)) to be multiples of 8");
}
TORCH_CHECK(width>=2&&width<=4,"causal_conv1d only supports width between 2 and 4");