daniilidis-group / neural_renderer

A PyTorch port of the Neural 3D Mesh Renderer
Other
1.12k stars 248 forks source link

Is it can be run on winodws??When I run "python setup.py install" ,it will show this #47

Closed Weipeilang closed 5 years ago

Weipeilang commented 5 years ago

running install running bdist_egg running egg_info writing neural_renderer.egg-info\PKG-INFO writing dependency_links to neural_renderer.egg-info\dependency_links.txt writing requirements to neural_renderer.egg-info\requires.txt writing top-level names to neural_renderer.egg-info\top_level.txt reading manifest file 'neural_renderer.egg-info\SOURCES.txt' writing manifest file 'neural_renderer.egg-info\SOURCES.txt' installing library code to build\bdist.win-amd64\egg running install_lib running build_py running build_ext D:\Anaconda3\lib\site-packages\torch\utils\cpp_extension.py:184: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。 warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error)) building 'neural_renderer.cuda.load_textures' extension D:\VisualStudio\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -ID:\Anaconda3\lib\site-packages\torch\lib\include -ID:\Anaconda3\lib\site-packages\torch\lib\include\torch\csrc\api\include -ID:\Anaconda3\lib\site-packages\torch\lib\include\TH -ID:\Anaconda3\lib\site-packages\torch\lib\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\include" -ID:\Anaconda3\include -ID:\Anaconda3\include -ID:\VisualStudio\VC\Tools\MSVC\14.16.27023\ATLMFC\include -ID:\VisualStudio\VC\Tools\MSVC\14.16.27023\include "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-ID:\Windows Kits\10\include\10.0.17763.0\ucrt" "-ID:\Windows Kits\10\include\10.0.17763.0\shared" "-ID:\Windows Kits\10\include\10.0.17763.0\um" "-ID:\Windows Kits\10\include\10.0.17763.0\winrt" "-ID:\Windows Kits\10\include\10.0.17763.0\cppwinrt" /EHsc /Tpneural_renderer/cuda/load_textures_cuda.cpp /Fobuild\temp.win-amd64-3.6\Release\neural_renderer/cuda/load_textures_cuda.obj -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=load_textures -D_GLIBCXX_USE_CXX11_ABI=0 load_textures_cuda.cpp D:\Anaconda3\lib\site-packages\torch\lib\include\c10/util/Exception.h(27): warning C4275: 非 dll 接口 class“std::exception”用作 dll 接口 class“c10::Error”的基 D:\VisualStudio\VC\Tools\MSVC\14.16.27023\include\vcruntime_exception.h(44): note: 参见“std::exception”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\c10/util/Exception.h(27): note: 参见“c10::Error”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\c10/util/Exception.h(28): warning C4251: “c10::Error::msgstack”: class“std::vector<std::string,std::allocator<_Ty>>”需要有 dll 接口由 class“c10::Error”的客户端使用 with [ _Ty=std::string ] D:\Anaconda3\lib\site-packages\torch\lib\include\c10/util/Exception.h(28): note: 参见“std::vector<std::string,std::allocator<_Ty>>”的声明 with [ Ty=std::string ] D:\Anaconda3\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>”需要有 dll 接口由 class“c10::Error”的客户端 使用 D:\VisualStudio\VC\Tools\MSVC\14.16.27023\include\xstring(4373): note: 参见“std::basic_string<char,std::chartraits,std::allocator>”的声明 D:\Anaconda3\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>”需要有 dll 接口由 class“c10::Error”的客户端使用 D:\VisualStudio\VC\Tools\MSVC\14.16.27023\include\xstring(4373): note: 参见“std::basic_string<char,std::char_traits,std::allocator>”的声明 D:\Anaconda3\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>”需要有 dll 接口由 class“c10::Error”的客户端使用 D:\VisualStudio\VC\Tools\MSVC\14.16.27023\include\xstring(4373): note: 参见“std::basic_string<char,std::chartraits,std::allocator>”的声明 D:\Anaconda3\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 )>>”需要有 dll 接口由 struct“c10::InefficientStdFunctionContext”的客户端使用 D:\Anaconda3\lib\site-packages\torch\lib\include\c10/core/Allocator.h(126): note: 参见“std::unique_ptr<void,std::function<void (void )>>”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\c10/core/TensorTypeIdRegistration.h(32): warning C4251: “c10::TensorTypeIdCreator::lastid”: struct“std::atomic”需要有 dll 接口由 class“c10::TensorTypeIdCreator”的客户端使用 D:\VisualStudio\VC\Tools\MSVC\14.16.27023\include\xxatomic(162): note: 参见“std::atomic”的声明 D:\Anaconda3\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>>”需要有 dll 接口由 class“c10::TensorTypeIdRegistry”的客户端使用 with [ _Kty=c10::TensorTypeId ] D:\Anaconda3\lib\site-packages\torch\lib\include\c10/core/TensorTypeIdRegistration.h(45): note: 参见“std::unordered_set<c10::TensorTypeId,std::hash,std::equal_to<_Kty>,std::allocator<_Kty>>”的声明 with [ Kty=c10::TensorTypeId ] D:\Anaconda3\lib\site-packages\torch\lib\include\c10/core/TensorTypeIdRegistration.h(46): warning C4251: “c10::TensorTypeIdRegistry::mutex”: class“std::mutex”需要有 dll 接口由 class“c10::TensorTypeIdRegistry”的客户端使用 D:\VisualStudio\VC\Tools\MSVC\14.16.27023\include\mutex(82): note: 参见“std::mutex”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\c10/Half-inl.h(168): warning C4244: “参数”: 从“int”转换到“float” ,可能丢失数据 D:\Anaconda3\lib\site-packages\torch\lib\include\c10/Half-inl.h(171): warning C4244: “参数”: 从“int”转换到“float” ,可能丢失数据 D:\Anaconda3\lib\site-packages\torch\lib\include\c10/Half-inl.h(174): warning C4244: “参数”: 从“int”转换到“float” ,可能丢失数据 D:\Anaconda3\lib\site-packages\torch\lib\include\c10/Half-inl.h(177): warning C4244: “参数”: 从“int”转换到“float” ,可能丢失数据 D:\Anaconda3\lib\site-packages\torch\lib\include\c10/Half-inl.h(181): warning C4244: “参数”: 从“int”转换到“float” ,可能丢失数据 D:\Anaconda3\lib\site-packages\torch\lib\include\c10/Half-inl.h(184): warning C4244: “参数”: 从“int”转换到“float” ,可能丢失数据 D:\Anaconda3\lib\site-packages\torch\lib\include\c10/Half-inl.h(187): warning C4244: “参数”: 从“int”转换到“float” ,可能丢失数据 D:\Anaconda3\lib\site-packages\torch\lib\include\c10/Half-inl.h(190): warning C4244: “参数”: 从“int”转换到“float” ,可能丢失数据 D:\Anaconda3\lib\site-packages\torch\lib\include\c10/Half-inl.h(196): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据 D:\Anaconda3\lib\site-packages\torch\lib\include\c10/Half-inl.h(199): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据 D:\Anaconda3\lib\site-packages\torch\lib\include\c10/Half-inl.h(202): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据 D:\Anaconda3\lib\site-packages\torch\lib\include\c10/Half-inl.h(205): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据 D:\Anaconda3\lib\site-packages\torch\lib\include\c10/Half-inl.h(209): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据 D:\Anaconda3\lib\site-packages\torch\lib\include\c10/Half-inl.h(212): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据 D:\Anaconda3\lib\site-packages\torch\lib\include\c10/Half-inl.h(215): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据 D:\Anaconda3\lib\site-packages\torch\lib\include\c10/Half-inl.h(218): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据 D:\Anaconda3\lib\site-packages\torch\lib\include\c10/util/intrusive_ptr.h(58): warning C4251: “c10::intrusive_ptrtarget::refcount”: struct“std::atomic”需要有 dll 接口由 class“c10::intrusive_ptr_target”的客户端使用 D:\VisualStudio\VC\Tools\MSVC\14.16.27023\include\xxatomic(162): note: 参见“std::atomic”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\c10/util/intrusive_ptr.h(59): warning C4251: “c10::intrusive_ptrtarget::weakcount”: struct“std::atomic”需要有 dll 接口由 class“c10::intrusive_ptr_target”的客户端使用 D:\VisualStudio\VC\Tools\MSVC\14.16.27023\include\xxatomic(162): note: 参见“std::atomic”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\c10/util/intrusive_ptr.h(708): warning C4267: “return”: 从“size_t” 转换到“uint32_t”,可能丢失数据 D:\Anaconda3\lib\site-packages\torch\lib\include\c10/util/intrusive_ptr.h(742): warning C4267: “return”: 从“size_t” 转换到“uint32_t”,可能丢失数据 D:\Anaconda3\lib\site-packages\torch\lib\include\c10/core/StorageImpl.h(215): warning C4251: “c10::StorageImpl::dataptr”: class“c10::DataPtr”需要有 dll 接口由 struct“c10::StorageImpl”的客户端使用 D:\Anaconda3\lib\site-packages\torch\lib\include\c10/core/Allocator.h(19): note: 参见“c10::DataPtr”的声明 D:\Anaconda3\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>”需要有 dll 接口 由 struct“c10::Storage”的客户端使用 with [ TTarget=c10::StorageImpl ] D:\Anaconda3\lib\site-packages\torch\lib\include\c10/core/Storage.h(10): note: 参见“c10::intrusive_ptr<c10::StorageImpl,c10::detail::intrusive_target_default_null_type>”的声明 with [ TTarget=c10::StorageImpl ] D:\Anaconda3\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>”需要有 dll 接口由 class“c10::MessageLogger”的客户端使用 D:\VisualStudio\VC\Tools\MSVC\14.16.27023\include\iosfwd(623): note: 参见“std::basic_stringstream<char,std::char_traits,std::allocator>”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/TensorImpl.h(115): warning C4251: “at::PlacementDeleteContext::dataptr”: class“c10::DataPtr”需要有 dll 接口由 struct“at::PlacementDeleteContext”的客户端使用 D:\Anaconda3\lib\site-packages\torch\lib\include\c10/core/Allocator.h(19): note: 参见“c10::DataPtr”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/TensorImpl.h(1434): warning C4251: “at::TensorImpl::sizes_”: class“c10::SmallVector<int64_t,5>”需要有 dll 接口由 struct“at::TensorImpl”的客户端使用 D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/TensorImpl.h(1434): note: 参见“c10::SmallVector<int64t,5>”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/TensorImpl.h(1435): warning C4251: “at::TensorImpl::strides”: class“c10::SmallVector<int64_t,5>”需要有 dll 接口由 struct“at::TensorImpl”的客户端使用 D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/TensorImpl.h(1434): note: 参见“c10::SmallVector<int64_t,5>”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/TensorImpl.h(454): warning C4244: “参数”: 从“int64_t”转换到“c10::DeviceIndex”,可能丢失数据 D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/TensorImpl.h(1006): warning C4244: “参数”: 从“float”转换 到“const _Ty”,可能丢失数据 with [ _Ty=size_t ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/TensorImpl.h(1382): warning C4244: “初始化”: 从“int64_t” 转换到“int”,可能丢失数据 D:\Anaconda3\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>”需要有 dll 接口由 class“at::LegacyTypeDispatch”的客户端使用 D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/LegacyTypeDispatch.h(51): note: 参见“std::uniqueptr<at::Type,at::LegacyTypeDeleter>”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/Tensor.h(692): warning C4251: “at::Tensor::impl”: class“c10::intrusive_ptr<at::TensorImpl,at::UndefinedTensorImpl>”需要有 dll 接口由 class“at::Tensor”的客户端使用 D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/Tensor.h(44): note: 参见“c10::intrusive_ptr<at::TensorImpl,at::UndefinedTensorImpl>”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/Tensor.h(693): warning C4522: “at::Tensor”: 指定了多个赋值 运算符 D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/Tensor.h(720): warning C4251: “at::WeakTensor::weakimpl”: class“c10::weak_intrusive_ptr<TTarget,NullType>”需要有 dll 接口由 struct“at::WeakTensor”的客户端使用 with [ TTarget=at::TensorImpl, NullType=at::UndefinedTensorImpl ] D:\Anaconda3\lib\site-packages\torch\lib\include\c10/util/intrusive_ptr.h(172): note: 参见“c10::weak_intrusive_ptr<TTarget,NullType>”的声明 with [ TTarget=at::TensorImpl, NullType=at::UndefinedTensorImpl ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/LegacyTHDispatch.h(86): warning C4251: “at::LegacyTHDispatch::dispatcher_registry”: class“std::unique_ptr<at::LegacyTHDispatcher,at::LegacyTHDispatcherDeleter>”需要有 dll 接口由 class“at::LegacyTHDispatch”的客户端使用 D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/LegacyTHDispatch.h(61): note: 参见“std::unique_ptr<at::LegacyTHDispatcher,at::LegacyTHDispatcherDeleter>”的声明 D:\Anaconda3\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>>”需要有 dll 接口由 class“at::Context”的客户端使用 with [ _Ty=at::Generator ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/Type.h(104): note: 参见“std::unique_ptr<at::Generator,std::default_delete<_Ty>>”的声明 with [ _Ty=at::Generator ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/Context.h(145): warning C4251: “at::Context::thc_init”: struct“std::once_flag”需要有 dll 接口由 class“at::Context”的客户端使用 D:\VisualStudio\VC\Tools\MSVC\14.16.27023\include\xcall_once.h(18): note: 参见“std::once_flag”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/Context.h(146): warning C4251: “at::Context::thh_init”: struct“std::once_flag”需要有 dll 接口由 class“at::Context”的客户端使用 D:\VisualStudio\VC\Tools\MSVC\14.16.27023\include\xcall_once.h(18): note: 参见“std::once_flag”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/Context.h(147): warning C4251: “at::Context::complexinit”: struct“std::once_flag”需要有 dll 接口由 class“at::Context”的客户端使用 D:\VisualStudio\VC\Tools\MSVC\14.16.27023\include\xcall_once.h(18): note: 参见“std::once_flag”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/Context.h(151): warning C4251: “at::Context::next_id”: struct“std::atomic”需要有 dll 接口由 class“at::Context”的客户端使用 D:\VisualStudio\VC\Tools\MSVC\14.16.27023\include\xxatomic(162): note: 参见“std::atomic”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/Context.h(152): warning C4251: “at::Context::thc_state”: class“std::unique_ptr<THCState,void (cdecl )(THCState )>”需要有 dll 接口由 class“at::Context”的客户端使用 D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/detail/CUDAHooksInterface.h(57): note: 参见“std::unique_ptr<THCState,void (cdecl )(THCState )>”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/Context.h(153): warning C4251: “at::Context::thh_state”: class“std::unique_ptr<THHState,void (cdecl )(THHState )>”需要有 dll 接口由 class“at::Context”的客户端使用 D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/detail/HIPHooksInterface.h(33): note: 参见“std::unique_ptr<THHState,void (cdecl )(THHState )>”的声明 D:\Anaconda3\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. D:\Windows Kits\10\include\10.0.17763.0\ucrt\stdlib.h(1191): note: 参见“getenv”的声明 D:\Anaconda3\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. D:\Windows Kits\10\include\10.0.17763.0\ucrt\stdlib.h(1191): note: 参见“getenv”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\c10/Stream.h(102): warning C4244: “参数”: 从“unsigned int64”转换 到“c10::DeviceIndex”,可能丢失数据 D:\Anaconda3\lib\site-packages\torch\lib\include\c10/Stream.h(102): warning C4244: “参数”: 从“unsigned int64”转换 到“c10::StreamId”,可能丢失数据 D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/TensorGeometry.h(56): warning C4251: “at::TensorGeometry::sizes ”: class“std::vector<int64_t,std::allocator<_Ty>>”需要有 dll 接口由 struct“at::TensorGeometry”的客户端使用 with [ _Ty=int64_t ] D:\Anaconda3\lib\site-packages\torch\lib\include\c10/util/typeid.h(584): note: 参见“std::vector<int64_t,std::allocator<_Ty>>”的声明 with [ _Ty=int64t ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/TensorGeometry.h(57): warning C4251: “at::TensorGeometry::strides”: class“std::vector<int64_t,std::allocator<_Ty>>”需要有 dll 接口由 struct“at::TensorGeometry”的客户端使用 with [ _Ty=int64_t ] D:\Anaconda3\lib\site-packages\torch\lib\include\c10/util/typeid.h(584): note: 参见“std::vector<int64_t,std::allocator<_Ty>>”的声明 with [ _Ty=int64_t ] D:\Anaconda3\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>”需要有 dll 接口由 struct“torch::autograd::Variable::Impl”的客户端使用 D:\VisualStudio\VC\Tools\MSVC\14.16.27023\include\xstring(4373): note: 参见“std::basic_string<char,std::char_traits,std::allocator>”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/autograd/variable.h(355): warning C4251: “torch::autograd::Variable::Impl::gradfn”: class“std::shared_ptr”需要有 dll 接口由 struct“torch::autograd::Variable::Impl”的客户端使用 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/autograd/edge.h(17): note: 参见“std::shared_ptr”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/autograd/variable.h(356): warning C4251: “torch::autograd::Variable::Impl::gradaccumulator”: class“std::weak_ptr”需要有 dll 接口由 struct“torch::autograd::Variable::Impl”的客户端使用 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/autograd/variable.h(153): note: 参见“std::weak_ptr”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/autograd/variable.h(358): warning C4251: “torch::autograd::Variable::Impl::versioncounter”: struct“torch::autograd::VariableVersion”需要有 dll 接口由 struct“torch::autograd::Variable::Impl”的客户端使用 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/autograd/variableversion.h(19): note: 参见“torch::autograd::VariableVersion”的声明 D:\Anaconda3\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>>”需 要有 dll 接口由 struct“torch::autograd::Variable::Impl”的客户端使用 with [ _Ty=std::shared_ptr ] D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/autograd/variable.h(245): note: 参见“std::vector<std::shared_ptr,std::allocator<_Ty>>”的声明 with [ _Ty=std::sharedptr ] D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/autograd/variable.h(376): warning C4251: “torch::autograd::Variable::Impl::mutex”: class“std::mutex”需要有 dll 接口由 struct“torch::autograd::Variable::Impl”的客户端使用 D:\VisualStudio\VC\Tools\MSVC\14.16.27023\include\mutex(82): note: 参见“std::mutex”的声明 D:\Anaconda3\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>>>”需要有 dll 接口由 class“c10::ThreadPool”的客户端使用 with [ _Ty=c10::ThreadPool::task_element_t ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/thread_pool.h(51): note: 参见“std::queue<c10::ThreadPool::task_element_t,std::deque<_Ty,std::allocator<_Ty>>>”的声明 with [ _Ty=c10::ThreadPool::task_element_t ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/threadpool.h(52): warning C4251: “c10::ThreadPool::threads”: class“std::vector<std::thread,std::allocator<_Ty>>”需要有 dll 接口由 class“c10::ThreadPool”的客户端使用 with [ _Ty=std::thread ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/thread_pool.h(52): note: 参见“std::vector<std::thread,std::allocator<_Ty>>”的声明 with [ _Ty=std::thread ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/threadpool.h(53): warning C4251: “c10::ThreadPool::mutex”: class“std::mutex”需要有 dll 接口由 class“c10::ThreadPool”的客户端使用 D:\VisualStudio\VC\Tools\MSVC\14.16.27023\include\mutex(82): note: 参见“std::mutex”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/threadpool.h(54): warning C4251: “c10::ThreadPool::condition”: class“std::condition_variable”需要有 dll 接口由 class“c10::ThreadPool”的客户端使用 D:\VisualStudio\VC\Tools\MSVC\14.16.27023\include\mutex(682): note: 参见“std::condition_variable”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/threadpool.h(55): warning C4251: “c10::ThreadPool::completed”: class“std::condition_variable”需要有 dll 接口由 class“c10::ThreadPool”的客户端使用 D:\VisualStudio\VC\Tools\MSVC\14.16.27023\include\mutex(682): note: 参见“std::conditionvariable”的声明 D:\Anaconda3\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>”需要有 dll 接口由 struct“c10::ivalue::ConstantString”的客户端使用 D:\VisualStudio\VC\Tools\MSVC\14.16.27023\include\xstring(4373): note: 参见“std::basic_string<char,std::chartraits,std::allocator>”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/ivalue.h(43): warning C4251: “c10::ivalue::List::elements”: class“std::vector<T,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::ivalue::List”的客户端使用 D:\Anaconda3\lib\site-packages\torch\lib\include\c10/util/ArrayRef.h(214): note: 参见“std::vector<T,std::allocator<_Ty>>”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/ivalue.h(65): note: 参见对正在编译的 类 模板 实例化 "c10::ivalue::List" 的引用 D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/ivalue.h(43): warning C4251: “c10::ivalue::List::elements_”: class“std::vector<Elem,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::ivalue::List” 的客户端使用 with [ Elem=c10::IValue, _Ty=c10::IValue ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/ivalue.h(43): note: 参见“std::vector<Elem,std::allocator<_Ty>>”的声明 with [ Elem=c10::IValue, Ty=c10::IValue ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/ivalue.h(69): note: 参见对正在编译的 类 模板 实例化 "c10::ivalue::List" 的引用 D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/ivalue.h(570): warning C4251: “c10::ivalue::Future::mutex”: class“std::mutex”需要有 dll 接口由 struct“c10::ivalue::Future”的客户端使用 D:\VisualStudio\VC\Tools\MSVC\14.16.27023\include\mutex(82): note: 参见“std::mutex”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/ivalue.h(572): warning C4251: “c10::ivalue::Future::completed_”: struct“std::atomic”需要有 dll 接口由 struct“c10::ivalue::Future”的客户端使用 D:\VisualStudio\VC\Tools\MSVC\14.16.27023\include\xxatomic(162): note: 参见“std::atomic”的声明 D:\Anaconda3\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>>”需要有 dll 接口由 struct“c10::ivalue::Future”的客户端使用 with [ _Ty=std::function<void (void)> ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/ivalue.h(573): note: 参见“std::vector<std::function<void (void)>,std::allocator<_Ty>>”的声明 with [ _Ty=std::function<void (void)> ] D:\Anaconda3\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>>”需要有 dll 接口由 struct“c10::ivalue::List”的客户端使用 with [ _Ty=int64_t ] D:\Anaconda3\lib\site-packages\torch\lib\include\c10/util/typeid.h(584): note: 参见“std::vector<int64_t,std::allocator<_Ty>>”的声明 with [ _Ty=int64_t ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/ivalue.h(622): note: 参见对正在编译的 类 模板 实例化 "c10::ivalue::List" 的引用 D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/ivalue.h(43): warning C4251: “c10::ivalue::List::elements_”: class“std::vector<T,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::ivalue::List”的客户端使用 with [ T=double, _Ty=double ] D:\Anaconda3\lib\site-packages\torch\lib\include\c10/util/ArrayRef.h(214): note: 参见“std::vector<T,std::allocator<_Ty>>”的声明 with [ T=double, Ty=double ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/ivalue.h(636): note: 参见对正在编译的 类 模板 实例化 "c10::ivalue::List" 的引用 D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/ivalue.h(43): warning C4251: “c10::ivalue::List::elements”: class“std::vector<bool,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::ivalue::List”的客户端使用 with [ _Ty=bool ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/ivalue.h(296): note: 参见“std::vector<bool,std::allocator<_Ty>>”的声明 with [ Ty=bool ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/ivalue.h(643): note: 参见对正在编译的 类 模板 实例化 "c10::ivalue::List" 的引用 D:\Anaconda3\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>>”需要有 dll 接口由 struct“c10::ivalue::List”的客户端使用 with [ _Ty=at::Tensor ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ Ty=at::Tensor ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/ivalue.h(650): note: 参见对正在编译的 类 模板 实例化 "c10::ivalue::List" 的引用 D:\Anaconda3\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>”需要有 dll 接口由 struct“torch::jit::Scope”的客户端使用 with [ TTarget=torch::jit::Scope ] D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/scope.h(20): note: 参见“c10::intrusive_ptr<torch::jit::Scope,c10::detail::intrusive_target_default_null_type>”的声明 with [ TTarget=torch::jit::Scope ] D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/constants.h(16): warning C4275: 非 dll 接口 class“std::runtime_error”用作 dll 接口 struct“torch::jit::constant_not_supported_error”的基 D:\VisualStudio\VC\Tools\MSVC\14.16.27023\include\stdexcept(157): note: 参见“std::runtime_error”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/constants.h(16): note: 参见“torch::jit::constant_not_supported_error”的声明 D:\Anaconda3\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>”需要有 dll 接口由 class“std::enable_shared_from_this”的客 户端使用 with [ _Ty=c10::Type ] D:\VisualStudio\VC\Tools\MSVC\14.16.27023\include\memory(2029): note: 参见“std::weak_ptr<_Ty>”的声明 with [ _Ty=c10::Type ] D:\Anaconda3\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”需要有 dll 接口由 struct“c10::SingleElementType<c10::TypeKind::OptionalType,c10::OptionalType>”的客户端使用 D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/jit_type.h(50): note: 参见“std::shared_ptr”的声 明 D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/jit_type.h(359): warning C4244: “参数”: 从“int64_t”转换到“int”,可能丢失数据 D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/jittype.h(476): warning C4251: “c10::CompleteTensorType::sizes”: class“std::vector<int64_t,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::CompleteTensorType”的客户端使用 with [ _Ty=int64_t ] D:\Anaconda3\lib\site-packages\torch\lib\include\c10/util/typeid.h(584): note: 参见“std::vector<int64_t,std::allocator<_Ty>>”的声明 with [ _Ty=int64_t ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/jittype.h(477): warning C4251: “c10::CompleteTensorType::strides”: class“std::vector<int64_t,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::CompleteTensorType”的客户端使用 with [ _Ty=int64_t ] D:\Anaconda3\lib\site-packages\torch\lib\include\c10/util/typeid.h(584): note: 参见“std::vector<int64_t,std::allocator<_Ty>>”的声明 with [ _Ty=int64_t ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/jit_type.h(463): warning C4267: “参数”: 从“size_t”转换到 “int”,可能丢失数据 D:\Anaconda3\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”需要有 dll 接口由 struct“c10::SingleElementType<c10::TypeKind::ListType,c10::ListType>”的客户端使用 D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/jit_type.h(50): note: 参见“std::shared_ptr”的声 明 D:\Anaconda3\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”需要有 dll 接口由 struct“c10::SingleElementType<c10::TypeKind::FutureType,c10::FutureType>”的客户端使用 D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/jit_type.h(50): note: 参见“std::shared_ptr”的声 明 D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/jittype.h(625): warning C4251: “c10::TupleType::elements”: class“std::vector<c10::TypePtr,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::TupleType”的客户端使用 with [ _Ty=c10::TypePtr ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/jit_type.h(148): note: 参见“std::vector<c10::TypePtr,std::allocator<_Ty>>”的声明 with [ _Ty=c10::TypePtr ] D:\Anaconda3\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>”需要有 dll 接口由 class“std::enable_shared_from_this”的客户端使用 with [ _Ty=torch::jit::tracer::TracingState ] D:\VisualStudio\VC\Tools\MSVC\14.16.27023\include\memory(2029): note: 参见“std::weak_ptr<_Ty>”的声明 with [ _Ty=torch::jit::tracer::TracingState ] D:\Anaconda3\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>>>”需要有 dll 接口由 struct“torch::jit::tracer::TracingState”的客户端使用 with [ _Kty=torch::jit::tracer::TracingState::WeakTensor, _Ty=torch::jit::Value ] D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/tracing_state.h(47): note: 参见“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:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/tracing_state.h(48): warning C4251: “torch::jit::tracer::TracingState::graph”: class“std::shared_ptr”需要有 dll 接口由 struct“torch::jit::tracer::TracingState”的客户端使用 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/tracing_state.h(48): note: 参见“std::shared_ptr”的声明 D:\Anaconda3\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 &)>”需要有 dll 接口由 struct“torch::jit::tracer::TracingState”的客户端使用 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/tracing_state.h(51): note: 参见“std::function<std::string (const torch::autograd::Variable &)>”的声明 D:\Anaconda3\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>”需要有 dll 接口由 struct“torch::jit::tracer::NoWarn”的客户端使用 with [ _Ty=torch::jit::tracer::TracingState ] D:\VisualStudio\VC\Tools\MSVC\14.16.27023\include\memory(2019): note: 参见“std::shared_ptr<_Ty>”的声明 with [ Ty=torch::jit::tracer::TracingState ] D:\Anaconda3\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”需要有 dll 接口由 class“torch::serialize::InputArchive”的客户端使用 D:\Anaconda3\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/serialize/input-archive.h(78): note: 参见 “std::sharedptr”的声明 D:\Anaconda3\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”需要有 dll 接口由 class“torch::serialize::OutputArchive”的客户端使用 D:\Anaconda3\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/serialize/input-archive.h(78): note: 参见 “std::shared_ptr”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/script/lexer.h(384): warning C4267: “参数”: 从“size_t”转换到“_Ty”,可能丢失数据 with [ _Ty=int32_t ] D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/script/lexer.h(458): warning C4267: “初始化”: 从“size_t”转换到“int”,可能丢失数据 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/interpreter.h(42): warning C4251: “torch::jit::Code::pImpl”: class“std::shared_ptr”需要有 dll 接口由 struct“torch::jit::Code”的客户端使用 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/interpreter.h(42): note: 参见“std::shared_ptr”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/argument_spec.h(189): warning C4267: “初始化”: 从“size_t”转换到“int32_t”,可能丢失数据 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/argument_spec.h(192): warning C4267: “初始化”: 从“size_t”转换到“int32_t”,可能丢失数据 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/argument_spec.h(192): warning C4267: “初始化”: 从“size_t”转换到“const int32_t”,可能丢失数据 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/argument_spec.h(196): warning C4244: “+=”: 从“int64_t”转换到“int32_t”,可能丢失数据 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/argument_spec.h(215): warning C4244: “+=”: 从“int64_t”转换到“int32_t”,可能丢失数据 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/argument_spec.h(367): warning C4267: “参数”: 从“size_t”转换到“const int”,可能丢失数据 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/graph_executor.h(41): warning C4251: “torch::jit::GraphExecutor::pImpl”: class“std::shared_ptr”需要有 dll 接口由 struct“torch::jit::GraphExecutor”的客户端使用 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/graph_executor.h(41): note: 参见“std::shared_ptr”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/script/module.h(56): warning C4267: “初始化”: 从“size_t”转换到“int”,可能丢失数据 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/script/compiler.h(93): warning C4275: 非 dll 接口 struct“torch::jit::script::SugaredValue”用作 dll 接口 struct“torch::jit::script::SimpleValue”的基 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/script/compiler.h(35): note: 参见“torch::jit::script::SugaredValue”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/script/compiler.h(93): note: 参见“torch::jit::script::SimpleValue”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/script/compiler.h(122): warning C4275: 非 dll 接口 struct“torch::jit::script::SugaredValue”用作 dll 接口 struct“torch::jit::script::BuiltinFunction”的基 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/script/compiler.h(35): note: 参见“torch::jit::script::SugaredValue”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/script/compiler.h(122): note: 参见“torch::jit::script::BuiltinFunction”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/script/compiler.h(130): warning C4251: “torch::jit::script::BuiltinFunction::self”: class“c10::optional”需要有 dll 接口由 struct“torch::jit::script::BuiltinFunction”的客户端使用 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/script/module.h(488): note: 参见“c10::optional”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/script/compiler.h(143): warning C4275: 非 dll 接口 struct“torch::jit::script::SugaredValue”用作 dll 接口 struct“torch::jit::script::BuiltinModule”的基 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/script/compiler.h(35): note: 参见“torch::jit::script::SugaredValue”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/script/compiler.h(143): note: 参见“torch::jit::script::BuiltinModule”的声明 D:\Anaconda3\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>”需要有 dll 接口 由 struct“torch::jit::script::BuiltinModule”的客户端使用 D:\VisualStudio\VC\Tools\MSVC\14.16.27023\include\xstring(4373): note: 参见“std::basic_string<char,std::char_traits,std::allocator>”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/script/compiler.h(160): warning C4251: “torch::jit::script::BuiltinModule::version”: class“c10::optional”需要有 dll 接口由 struct“torch::jit::script::BuiltinModule”的客户端使用 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/script/compiler.h(145): note: 参见“c10::optional”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/script/compiler.h(167): warning C4275: 非 dll 接口 struct“torch::jit::script::SugaredValue”用作 dll 接口 struct“torch::jit::script::ForkValue”的基 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/script/compiler.h(35): note: 参见“torch::jit::script::SugaredValue”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/script/compiler.h(167): note: 参见“torch::jit::script::ForkValue”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/script/compiler.h(173): warning C4275: 非 dll 接口 struct“torch::jit::script::SugaredValue”用作 dll 接口 struct“torch::jit::script::AnnotateValue”的基 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/script/compiler.h(35): note: 参见“torch::jit::script::SugaredValue”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/script/compiler.h(173): note: 参见“torch::jit::script::AnnotateValue”的声明 D:\Anaconda3\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>”需要有 dll 接口由 class“std::enable_shared_from_this”的客户端使用 with [ _Ty=torch::nn::Module ] D:\VisualStudio\VC\Tools\MSVC\14.16.27023\include\memory(2029): note: 参见“std::weak_ptr<_Ty>”的声明 with [ Ty=torch::nn::Module ] D:\Anaconda3\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>”需要有 dll 接口由 class“torch::nn::Module”的客户端使用 D:\Anaconda3\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/module.h(209): note: 参见“torch::OrderedDict<std::string,at::Tensor>”的声明 D:\Anaconda3\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>”需要有 dll 接口由 class“torch::nn::Module” 的客户端使用 D:\Anaconda3\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/module.h(209): note: 参见“torch::OrderedDict<std::string,at::Tensor>”的声明 D:\Anaconda3\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>>”需要有 dll 接口由 class“torch::nn::Module”的客户端使用 with [ _Ty=torch::nn::Module ] D:\Anaconda3\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/module.h(245): note: 参见“torch::OrderedDict<std::string,std::shared_ptr<_Ty>>”的声明 with [ Ty=torch::nn::Module ] D:\Anaconda3\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/module.h(492): warning C4251: “torch::nn::Module::name”: class“c10::optional”需要有 dll 接口由 class“torch::nn::Module”的客户端使用 D:\Anaconda3\lib\site-packages\torch\lib\include\torch/csrc/jit/namedvalue.h(70): note: 参见“c10::optional”的声明 D:\Anaconda3\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>”需要有 dll 接口由 class“torch::nn::ConvImpl<1,torch::nn::Conv1dImpl>”的客户端使用 D:\Anaconda3\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/modules/conv.h(87): note: 参见“torch::nn::ConvOptions<1>”的声明 D:\Anaconda3\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>”需要有 dll 接口由 class“torch::nn::ConvImpl<2,torch::nn::Conv2dImpl>”的客户端使用 D:\Anaconda3\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/modules/conv.h(87): note: 参见“torch::nn::ConvOptions<2>”的声明 D:\Anaconda3\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>”需要有 dll 接口由 class“torch::nn::ConvImpl<3,torch::nn::Conv3dImpl>”的客户端使用 D:\Anaconda3\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/modules/conv.h(87): note: 参见“torch::nn::ConvOptions<3>”的声明 D:\Anaconda3\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)>”需要有 dll 接口由 class“torch::nn::FunctionalImpl”的客户端使用 D:\Anaconda3\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/data/transforms/tensor.h(39): note: 参见“std::function<at::Tensor (at::Tensor)>”的声明 D:\Anaconda3\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>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase”的客户端使用 with [ _Ty=at::Tensor ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] D:\Anaconda3\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>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase”的客户端使用 with [ _Ty=at::Tensor ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] D:\Anaconda3\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>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase”的客户端使用 with [ _Ty=at::Tensor ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] D:\Anaconda3\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>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase”的客户端使用 with [ _Ty=at::Tensor ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] D:\Anaconda3\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>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase”的客户端使用 D:\Anaconda3\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/modules/rnn.h(64): note: 参见“c10::optional<torch::nn::detail::RNNImplBase::CuDNNMode>”的声明 D:\Anaconda3\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>>” 需要有 dll 接口由 class“torch::nn::detail::RNNImplBase”的客户端使用 with [ _Ty=at::Tensor ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] D:\Anaconda3\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>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase”的客户端使用 with [ _Ty=at::Tensor ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] D:\Anaconda3\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>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase”的客户端使用 with [ _Ty=at::Tensor ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] D:\Anaconda3\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>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase”的客户端使用 with [ _Ty=at::Tensor ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] D:\Anaconda3\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>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase”的客户端使用 with [ _Ty=at::Tensor ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] D:\Anaconda3\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>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase”的客户端使用 D:\Anaconda3\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/modules/rnn.h(64): note: 参见“c10::optional<torch::nn::detail::RNNImplBase::CuDNNMode>”的声明 D:\Anaconda3\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>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase”的客户端使用 with [ _Ty=at::Tensor ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] D:\Anaconda3\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>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase”的客户端使用 with [ _Ty=at::Tensor ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] D:\Anaconda3\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>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase”的客户端使用 with [ _Ty=at::Tensor ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] D:\Anaconda3\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>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase”的客户端使用 with [ _Ty=at::Tensor ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] D:\Anaconda3\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>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase”的客户端使用 with [ _Ty=at::Tensor ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] D:\Anaconda3\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>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase”的客户端使用 D:\Anaconda3\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/nn/modules/rnn.h(64): note: 参见“c10::optional<torch::nn::detail::RNNImplBase::CuDNNMode>”的声明 D:\Anaconda3\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>>” 需要有 dll 接口由 class“torch::nn::detail::RNNImplBase”的客户端使用 with [ _Ty=at::Tensor ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ Ty=at::Tensor ] D:\Anaconda3\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/optimizer.h(83): warning C4251: “torch::optim::detail::OptimizerBase::parameters”: class“std::vector<at::Tensor,std::allocator<_Ty>>”需要有 dll 接口由 class“torch::optim::detail::OptimizerBase”的客户端使用 with [ _Ty=at::Tensor ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] D:\Anaconda3\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/adagrad.h(28): warning C4275: 非 dll 接口 class“torch::optim::Optimizer”用作 dll 接口 class“torch::optim::Adagrad”的基 D:\Anaconda3\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/optimizer.h(100): note: 参见“torch::optim::Optimizer”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/adagrad.h(28): note: 参见“torch::optim::Adagrad”的声明 D:\Anaconda3\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>>”需要有 dll 接口由 class“torch::optim::Adagrad”的客户端使用 with [ _Ty=at::Tensor ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] D:\Anaconda3\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>>”需要有 dll 接口由 class“torch::optim::Adagrad”的客户端使用 with [ _Ty=int64_t ] D:\Anaconda3\lib\site-packages\torch\lib\include\c10/util/typeid.h(584): note: 参见“std::vector<int64_t,std::allocator<_Ty>>”的声明 with [ _Ty=int64_t ] D:\Anaconda3\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/adam.h(31): warning C4275: 非 dll 接口 class“torch::optim::Optimizer”用作 dll 接口 class“torch::optim::Adam”的基 D:\Anaconda3\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/optimizer.h(100): note: 参见“torch::optim::Optimizer”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/adam.h(31): note: 参见“torch::optim::Adam”的声明 D:\Anaconda3\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>>”需要有 dll 接口由 class“torch::optim::Adam”的客户端使用 with [ _Ty=int64_t ] D:\Anaconda3\lib\site-packages\torch\lib\include\c10/util/typeid.h(584): note: 参见“std::vector<int64_t,std::allocator<_Ty>>”的声明 with [ _Ty=int64_t ] D:\Anaconda3\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>>”需要有 dll 接口由 class“torch::optim::Adam”的客户端使用 with [ _Ty=at::Tensor ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] D:\Anaconda3\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>>”需要有 dll 接口由 class“torch::optim::Adam”的客户端使用 with [ _Ty=at::Tensor ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] D:\Anaconda3\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>>”需要有 dll 接口由 class“torch::optim::Adam”的客户端使用 with [ _Ty=at::Tensor ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] D:\Anaconda3\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/lbfgs.h(22): warning C4305: “初始化”: 从“double”到“float”截断 D:\Anaconda3\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/lbfgs.h(23): warning C4305: “初始化”: 从“double”到“float”截断 D:\Anaconda3\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/lbfgs.h(27): warning C4275: 非 dll 接口 class“torch::optim::LossClosureOptimizer”用作 dll 接口 class“torch::optim::LBFGS”的基 D:\Anaconda3\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/optimizer.h(110): note: 参见“torch::optim::LossClosureOptimizer”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/lbfgs.h(27): note: 参见“torch::optim::LBFGS”的声明 D:\Anaconda3\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>>”需要有 dll 接口由 class“torch::optim::LBFGS” 的客户端使用 with [ _Ty=at::Tensor ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] D:\Anaconda3\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>>”需要有 dll 接口由 class“torch::optim::LBFGS” 的客户端使用 with [ _Ty=at::Tensor ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] D:\Anaconda3\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>>”需要有 dll 接口由 class“torch::optim::LBFGS”的客户端使用 with [ _Ty=at::Tensor ] D:\Anaconda3\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/lbfgs.h(50): note: 参见“std::deque<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] D:\Anaconda3\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>>”需要有 dll 接口由 class“torch::optim::LBFGS”的客户端使用 with [ _Ty=at::Tensor ] D:\Anaconda3\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/lbfgs.h(50): note: 参见“std::deque<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] D:\Anaconda3\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/rmsprop.h(34): warning C4275: 非 dll 接口 class“torch::optim::Optimizer”用作 dll 接口 class“torch::optim::RMSprop”的基 D:\Anaconda3\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/optimizer.h(100): note: 参见“torch::optim::Optimizer”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/rmsprop.h(34): note: 参见“torch::optim::RMSprop”的声明 D:\Anaconda3\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>>”需要有 dll 接口由 class“torch::optim::RMSprop”的客户端使用 with [ _Ty=at::Tensor ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] D:\Anaconda3\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>>”需要有 dll 接口由 class“torch::optim::RMSprop”的客户端使用 with [ _Ty=at::Tensor ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] D:\Anaconda3\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>>”需要有 dll 接口由 class“torch::optim::RMSprop”的客户端使用 with [ _Ty=at::Tensor ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] D:\Anaconda3\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/sgd.h(31): warning C4275: 非 dll 接 口 class“torch::optim::Optimizer”用作 dll 接口 class“torch::optim::SGD”的基 D:\Anaconda3\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/optimizer.h(100): note: 参见“torch::optim::Optimizer”的声明 D:\Anaconda3\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/optim/sgd.h(31): note: 参见“torch::optim::SGD”的声明 D:\Anaconda3\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>>”需要有 dll 接口由 class“torch::optim::SGD”的客户端使用 with [ _Ty=at::Tensor ] D:\Anaconda3\lib\site-packages\torch\lib\include\ATen/core/Type.h(224): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] D:\Anaconda3\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/torch.h(7): fatal error C1021: 无效的预处 理器命令“warning” error: command 'D:\VisualStudio\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe' failed with exit status 2

