Now, I have updated pytorch to 1.3.1(Stable Version) and torchvision 0.4.
While running the same code now the error is changed to :
File “C:\Users\anaconda3\envs\pytorch_converter\lib\site-packages\torch\jit_init_.py”, line 1423, in _create_methods_from_stubs
self._c._create_methods(self, defs, rcbs, defaults)
RuntimeError:
module has no attribute ‘downsample’: