3dcnn neeed 4 value for stride?

there is some error when i use pyro and pytorch:

RuntimeError: 
Cell In[9], line 54
     51     # 直接使用self.conv.stride,保持3维stride
     52     stride = self.conv.stride if isinstance(self.conv.stride, tuple) else (self.conv.stride,) * 3
---> 54     return F.conv3d(x, weight, bias, stride, self.conv.padding, self.conv.dilation, self.conv.groups)
     55 else:
     56     return None

RuntimeError: expected stride to be a single integer value or a list of 4 values to match the convolution dimensions, but got stride=[1, 1, 1]

i do not want to show the detail ,it is too long

Try to pass a list of 4 values as the error message points our or please post a minimal and executable code snippet to reproduce the error in case you are stuck.

Thank you very much for your reply. I posted this question to determine if this problem is common (maybe not). If it’s less common and I don’t find another way to solve my problem, I’ll consider showing my code.