nkolot commented 5 years ago

There is no support for Windows currently and I don't plan to support it in the future either.

Zju-George commented 4 years ago

image after a long time struggling, i build this on windows, if you need you can write Emali:470196540@qq.com to me if you wish

maartenjv commented 4 years ago

Hello, I have the same problem, getting many of these messages during install:

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 ]

And finally this one: C:\ProgramData\Anaconda3\lib\site-packages\torch\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\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe' failed with exit status 2

I am running Windows 7, Anaconda 3, CUDA 10, pytorch 1.1.0

Zju-George commented 4 years ago

yes you just find the torch.h file and delete the 7th line, and you may encounter another problem, then comment again, I will show you how to fix @maartenjv

maartenjv commented 4 years ago

Thanks, it seems to be going on for longer now, although the dll warnings are still there. Now there is a different error:

neural_renderer/cuda/rasterize_cuda_kernel.cu(9): error: function "atomicAdd(double *, double)" has already been defined

1 error detected in the compilation of "....../AppData/Local/Temp/tmpxft_00001ee4_00000000-8_rasterize_cuda_kernel.cpp4.ii". error: command 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin\nvcc.exe' failed with exit status 2

Zju-George commented 4 years ago

@maartenjv Yes that's the problem I mentioned before. You just need to find rasterize_cuda_kernel.cu, open it with any text editor and find atomicAdd(), replace the function with

  #if !defined(__CUDA_ARCH__) || __CUDA_ARCH__ >= 600

  #else
  static __inline__ __device__ double atomicAdd(double *address, double val) {
    unsigned long long int* address_as_ull = (unsigned long long int*)address;
    unsigned long long int old = *address_as_ull, assumed;
    if (val==0.0)
      return __longlong_as_double(old);
    do {
      assumed = old;
      old = atomicCAS(address_as_ull, assumed, __double_as_longlong(val +__longlong_as_double(assumed)));
    } while (assumed != old);
    return __longlong_as_double(old);
  }

  #endif

