Issue 1:
Issue description

The error LINK : fatal error LNK1189: library limit of 65535 objects exceeded occurred when linking caffe2 using Visual Studio 2015.

Code example

set "VS150COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build"
set CMAKE_GENERATOR=Visual Studio 15 2017 Win64
set DISTUTILS_USE_SDK=1
REM The following line is needed for Python 2.7, but the support for it is very experimental.
set MSSdk=1

call "%VS150COMNTOOLS%\vcvarsall.bat" x64 -vcvars_ver=14.11
python setup.py install

System Info

PyTorch or Caffe2: PyTorch

PyTorch version: 0.4.0

Is debug build: No

CUDA used to build PyTorch: 9.0

OS: Microsoft Windows 10 Pro

GCC version: (Rev2, Built by MSYS2 project) 7.1.0

CMake version: version 3.8.1

Python version: 3.6

Is CUDA available: Yes

CUDA runtime version: 9.0.176

GPU models and configuration: GPU 0: GeForce GTX 1070

Nvidia driver version: 398.36

cuDNN version: Probably one of the following:

C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin\cudnn64_7.dll

Versions of relevant libraries:

[pip] numpy (1.13.3)

[pip] torch (0.4.0)

[pip] torchfile (0.1.0)

[pip] torchnet (0.0.1)

[pip] torchtext (0.2.1)

[pip] torchvision (0.1.9)

[pip] warpctc-pytorch (0.1)

[conda] torchfile 0.1.0

[conda] torchnet 0.0.1

[conda] torchtext 0.2.1

[conda] torchvision 0.1.9

[conda] warpctc-pytorch 0.1

Issue 2:
🐛 Bug

To Reproduce

Steps to reproduce the behavior:

follow the instruction here https://colab.research.google.com/github/pytorch/tutorials/blob/gh-pages/_downloads/super_resolution_with_caffe2.ipynb#scrollTo=fUI45vwDNZR6

use onnx to convert pytorch to onnx

Code to execute

model = SegNet_Small(

input_channels=1,

num_classes=4,

skip_type="mul",

BR_bool=False,

separable_conv=False,

)

model = model.to(device)

x = torch.randn(1, 1, 184, 184, requires_grad=True).to(device)

torch.onnx.export(model, x, "test.onnx", verbose=True)

Error information

RuntimeError Traceback (most recent call last)

in

3

4 # Export the model

----> 5 torch.onnx.export(model, x, "test.onnx", verbose=True)

6

7 # torch_out = torch.onnx._export(model, # model being run

..................

~/anaconda3/lib/python3.7/site-packages/torch/onnx/symbolic_registry.py in get_registered_op(opname, domain, version)

107 else:

108 msg += "Please open a bug to request ONNX export support for the missing operator."

--> 109 raise RuntimeError(msg)

110 return _registry[(domain, version)][opname]

RuntimeError: Exporting the operator max_unpool2d to ONNX opset version 9 is not supported. Please open a bug to request ONNX export support for the missing operator.

Environment

PyTorch Versio: 1.6.0

OS (e.g., Linux): Fedora release 30 (Thirty) (x86_64)

How you installed PyTorch: conda

Python version: 3.7

CUDA/cuDNN version: 10.0.130 / 7.5.0

GPU models and configuration: TITAN RTX

Any other relevant information:

Additional context

Versions of relevant libraries:

[pip3] numpy==1.18.1

[conda] _pytorch_select 0.2 gpu_0

[conda] blas 1.0 mkl

[conda] cudatoolkit 10.2.89 hfd86e86_1

[conda] mkl 2019.4 243

[conda] mkl-service 2.3.0 py37he904b0f_0

[conda] mkl_fft 1.0.15 py37ha843d7b_0

[conda] mkl_random 1.1.0 py37hd6b4f25_0

[conda] numpy 1.18.1 py37h4f9e942_0

[conda] numpy-base 1.18.1 py37hde5b4d6_1

[conda] numpydoc 0.9.2 py_0

[conda] pytorch 1.6.0 py3.7_cuda10.2.89_cudnn7.6.5_0 pytorch

[conda] pytorch-lightning 0.7.5 pypi_0 pypi

[conda] pytorch-nn-tools 0.1.3 pypi_0 pypi

[conda] torchvision 0.7.0 py37_cu102 pytorch

cc @houseroad @spandantiwari @lara-hdr @BowenBao @neginraoof