Dynamic-convolution-Pytorch icon indicating copy to clipboard operation
Dynamic-convolution-Pytorch copied to clipboard

RuntimeError: view size is not compatible with input tensor's size and stride (at least one dimension spans across two contiguous subspaces). Use .reshape(...)

Open khawar-islam opened this issue 4 years ago • 2 comments

My image size is 112,112 and I got the below error. Any solution?

Line number ConvLayers/dynamic_conv.py", line 176, in forward

_x = x.view(1, -1, height, width)# 变化成一个维度进行组卷积
RuntimeError: view size is not compatible with input tensor's size and stride (at least one dimension spans across two contiguous subspaces). Use .reshape(...)_

khawar-islam avatar Jun 21 '21 12:06 khawar-islam

Do you resolve this question?if you do,can you help me?

Idea-in-Dream avatar Jun 23 '21 12:06 Idea-in-Dream

@CUIMD No man, still waiting please also let me know when you find some solution

khawar-islam avatar Jun 23 '21 13:06 khawar-islam