leave a comment if you succeed

maartenjv commented 4 years ago

seems to be working, ill test some more.

thanks a lot!

BingEdison commented 4 years ago

solved issues with windows install , thanks mate!

v-prgmr commented 4 years ago

@BingEdison , hey mate, I created a venv and installed neural-renderer after modifying the rasterize_cuda_kernel.cu and everything installed. However I do get a warning in the early stages of the build - error checking for compiler version, but it proceeds and installs neural-renderer within this venv.

When i try to test one of the examples, I get a ImportError as follows

Traceback (most recent call last):
  File "example4.py", line 15, in <module>
    import neural_renderer as nr
  File "E:\Git Repos\neural_renderer\nr\lib\site-packages\neural_renderer_pytorch-1.1.3-py3.6-win-amd64.egg\neural_renderer\__init__.py", line 3, in <module>
    from .load_obj import load_obj
  File "E:\Git Repos\neural_renderer\nr\lib\site-packages\neural_renderer_pytorch-1.1.3-py3.6-win-amd64.egg\neural_renderer\load_obj.py", line 8, in <module>
    import neural_renderer.cuda.load_textures as load_textures_cuda
ImportError: DLL load failed: The specified module could not be found.

Do you have suggestions?

BingEdison commented 4 years ago

I've compiled using conda , did you compile from pulled git and not pip install of neural renderer?

