I register my custom OP under windows. The following error occurred:
I register my custom OP under windows. I am following the tutorial below to register the custom layer to torchscript.The following error occurred: https://github.com/onnx/tutorials/tree/master/PyTorchCustomOperator D:\vs2017\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:F:\Anaconda3\envs\pytorch1.3\lib\site-packages\torch\lib /LIBPATH:F:\Anaconda3\envs\pytorch1.3\libs /LIBPATH:F:\Anaconda3\envs\pytorch1.3\PCbuild\amd64 /LIBPATH:D:\vs2017\VC\Tools\MSVC\14.16.27023\ATLMFC\lib\x64 /LIBPATH:D:\vs2017\VC\Tools\MSVC\14.16.27023\lib\x64 "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64" c10.lib torch.lib torch_python.lib _C.lib /EXPORT:PyInit_custom_group_norm build\temp.win-amd64-3.6\Release\custom_group_norm.obj /OUT:build\lib.win-amd64-3.6\custom_group_norm.cp36-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.6\Release\custom_group_norm.cp36-win_amd64.lib LINK : error LNK2001: Unresolved external symbols PyInit_custom_group_norm build\temp.win-amd64-3.6\Release\custom_group_norm.cp36-win_amd64.lib : fatal error LNK1120: 1 unresolved external command. error: command 'D:\vs2017\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe' failed with exit status 1120
I have the same error. Have you solved it?