Hi,
I am using pytorch 1.0 and want to load a pytorch 0.41 model (from a research code) but get the following error:
“RuntimeError: set_sizes_contiguous is not allowed on Tensor created from .data or .detach()”
While I checked my code, the error comes from the following line:
" param.resize_(input_param.size())"
print(param.shape) =>torch.Size([64, 3, 7, 7])
print(input_param.shape)=>torch.Size([58, 3, 7, 7])
anyone knows how to use the resize in my case? I double check the code in pytorch 0.41, it has not errors.
Thanks