Have a similar problem but with reflection padding: RuntimeError: cuda runtime error (9) : invalid configuration argument at /pytorch/aten/src/THCUNN/generic/TemporalReflectionPadding.cu:64. The error disappears when batch size is small, such as 8.