So I went through this thread and I am still facing this error. In my case, I am using a 3rd party library to just see how the network is working (torchinfo). I am giving the input as (1,1,28,28). My model is as follows:
data : torch.Size([1, 100, 128, 128])
Conv2d(100, 8, kernel_size=(10, 10), stride=(1, 1), padding=(3, 3))
The above is the dimension of the data and Conv2d ,but i had a question.can you help me ,please?
RuntimeError: expected stride to be a single integer value or a list of 1 values to match the convolution dimensions, but got stride=[1, 1]
As I cannot reproduce the issue, could you post a minimal, executable code snippet which would raise the error?
Your current code snippet is not executable and my code works fine.
When I execute your code in jupyter cell alone, it works normally. But when I copy your code into my project (including data generated randomly), he will report the above error.