v-prgmr commented 4 years ago

Yes, I am working on the pulled git. Which branch did you use ? @BingEdison

yzhao666 commented 3 years ago

It worked for me. @Zju-George Thanks a million!

huytuong010101 commented 3 years ago

@Zju-George Thank u so much, it work for me

ismeyueyue commented 2 years ago

@huytuong010101 Where did you find the torch.h file? I'm struggling on this installation

Towel2000 commented 2 years ago

Would anyone please tell me which line of torch.h I actually need to delete? Mine's has nothing on line7, which is troublesome. I tried installing for more than a month.

qingqing5r44 commented 2 years ago

hi, you can find torch related files in your anaconda spin virtual environment. Just search "torch.h" there. Mine is "Anaconda3\envs\spin\Lib\site-packages\torch\include\torch\csrc\api\include\torch\torch.h"

@huytuong010101 Where did you find the torch.h file? I'm struggling on this installation

Hi, you can find torch related files in your anaconda spin virtual environment. Just search "torch.h" there. Mine is "Anaconda3\envs\spin\Lib\site-packages\torch\include\torch\csrc\api\include\torch\torch.h"

qingqing5r44 commented 2 years ago

Would anyone please tell me which line of torch.h I actually need to delete? Mine's has nothing on line7, which is troublesome. I tried installing for more than a month.

Hi, you should delete line 7 of torch.h, which is shown below. `

warning \

"Including torch/torch.h for C++ extensions is deprecated. Please include torch/extension.h"

`

qingqing5r44 commented 2 years ago

Thanks to all the instructions above, I have just installed neural_renderer_pytorch successfully in Win10. (using neural_renderer_pytorch-win10 version)

Here I'd like to give one tip we might use while installing. After following the above steps, we may still find errors like this. neural_renderer/cuda/load_textures_cuda_kernel.cu(103): error: calling a __host__ function("__roundf") from a __global__ function("_NV_ANON_NAMESPACE::load_textures_cuda_kernel<float> ") is not allowed At this time, you need to change the "floor/ceil/round" into "floorf/ceilf/roundf" in the corresponding source code. Then the errors would disappear.

Hope this notice helps you all :)

ModeSky commented 1 year ago

My environment is windows10, torch1.8, cuda11.3. Running python setup.py install reports the following error. What is the problem image