So I went through some of the threads and I was able get rid of some issues. But, I am still facing this error
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]

In my case, I have assigned my own weights and 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:
net(
  (conv1): Conv2d(1, 1, kernel_size=(2, 2), stride=(1, 1))
  (pool): MaxPool2d(kernel_size=2, stride=2, padding=0, dilation=1, ceil_mode=False)
  (conv2): Conv2d(1, 1, kernel_size=(2, 2), stride=(1, 1))
)

Any suggestions on getting rid of the error?