NVIDIA / vid2vid

Pytorch implementation of our method for high-resolution (e.g. 2048x1024) photorealistic video-to-video translation.
Other
8.57k stars 1.2k forks source link

build use in powershell use win10 +vc 14 +cuda+cnn+ conda +py3.6.9 +torch 1.0.0 vid2vid\models\flownet2-pytorch\networks\resample2d_package> python setup.py build #88

Open corelengine opened 5 years ago

corelengine commented 5 years ago

(py36) PS D:\kylinVid\vid2vid\models\flownet2-pytorch\networks\resample2d_package> python setup.py build running build running build_ext D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\utils\cpp_extension.py:185: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。 warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error)) building 'resample2d_cuda' extension C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -ID:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include -ID:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include -ID:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\TH -ID:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\include" -ID:\ProgramData\Anaconda3\envs\py36\include -ID:\ProgramData\Anaconda3\envs\py36\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" /EHsc /Tpresample2d_cuda.cc /Fobuild\temp.win-amd64-3.6\Release\resample2d_cuda.obj -std=c++11 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=resample2d_cuda -D_GLIBCXX_USE_CXX11_ABI=0 cl : Command line warning D9002 : ignoring unknown option '-std=c++11' resample2d_cuda.cc D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/util/Exception.h(27): warning C4275: non dll-interface class 'std::exception' used as base for dll-interface class 'c10::Error' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\vcruntime_exception.h(43): note: see declaration of 'std::exception' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/util/Exception.h(27): note: see declaration of 'c10::Error' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/util/Exception.h(28): warning C4251: 'c10::Error::msgstack': class 'std::vector<std::string,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'c10::Error' with [ _Ty=std::string ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/util/Exception.h(28): note: see declaration of 'std::vector<std::string,std::allocator<_Ty>>' with [ Ty=std::string ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/util/Exception.h(29): warning C4251: 'c10::Error::backtrace': class 'std::basic_string<char,std::char_traits,std::allocator>' needs to have dll-interface to be used by clients of class 'c10::Error' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xstring(2633): note: see declaration of 'std::basic_string<char,std::chartraits,std::allocator>' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/util/Exception.h(34): warning C4251: 'c10::Error::msg': class 'std::basic_string<char,std::char_traits,std::allocator>' needs to have dll-interface to be used by clients of class 'c10::Error' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xstring(2633): note: see declaration of 'std::basic_string<char,std::char_traits,std::allocator>' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/util/Exception.h(35): warning C4251: 'c10::Error::msg_withoutbacktrace': class 'std::basic_string<char,std::char_traits,std::allocator>' needs to have dll-interface to be used by clients of class 'c10::Error' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xstring(2633): note: see declaration of 'std::basic_string<char,std::chartraits,std::allocator>' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/core/Allocator.h(126): warning C4251: 'c10::InefficientStdFunctionContext::ptr': class 'std::unique_ptr<void,std::function<void (void )>>' needs to have dll-interface to be used by clients of struct 'c10::InefficientStdFunctionContext' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/core/Allocator.h(126): note: see declaration of 'std::unique_ptr<void,std::function<void (void )>>' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/core/TensorTypeIdRegistration.h(32): warning C4251: 'c10::TensorTypeIdCreator::lastid': struct 'std::atomic' needs to have dll-interface to be used by clients of class 'c10::TensorTypeIdCreator' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xxatomic(180): note: see declaration of 'std::atomic' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/core/TensorTypeIdRegistration.h(45): warning C4251: 'c10::TensorTypeIdRegistry::registeredTypeIds_': class 'std::unordered_set<c10::TensorTypeId,std::hash,std::equal_to<_Kty>,std::allocator<_Kty>>' needs to have dll-interface to be used by clients of class 'c10::TensorTypeIdRegistry' with [ _Kty=c10::TensorTypeId ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/core/TensorTypeIdRegistration.h(45): note: see declaration of 'std::unordered_set<c10::TensorTypeId,std::hash,std::equal_to<_Kty>,std::allocator<_Kty>>' with [ Kty=c10::TensorTypeId ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/core/TensorTypeIdRegistration.h(46): warning C4251: 'c10::TensorTypeIdRegistry::mutex': class 'std::mutex' needs to have dll-interface to be used by clients of class 'c10::TensorTypeIdRegistry' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\mutex(78): note: see declaration of 'std::mutex' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/Half-inl.h(168): warning C4244: 'argument': conversion from 'int' to 'float', possible loss of data D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/Half-inl.h(171): warning C4244: 'argument': conversion from 'int' to 'float', possible loss of data D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/Half-inl.h(174): warning C4244: 'argument': conversion from 'int' to 'float', possible loss of data D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/Half-inl.h(177): warning C4244: 'argument': conversion from 'int' to 'float', possible loss of data D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/Half-inl.h(181): warning C4244: 'argument': conversion from 'int' to 'float', possible loss of data D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/Half-inl.h(184): warning C4244: 'argument': conversion from 'int' to 'float', possible loss of data D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/Half-inl.h(187): warning C4244: 'argument': conversion from 'int' to 'float', possible loss of data D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/Half-inl.h(190): warning C4244: 'argument': conversion from 'int' to 'float', possible loss of data D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/Half-inl.h(196): warning C4244: 'argument': conversion from 'int64_t' to 'float', possible loss of data D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/Half-inl.h(199): warning C4244: 'argument': conversion from 'int64_t' to 'float', possible loss of data D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/Half-inl.h(202): warning C4244: 'argument': conversion from 'int64_t' to 'float', possible loss of data D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/Half-inl.h(205): warning C4244: 'argument': conversion from 'int64_t' to 'float', possible loss of data D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/Half-inl.h(209): warning C4244: 'argument': conversion from 'int64_t' to 'float', possible loss of data D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/Half-inl.h(212): warning C4244: 'argument': conversion from 'int64_t' to 'float', possible loss of data D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/Half-inl.h(215): warning C4244: 'argument': conversion from 'int64_t' to 'float', possible loss of data D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/Half-inl.h(218): warning C4244: 'argument': conversion from 'int64_t' to 'float', possible loss of data D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/util/typeid.h(433): warning C4068: unknown pragma D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/util/typeid.h(434): warning C4068: unknown pragma D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/util/typeid.h(435): warning C4068: unknown pragma D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/util/typeid.h(436): warning C4068: unknown pragma D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/util/typeid.h(438): warning C4068: unknown pragma D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/util/intrusive_ptr.h(58): warning C4251: 'c10::intrusive_ptrtarget::refcount': struct 'std::atomic' needs to have dll-interface to be used by clients of class 'c10::intrusive_ptr_target' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xxatomic(180): note: see declaration of 'std::atomic' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/util/intrusive_ptr.h(59): warning C4251: 'c10::intrusive_ptrtarget::weakcount': struct 'std::atomic' needs to have dll-interface to be used by clients of class 'c10::intrusive_ptr_target' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xxatomic(180): note: see declaration of 'std::atomic' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/util/intrusive_ptr.h(75): warning C4068: unknown pragma D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/util/intrusive_ptr.h(76): warning C4068: unknown pragma D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/util/intrusive_ptr.h(77): warning C4068: unknown pragma D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/util/intrusive_ptr.h(78): warning C4068: unknown pragma D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/util/intrusive_ptr.h(79): warning C4068: unknown pragma D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/util/intrusive_ptr.h(86): warning C4068: unknown pragma D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/util/intrusive_ptr.h(80): warning C4297: 'c10::intrusive_ptr_target::~intrusive_ptr_target': function assumed not to throw an exception but does D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/util/intrusive_ptr.h(80): note: destructor or deallocator has a (possibly implicit) non-throwing exception specification D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/util/intrusive_ptr.h(83): warning C4297: 'c10::intrusive_ptr_target::~intrusive_ptr_target': function assumed not to throw an exception but does D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/util/intrusive_ptr.h(83): note: destructor or deallocator has a (possibly implicit) non-throwing exception specification D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/util/intrusive_ptr.h(699): warning C4267: 'return': conversion from 'size_t' to 'uint32_t', possible loss of data D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/util/intrusive_ptr.h(733): warning C4267: 'return': conversion from 'size_t' to 'uint32_t', possible loss of data D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/core/StorageImpl.h(215): warning C4251: 'c10::StorageImpl::dataptr': class 'c10::DataPtr' needs to have dll-interface to be used by clients of struct 'c10::StorageImpl' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/core/Allocator.h(19): note: see declaration of 'c10::DataPtr' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/core/Storage.h(184): warning C4251: 'c10::Storage::storageimpl': class 'c10::intrusive_ptr<c10::StorageImpl,c10::detail::intrusive_target_default_null_type>' needs to have dll-interface to be used by clients of struct 'c10::Storage' with [ TTarget=c10::StorageImpl ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/core/Storage.h(10): note: see declaration of 'c10::intrusive_ptr<c10::StorageImpl,c10::detail::intrusive_target_default_null_type>' with [ TTarget=c10::StorageImpl ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/util/logging_is_not_googleglog.h(47): warning C4251: 'c10::MessageLogger::stream': class 'std::basic_stringstream<char,std::char_traits,std::allocator>' needs to have dll-interface to be used by clients of class 'c10::MessageLogger' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\iosfwd(687): note: see declaration of 'std::basic_stringstream<char,std::char_traits,std::allocator>' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/TensorImpl.h(115): warning C4251: 'at::PlacementDeleteContext::dataptr': class 'c10::DataPtr' needs to have dll-interface to be used by clients of struct 'at::PlacementDeleteContext' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/core/Allocator.h(19): note: see declaration of 'c10::DataPtr' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/TensorImpl.h(1434): warning C4251: 'at::TensorImpl::sizes_': class 'c10::SmallVector<int64_t,5>' needs to have dll-interface to be used by clients of struct 'at::TensorImpl' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/TensorImpl.h(1434): note: see declaration of 'c10::SmallVector<int64t,5>' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/TensorImpl.h(1435): warning C4251: 'at::TensorImpl::strides': class 'c10::SmallVector<int64_t,5>' needs to have dll-interface to be used by clients of struct 'at::TensorImpl' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/TensorImpl.h(1434): note: see declaration of 'c10::SmallVector<int64_t,5>' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/TensorImpl.h(454): warning C4244: 'argument': conversion from 'int64_t' to 'c10::DeviceIndex', possible loss of data D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/TensorImpl.h(1006): warning C4244: 'argument': conversion from 'float' to 'const std::size_t', possible loss of data D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/TensorImpl.h(1382): warning C4244: 'initializing': conversion from 'int64_t' to 'int', possible loss of data D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/LegacyTypeDispatch.h(138): warning C4251: 'at::LegacyTypeDispatch::type_registry': class 'std::unique_ptr<at::Type,at::LegacyTypeDeleter>' needs to have dll-interface to be used by clients of class 'at::LegacyTypeDispatch' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/LegacyTypeDispatch.h(51): note: see declaration of 'std::uniqueptr<at::Type,at::LegacyTypeDeleter>' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/Tensor.h(692): warning C4251: 'at::Tensor::impl': class 'c10::intrusive_ptr<at::TensorImpl,at::UndefinedTensorImpl>' needs to have dll-interface to be used by clients of class 'at::Tensor' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/Tensor.h(44): note: see declaration of 'c10::intrusive_ptr<at::TensorImpl,at::UndefinedTensorImpl>' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/Tensor.h(693): warning C4522: 'at::Tensor': multiple assignment operators specified D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/Tensor.h(720): warning C4251: 'at::WeakTensor::weakimpl': class 'c10::weak_intrusive_ptr<TTarget,NullType>' needs to have dll-interface to be used by clients of struct 'at::WeakTensor' with [ TTarget=at::TensorImpl, NullType=at::UndefinedTensorImpl ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/util/intrusive_ptr.h(163): note: see declaration of 'c10::weak_intrusive_ptr<TTarget,NullType>' with [ TTarget=at::TensorImpl, NullType=at::UndefinedTensorImpl ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/LegacyTHDispatch.h(86): warning C4251: 'at::LegacyTHDispatch::dispatcher_registry': class 'std::unique_ptr<at::LegacyTHDispatcher,at::LegacyTHDispatcherDeleter>' needs to have dll-interface to be used by clients of class 'at::LegacyTHDispatch' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/LegacyTHDispatch.h(61): note: see declaration of 'std::unique_ptr<at::LegacyTHDispatcher,at::LegacyTHDispatcherDeleter>' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/Context.h(128): warning C4251: 'at::Context::generator_registry': class 'std::unique_ptr<at::Generator,std::default_delete<_Ty>>' needs to have dll-interface to be used by clients of class 'at::Context' with [ _Ty=at::Generator ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/Type.h(104): note: see declaration of 'std::unique_ptr<at::Generator,std::default_delete<_Ty>>' with [ _Ty=at::Generator ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/Context.h(145): warning C4251: 'at::Context::thc_init': struct 'std::once_flag' needs to have dll-interface to be used by clients of class 'at::Context' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\mutex(452): note: see declaration of 'std::once_flag' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/Context.h(146): warning C4251: 'at::Context::thh_init': struct 'std::once_flag' needs to have dll-interface to be used by clients of class 'at::Context' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\mutex(452): note: see declaration of 'std::once_flag' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/Context.h(147): warning C4251: 'at::Context::complexinit': struct 'std::once_flag' needs to have dll-interface to be used by clients of class 'at::Context' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\mutex(452): note: see declaration of 'std::once_flag' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/Context.h(151): warning C4251: 'at::Context::next_id': struct 'std::atomic' needs to have dll-interface to be used by clients of class 'at::Context' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xxatomic(180): note: see declaration of 'std::atomic' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/Context.h(152): warning C4251: 'at::Context::thc_state': class 'std::unique_ptr<THCState,void (cdecl )(THCState )>' needs to have dll-interface to be used by clients of class 'at::Context' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/detail/CUDAHooksInterface.h(57): note: see declaration of 'std::unique_ptr<THCState,void (cdecl )(THCState )>' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/Context.h(153): warning C4251: 'at::Context::thh_state': class 'std::unique_ptr<THHState,void (cdecl )(THHState )>' needs to have dll-interface to be used by clients of class 'at::Context' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/detail/HIPHooksInterface.h(33): note: see declaration of 'std::unique_ptr<THHState,void (cdecl )(THHState )>' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/Context.h(161): warning C4996: 'getenv': This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\stdlib.h(1183): note: see declaration of 'getenv' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/Context.h(164): warning C4996: 'getenv': This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NOWARNINGS. See online help for details. C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\stdlib.h(1183): note: see declaration of 'getenv' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/Stream.h(102): warning C4244: 'argument': conversion from 'unsigned int64' to 'c10::DeviceIndex', possible loss of data D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/Stream.h(102): warning C4244: 'argument': conversion from 'unsigned int64' to 'c10::StreamId', possible loss of data D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/TensorGeometry.h(56): warning C4251: 'at::TensorGeometry::sizes': class 'std::vector<int64_t,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'at::TensorGeometry' with [ _Ty=int64_t ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/util/typeid.h(580): note: see declaration of 'std::vector<int64_t,std::allocator<_Ty>>' with [ _Ty=int64t ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/TensorGeometry.h(57): warning C4251: 'at::TensorGeometry::strides': class 'std::vector<int64_t,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'at::TensorGeometry' with [ _Ty=int64_t ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/util/typeid.h(580): note: see declaration of 'std::vector<int64_t,std::allocator<_Ty>>' with [ _Ty=int64_t ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/autograd/variable.h(351): warning C4251: 'torch::autograd::Variable::Impl::name': class 'std::basic_string<char,std::char_traits,std::allocator>' needs to have dll-interface to be used by clients of struct 'torch::autograd::Variable::Impl' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xstring(2633): note: see declaration of 'std::basic_string<char,std::char_traits,std::allocator>' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/autograd/variable.h(355): warning C4251: 'torch::autograd::Variable::Impl::gradfn': class 'std::shared_ptr' needs to have dll-interface to be used by clients of struct 'torch::autograd::Variable::Impl' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/autograd/edge.h(17): note: see declaration of 'std::shared_ptr' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/autograd/variable.h(356): warning C4251: 'torch::autograd::Variable::Impl::gradaccumulator': class 'std::weak_ptr' needs to have dll-interface to be used by clients of struct 'torch::autograd::Variable::Impl' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/autograd/variable.h(153): note: see declaration of 'std::weak_ptr' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/autograd/variable.h(358): warning C4251: 'torch::autograd::Variable::Impl::versioncounter': struct 'torch::autograd::VariableVersion' needs to have dll-interface to be used by clients of struct 'torch::autograd::Variable::Impl' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/autograd/variableversion.h(19): note: see declaration of 'torch::autograd::VariableVersion' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/autograd/variable.h(359): warning C4251: 'torch::autograd::Variable::Impl::hooks': class 'std::vector<std::shared_ptr,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'torch::autograd::Variable::Impl' with [ _Ty=std::shared_ptr ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/autograd/variable.h(245): note: see declaration of 'std::vector<std::shared_ptr,std::allocator<_Ty>>' with [ _Ty=std::sharedptr ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/autograd/variable.h(376): warning C4251: 'torch::autograd::Variable::Impl::mutex': class 'std::mutex' needs to have dll-interface to be used by clients of struct 'torch::autograd::Variable::Impl' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\mutex(78): note: see declaration of 'std::mutex' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/threadpool.h(51): warning C4251: 'c10::ThreadPool::tasks': class 'std::queue<c10::ThreadPool::task_element_t,std::deque<_Ty,std::allocator<_Ty>>>' needs to have dll-interface to be used by clients of class 'c10::ThreadPool' with [ _Ty=c10::ThreadPool::task_element_t ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/thread_pool.h(51): note: see declaration of 'std::queue<c10::ThreadPool::task_element_t,std::deque<_Ty,std::allocator<_Ty>>>' with [ _Ty=c10::ThreadPool::task_element_t ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/threadpool.h(52): warning C4251: 'c10::ThreadPool::threads': class 'std::vector<std::thread,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'c10::ThreadPool' with [ _Ty=std::thread ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/thread_pool.h(52): note: see declaration of 'std::vector<std::thread,std::allocator<_Ty>>' with [ _Ty=std::thread ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/threadpool.h(53): warning C4251: 'c10::ThreadPool::mutex': class 'std::mutex' needs to have dll-interface to be used by clients of class 'c10::ThreadPool' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\mutex(78): note: see declaration of 'std::mutex' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/threadpool.h(54): warning C4251: 'c10::ThreadPool::condition': class 'std::condition_variable' needs to have dll-interface to be used by clients of class 'c10::ThreadPool' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\mutex(536): note: see declaration of 'std::condition_variable' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/threadpool.h(55): warning C4251: 'c10::ThreadPool::completed': class 'std::condition_variable' needs to have dll-interface to be used by clients of class 'c10::ThreadPool' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\mutex(536): note: see declaration of 'std::conditionvariable' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/ivalue.h(24): warning C4251: 'c10::ivalue::ConstantString::str': class 'std::basic_string<char,std::char_traits,std::allocator>' needs to have dll-interface to be used by clients of struct 'c10::ivalue::ConstantString' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xstring(2633): note: see declaration of 'std::basic_string<char,std::chartraits,std::allocator>' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/ivalue.h(43): warning C4251: 'c10::ivalue::List::elements': class 'std::vector<T,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'c10::ivalue::List' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/util/ArrayRef.h(214): note: see declaration of 'std::vector<T,std::allocator<_Ty>>' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/ivalue.h(65): note: see reference to class template instantiation 'c10::ivalue::List' being compiled D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/ivalue.h(43): warning C4251: 'c10::ivalue::List::elements_': class 'std::vector<Elem,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'c10::ivalue::List' with [ Elem=c10::IValue, _Ty=c10::IValue ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/ivalue.h(43): note: see declaration of 'std::vector<Elem,std::allocator<_Ty>>' with [ Elem=c10::IValue, Ty=c10::IValue ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/ivalue.h(69): note: see reference to class template instantiation 'c10::ivalue::List' being compiled D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/ivalue.h(570): warning C4251: 'c10::ivalue::Future::mutex': class 'std::mutex' needs to have dll-interface to be used by clients of struct 'c10::ivalue::Future' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\mutex(78): note: see declaration of 'std::mutex' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/ivalue.h(572): warning C4251: 'c10::ivalue::Future::completed_': struct 'std::atomic' needs to have dll-interface to be used by clients of struct 'c10::ivalue::Future' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xxatomic(180): note: see declaration of 'std::atomic' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/ivalue.h(573): warning C4251: 'c10::ivalue::Future::callbacks': class 'std::vector<std::function<void (void)>,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'c10::ivalue::Future' with [ _Ty=std::function<void (void)> ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/ivalue.h(573): note: see declaration of 'std::vector<std::function<void (void)>,std::allocator<_Ty>>' with [ _Ty=std::function<void (void)> ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/ivalue.h(43): warning C4251: 'c10::ivalue::List::elements_': class 'std::vector<int64_t,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'c10::ivalue::List' with [ _Ty=int64_t ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/util/typeid.h(580): note: see declaration of 'std::vector<int64_t,std::allocator<_Ty>>' with [ _Ty=int64_t ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/ivalue.h(622): note: see reference to class template instantiation 'c10::ivalue::List' being compiled D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/ivalue.h(43): warning C4251: 'c10::ivalue::List::elements_': class 'std::vector<T,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'c10::ivalue::List' with [ T=double, _Ty=double ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/util/ArrayRef.h(214): note: see declaration of 'std::vector<T,std::allocator<_Ty>>' with [ T=double, Ty=double ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/ivalue.h(636): note: see reference to class template instantiation 'c10::ivalue::List' being compiled D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/ivalue.h(43): warning C4251: 'c10::ivalue::List::elements': class 'std::vector<bool,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'c10::ivalue::List' with [ _Ty=bool ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/ivalue.h(296): note: see declaration of 'std::vector<bool,std::allocator<_Ty>>' with [ Ty=bool ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/ivalue.h(643): note: see reference to class template instantiation 'c10::ivalue::List' being compiled D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/ivalue.h(43): warning C4251: 'c10::ivalue::List::elements': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'c10::ivalue::List' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>' with [ Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/ivalue.h(650): note: see reference to class template instantiation 'c10::ivalue::List' being compiled D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/scope.h(24): warning C4251: 'torch::jit::Scope::parent': class 'c10::intrusive_ptr<torch::jit::Scope,c10::detail::intrusive_target_default_null_type>' needs to have dll-interface to be used by clients of struct 'torch::jit::Scope' with [ TTarget=torch::jit::Scope ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/scope.h(20): note: see declaration of 'c10::intrusive_ptr<torch::jit::Scope,c10::detail::intrusive_target_default_null_type>' with [ TTarget=torch::jit::Scope ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/constants.h(16): warning C4275: non dll-interface class 'std::runtime_error' used as base for dll-interface struct 'torch::jit::constant_not_supported_error' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\stdexcept(156): note: see declaration of 'std::runtime_error' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/constants.h(16): note: see declaration of 'torch::jit::constant_not_supported_error' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/jit_type.h(52): warning C4251: 'std::enable_shared_from_this::_Wptr': class 'std::weak_ptr<_Ty>' needs to have dll-interface to be used by clients of class 'std::enable_shared_from_this' with [ _Ty=c10::Type ] C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(1161): note: see declaration of 'std::weak_ptr<_Ty>' with [ _Ty=c10::Type ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/jit_type.h(213): warning C4251: 'c10::SingleElementType<c10::TypeKind::OptionalType,c10::OptionalType>::elem': class 'std::shared_ptr' needs to have dll-interface to be used by clients of struct 'c10::SingleElementType<c10::TypeKind::OptionalType,c10::OptionalType>' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/jit_type.h(50): note: see declaration of 'std::shared_ptr' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/jit_type.h(361): warning C4244: 'argument': conversion from 'int64_t' to 'int', possible loss of data D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/jittype.h(476): warning C4251: 'c10::CompleteTensorType::sizes': class 'std::vector<int64_t,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'c10::CompleteTensorType' with [ _Ty=int64_t ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/util/typeid.h(580): note: see declaration of 'std::vector<int64_t,std::allocator<_Ty>>' with [ _Ty=int64_t ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/jittype.h(477): warning C4251: 'c10::CompleteTensorType::strides': class 'std::vector<int64_t,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'c10::CompleteTensorType' with [ _Ty=int64_t ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/util/typeid.h(580): note: see declaration of 'std::vector<int64_t,std::allocator<_Ty>>' with [ _Ty=int64_t ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/jit_type.h(445): warning C4800: 'std::size_t': forcing value to bool 'true' or 'false' (performance warning) D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/jit_type.h(463): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/jit_type.h(482): warning C4251: 'c10::SingleElementType<c10::TypeKind::ListType,c10::ListType>::elem': class 'std::shared_ptr' needs to have dll-interface to be used by clients of struct 'c10::SingleElementType<c10::TypeKind::ListType,c10::ListType>' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/jit_type.h(50): note: see declaration of 'std::shared_ptr' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/jit_type.h(516): warning C4251: 'c10::SingleElementType<c10::TypeKind::FutureType,c10::FutureType>::elem': class 'std::shared_ptr' needs to have dll-interface to be used by clients of struct 'c10::SingleElementType<c10::TypeKind::FutureType,c10::FutureType>' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/jit_type.h(50): note: see declaration of 'std::shared_ptr' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/jittype.h(622): warning C4251: 'c10::TupleType::elements': class 'std::vector<c10::TypePtr,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'c10::TupleType' with [ _Ty=c10::TypePtr ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/jit_type.h(148): note: see declaration of 'std::vector<c10::TypePtr,std::allocator<_Ty>>' with [ _Ty=c10::TypePtr ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/tracing_state.h(29): warning C4251: 'std::enable_shared_from_this::_Wptr': class 'std::weak_ptr<_Ty>' needs to have dll-interface to be used by clients of class 'std::enable_shared_from_this' with [ _Ty=torch::jit::tracer::TracingState ] C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(1161): note: see declaration of 'std::weak_ptr<_Ty>' with [ _Ty=torch::jit::tracer::TracingState ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/tracing_state.h(47): warning C4251: 'torch::jit::tracer::TracingState::value_map': class 'std::unordered_map<torch::jit::tracer::TracingState::WeakTensor,torch::jit::Value ,torch::jit::tracer::TracingState::WeakTensorHasher,torch::jit::tracer::TracingState::WeakTensorEq,std::allocator<std::pair<const _Kty,_Ty>>>' needs to have dll-interface to be used by clients of struct 'torch::jit::tracer::TracingState' with [ _Kty=torch::jit::tracer::TracingState::WeakTensor, _Ty=torch::jit::Value ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/tracing_state.h(47): note: see declaration of 'std::unordered_map<torch::jit::tracer::TracingState::WeakTensor,torch::jit::Value ,torch::jit::tracer::TracingState::WeakTensorHasher,torch::jit::tracer::TracingState::WeakTensorEq,std::allocator<std::pair<const _Kty,_Ty>>>' with [ _Kty=torch::jit::tracer::TracingState::WeakTensor, _Ty=torch::jit::Value ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/tracing_state.h(48): warning C4251: 'torch::jit::tracer::TracingState::graph': class 'std::shared_ptr' needs to have dll-interface to be used by clients of struct 'torch::jit::tracer::TracingState' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/tracing_state.h(48): note: see declaration of 'std::shared_ptr' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/tracing_state.h(52): warning C4251: 'torch::jit::tracer::TracingState::lookup_var_name_fn': class 'std::function<std::string (const torch::autograd::Variable &)>' needs to have dll-interface to be used by clients of struct 'torch::jit::tracer::TracingState' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/tracing_state.h(51): note: see declaration of 'std::function<std::string (const torch::autograd::Variable &)>' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/tracing_state.h(145): warning C4251: 'torch::jit::tracer::NoWarn::state': class 'std::shared_ptr<_Ty>' needs to have dll-interface to be used by clients of struct 'torch::jit::tracer::NoWarn' with [ _Ty=torch::jit::tracer::TracingState ] C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(1124): note: see declaration of 'std::shared_ptr<_Ty>' with [ Ty=torch::jit::tracer::TracingState ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/serialize/input-archive.h(78): warning C4251: 'torch::serialize::InputArchive::module': class 'std::shared_ptr' needs to have dll-interface to be used by clients of class 'torch::serialize::InputArchive' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/serialize/input-archive.h(78): note: see declaration of 'std::sharedptr' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/serialize/output-archive.h(66): warning C4251: 'torch::serialize::OutputArchive::module': class 'std::shared_ptr' needs to have dll-interface to be used by clients of class 'torch::serialize::OutputArchive' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/serialize/input-archive.h(78): note: see declaration of 'std::shared_ptr' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/script/lexer.h(384): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/script/lexer.h(458): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/interpreter.h(42): warning C4251: 'torch::jit::Code::pImpl': class 'std::shared_ptr' needs to have dll-interface to be used by clients of struct 'torch::jit::Code' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/interpreter.h(42): note: see declaration of 'std::shared_ptr' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/argument_spec.h(189): warning C4267: 'initializing': conversion from 'size_t' to 'int32_t', possible loss of data D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/argument_spec.h(192): warning C4267: 'initializing': conversion from 'size_t' to 'int32_t', possible loss of data D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/argument_spec.h(192): warning C4267: 'initializing': conversion from 'size_t' to 'const int32_t', possible loss of data D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/argument_spec.h(196): warning C4244: '+=': conversion from 'int64_t' to 'int32_t', possible loss of data D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/argument_spec.h(215): warning C4244: '+=': conversion from 'int64_t' to 'int32_t', possible loss of data D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/argument_spec.h(276): warning C4800: 'const unsigned int': forcing value to bool 'true' or 'false' (performance warning) D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/argument_spec.h(367): warning C4267: 'argument': conversion from 'size_t' to 'const int', possible loss of data D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/graph_executor.h(41): warning C4251: 'torch::jit::GraphExecutor::pImpl': class 'std::shared_ptr' needs to have dll-interface to be used by clients of struct 'torch::jit::GraphExecutor' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/graph_executor.h(41): note: see declaration of 'std::shared_ptr' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/script/module.h(56): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/script/compiler.h(93): warning C4275: non dll-interface struct 'torch::jit::script::SugaredValue' used as base for dll-interface struct 'torch::jit::script::SimpleValue' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/script/compiler.h(35): note: see declaration of 'torch::jit::script::SugaredValue' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/script/compiler.h(93): note: see declaration of 'torch::jit::script::SimpleValue' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/script/compiler.h(122): warning C4275: non dll-interface struct 'torch::jit::script::SugaredValue' used as base for dll-interface struct 'torch::jit::script::BuiltinFunction' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/script/compiler.h(35): note: see declaration of 'torch::jit::script::SugaredValue' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/script/compiler.h(122): note: see declaration of 'torch::jit::script::BuiltinFunction' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/script/compiler.h(130): warning C4251: 'torch::jit::script::BuiltinFunction::self': class 'c10::optional' needs to have dll-interface to be used by clients of struct 'torch::jit::script::BuiltinFunction' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/script/module.h(479): note: see declaration of 'c10::optional' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/script/compiler.h(143): warning C4275: non dll-interface struct 'torch::jit::script::SugaredValue' used as base for dll-interface struct 'torch::jit::script::BuiltinModule' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/script/compiler.h(35): note: see declaration of 'torch::jit::script::SugaredValue' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/script/compiler.h(143): note: see declaration of 'torch::jit::script::BuiltinModule' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/script/compiler.h(157): warning C4251: 'torch::jit::script::BuiltinModule::name': class 'std::basic_string<char,std::char_traits,std::allocator>' needs to have dll-interface to be used by clients of struct 'torch::jit::script::BuiltinModule' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xstring(2633): note: see declaration of 'std::basic_string<char,std::char_traits,std::allocator>' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/script/compiler.h(160): warning C4251: 'torch::jit::script::BuiltinModule::version': class 'c10::optional' needs to have dll-interface to be used by clients of struct 'torch::jit::script::BuiltinModule' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/script/compiler.h(145): note: see declaration of 'c10::optional' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/script/compiler.h(167): warning C4275: non dll-interface struct 'torch::jit::script::SugaredValue' used as base for dll-interface struct 'torch::jit::script::ForkValue' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/script/compiler.h(35): note: see declaration of 'torch::jit::script::SugaredValue' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/script/compiler.h(167): note: see declaration of 'torch::jit::script::ForkValue' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/script/compiler.h(173): warning C4275: non dll-interface struct 'torch::jit::script::SugaredValue' used as base for dll-interface struct 'torch::jit::script::AnnotateValue' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/script/compiler.h(35): note: see declaration of 'torch::jit::script::SugaredValue' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/script/compiler.h(173): note: see declaration of 'torch::jit::script::AnnotateValue' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/module.h(61): warning C4251: 'std::enable_shared_from_this::_Wptr': class 'std::weak_ptr<_Ty>' needs to have dll-interface to be used by clients of class 'std::enable_shared_from_this' with [ _Ty=torch::nn::Module ] C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(1161): note: see declaration of 'std::weak_ptr<_Ty>' with [ Ty=torch::nn::Module ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/module.h(483): warning C4251: 'torch::nn::Module::parameters': class 'torch::OrderedDict<std::string,at::Tensor>' needs to have dll-interface to be used by clients of class 'torch::nn::Module' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/module.h(209): note: see declaration of 'torch::OrderedDict<std::string,at::Tensor>' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/module.h(486): warning C4251: 'torch::nn::Module::buffers': class 'torch::OrderedDict<std::string,at::Tensor>' needs to have dll-interface to be used by clients of class 'torch::nn::Module' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/module.h(209): note: see declaration of 'torch::OrderedDict<std::string,at::Tensor>' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/module.h(489): warning C4251: 'torch::nn::Module::children': class 'torch::OrderedDict<std::string,std::shared_ptr<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::nn::Module' with [ _Ty=torch::nn::Module ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/module.h(245): note: see declaration of 'torch::OrderedDict<std::string,std::shared_ptr<_Ty>>' with [ Ty=torch::nn::Module ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/module.h(492): warning C4251: 'torch::nn::Module::name': class 'c10::optional' needs to have dll-interface to be used by clients of class 'torch::nn::Module' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/named_value.h(70): note: see declaration of 'c10::optional' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/pimpl.h(123): error C2872: 'std': ambiguous symbol D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/argument_spec.h(380): note: could be 'std' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/pimpl.h(123): note: or 'std' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/modules/batchnorm.h(92): note: see reference to class template instantiation 'torch::nn::ModuleHolder' being compiled D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/stack.h(30): note: see reference to class template instantiation 'c10::ArrayRef' being compiled D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/pimpl.h(129): error C2872: 'std': ambiguous symbol D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch/csrc/jit/argumentspec.h(380): note: could be 'std' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/pimpl.h(129): note: or 'std' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/modules/conv.h(106): warning C4251: 'torch::nn::ConvImpl<1,torch::nn::Conv1dImpl>::options': struct 'torch::nn::ConvOptions<1>' needs to have dll-interface to be used by clients of class 'torch::nn::ConvImpl<1,torch::nn::Conv1dImpl>' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/modules/conv.h(87): note: see declaration of 'torch::nn::ConvOptions<1>' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/modules/conv.h(126): warning C4251: 'torch::nn::ConvImpl<2,torch::nn::Conv2dImpl>::options': struct 'torch::nn::ConvOptions<2>' needs to have dll-interface to be used by clients of class 'torch::nn::ConvImpl<2,torch::nn::Conv2dImpl>' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/modules/conv.h(87): note: see declaration of 'torch::nn::ConvOptions<2>' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/modules/conv.h(146): warning C4251: 'torch::nn::ConvImpl<3,torch::nn::Conv3dImpl>::options': struct 'torch::nn::ConvOptions<3>' needs to have dll-interface to be used by clients of class 'torch::nn::ConvImpl<3,torch::nn::Conv3dImpl>' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/modules/conv.h(87): note: see declaration of 'torch::nn::ConvOptions<3>' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/modules/functional.h(89): warning C4251: 'torch::nn::FunctionalImpl::function': class 'std::function<at::Tensor (at::Tensor)>' needs to have dll-interface to be used by clients of class 'torch::nn::FunctionalImpl' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/data/transforms/tensor.h(39): note: see declaration of 'std::function<at::Tensor (at::Tensor)>' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/modules/rnn.h(174): warning C4251: 'torch::nn::detail::RNNImplBase::w_ih': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::nn::detail::RNNImplBase' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/modules/rnn.h(174): warning C4251: 'torch::nn::detail::RNNImplBase::w_hh': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::nn::detail::RNNImplBase' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/modules/rnn.h(174): warning C4251: 'torch::nn::detail::RNNImplBase::b_ih': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::nn::detail::RNNImplBase' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/modules/rnn.h(174): warning C4251: 'torch::nn::detail::RNNImplBase::b_hh': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::nn::detail::RNNImplBase' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/modules/rnn.h(174): warning C4251: 'torch::nn::detail::RNNImplBase::cudnnmode': class 'c10::optional<torch::nn::detail::RNNImplBase::CuDNNMode>' needs to have dll-interface to be used by clients of class 'torch::nn::detail::RNNImplBase' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/modules/rnn.h(64): note: see declaration of 'c10::optional<torch::nn::detail::RNNImplBase::CuDNNMode>' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/modules/rnn.h(174): warning C4251: 'torch::nn::detail::RNNImplBase::flatweights': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::nn::detail::RNNImplBase' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/modules/rnn.h(202): warning C4251: 'torch::nn::detail::RNNImplBase::w_ih': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::nn::detail::RNNImplBase' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/modules/rnn.h(202): warning C4251: 'torch::nn::detail::RNNImplBase::w_hh': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::nn::detail::RNNImplBase' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/modules/rnn.h(202): warning C4251: 'torch::nn::detail::RNNImplBase::b_ih': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::nn::detail::RNNImplBase' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/modules/rnn.h(202): warning C4251: 'torch::nn::detail::RNNImplBase::b_hh': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::nn::detail::RNNImplBase' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/modules/rnn.h(202): warning C4251: 'torch::nn::detail::RNNImplBase::cudnnmode': class 'c10::optional<torch::nn::detail::RNNImplBase::CuDNNMode>' needs to have dll-interface to be used by clients of class 'torch::nn::detail::RNNImplBase' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/modules/rnn.h(64): note: see declaration of 'c10::optional<torch::nn::detail::RNNImplBase::CuDNNMode>' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/modules/rnn.h(202): warning C4251: 'torch::nn::detail::RNNImplBase::flatweights': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::nn::detail::RNNImplBase' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/modules/rnn.h(228): warning C4251: 'torch::nn::detail::RNNImplBase::w_ih': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::nn::detail::RNNImplBase' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/modules/rnn.h(228): warning C4251: 'torch::nn::detail::RNNImplBase::w_hh': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::nn::detail::RNNImplBase' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/modules/rnn.h(228): warning C4251: 'torch::nn::detail::RNNImplBase::b_ih': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::nn::detail::RNNImplBase' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/modules/rnn.h(228): warning C4251: 'torch::nn::detail::RNNImplBase::b_hh': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::nn::detail::RNNImplBase' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/modules/rnn.h(228): warning C4251: 'torch::nn::detail::RNNImplBase::cudnnmode': class 'c10::optional<torch::nn::detail::RNNImplBase::CuDNNMode>' needs to have dll-interface to be used by clients of class 'torch::nn::detail::RNNImplBase' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/modules/rnn.h(64): note: see declaration of 'c10::optional<torch::nn::detail::RNNImplBase::CuDNNMode>' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/modules/rnn.h(228): warning C4251: 'torch::nn::detail::RNNImplBase::flatweights': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::nn::detail::RNNImplBase' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>' with [ Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/optimizer.h(80): warning C4251: 'torch::optim::detail::OptimizerBase::parameters': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::detail::OptimizerBase' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/adagrad.h(28): warning C4275: non dll-interface class 'torch::optim::Optimizer' used as base for dll-interface class 'torch::optim::Adagrad' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/optimizer.h(97): note: see declaration of 'torch::optim::Optimizer' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/adagrad.h(28): note: see declaration of 'torch::optim::Adagrad' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/adagrad.h(44): warning C4251: 'torch::optim::Adagrad::sum_buffers': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::Adagrad' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/adagrad.h(45): warning C4251: 'torch::optim::Adagrad::step_buffers': class 'std::vector<int64_t,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::Adagrad' with [ _Ty=int64_t ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/util/typeid.h(580): note: see declaration of 'std::vector<int64_t,std::allocator<_Ty>>' with [ _Ty=int64_t ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/adam.h(31): warning C4275: non dll-interface class 'torch::optim::Optimizer' used as base for dll-interface class 'torch::optim::Adam' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/optimizer.h(97): note: see declaration of 'torch::optim::Optimizer' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/adam.h(31): note: see declaration of 'torch::optim::Adam' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/adam.h(45): warning C4251: 'torch::optim::Adam::step_buffers': class 'std::vector<int64_t,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::Adam' with [ _Ty=int64_t ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\c10/util/typeid.h(580): note: see declaration of 'std::vector<int64_t,std::allocator<_Ty>>' with [ _Ty=int64_t ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/adam.h(46): warning C4251: 'torch::optim::Adam::exp_average_buffers': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::Adam' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/adam.h(47): warning C4251: 'torch::optim::Adam::exp_average_sq_buffers': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::Adam' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/adam.h(48): warning C4251: 'torch::optim::Adam::max_exp_average_sq_buffers': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::Adam' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/lbfgs.h(22): warning C4305: 'initializing': truncation from 'double' to 'float' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/lbfgs.h(23): warning C4305: 'initializing': truncation from 'double' to 'float' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/lbfgs.h(27): warning C4275: non dll-interface class 'torch::optim::LossClosureOptimizer' used as base for dll-interface class 'torch::optim::LBFGS' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/optimizer.h(107): note: see declaration of 'torch::optim::LossClosureOptimizer' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/lbfgs.h(27): note: see declaration of 'torch::optim::LBFGS' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/lbfgs.h(48): warning C4251: 'torch::optim::LBFGS::ro': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::LBFGS' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/lbfgs.h(49): warning C4251: 'torch::optim::LBFGS::al': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::LBFGS' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/lbfgs.h(50): warning C4251: 'torch::optim::LBFGS::old_dirs': class 'std::deque<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::LBFGS' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/lbfgs.h(50): note: see declaration of 'std::deque<at::Tensor,std::allocator<_Ty>>' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/lbfgs.h(51): warning C4251: 'torch::optim::LBFGS::old_stps': class 'std::deque<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::LBFGS' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/lbfgs.h(50): note: see declaration of 'std::deque<at::Tensor,std::allocator<_Ty>>' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/rmsprop.h(34): warning C4275: non dll-interface class 'torch::optim::Optimizer' used as base for dll-interface class 'torch::optim::RMSprop' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/optimizer.h(97): note: see declaration of 'torch::optim::Optimizer' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/rmsprop.h(34): note: see declaration of 'torch::optim::RMSprop' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/rmsprop.h(50): warning C4251: 'torch::optim::RMSprop::square_average_buffers': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::RMSprop' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/rmsprop.h(51): warning C4251: 'torch::optim::RMSprop::momentum_buffers': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::RMSprop' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/rmsprop.h(52): warning C4251: 'torch::optim::RMSprop::grad_average_buffers': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::RMSprop' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/sgd.h(31): warning C4275: non dll-interface class 'torch::optim::Optimizer' used as base for dll-interface class 'torch::optim::SGD' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/optimizer.h(97): note: see declaration of 'torch::optim::Optimizer' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/sgd.h(31): note: see declaration of 'torch::optim::SGD' D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/sgd.h(45): warning C4251: 'torch::optim::SGD::momentum_buffers': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::SGD' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>' with [ _Ty=at::Tensor ] D:\ProgramData\Anaconda3\envs\py36\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/torch.h(7): fatal error C1021: invalid preprocessor command 'warning' error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe' failed with exit status 2 (py36) PS D:\kylinVid\vid2vid\models\flownet2-pytorch\networks\resample2d_package>

crypticsymmetry commented 5 years ago

i have gotten this error as well, any fix?

corelengine commented 4 years ago

i have gotten this error as well, any fix?

i am sorry ,i had not solve the problem.

labdeeman7 commented 4 years ago

I also have this error, any fixes?