RenYurui / Global-Flow-Local-Attention

The source code for paper "Deep Image Spatial Transformation for Person Image Generation"
https://renyurui.github.io/GFLA-web
Other
564 stars 84 forks source link

windows block_extractor install error #4

Closed zwbzwj123 closed 4 years ago

zwbzwj123 commented 4 years ago

running install running bdist_egg running egg_info creating block_extractor_cuda.egg-info writing block_extractor_cuda.egg-info\PKG-INFO writing dependency_links to block_extractor_cuda.egg-info\dependency_links.txt writing top-level names to block_extractor_cuda.egg-info\top_level.txt writing manifest file 'block_extractor_cuda.egg-info\SOURCES.txt' reading manifest file 'block_extractor_cuda.egg-info\SOURCES.txt' writing manifest file 'block_extractor_cuda.egg-info\SOURCES.txt' installing library code to build\bdist.win-amd64\egg running install_lib running build_ext F:\Anaconda3\envs\pytorch\lib\site-packages\torch\utils\cpp_extension.py:184: UserWarning: Error checking compiler version for cl: 'utf-8' codec can't decode byte 0xd3 in position 0: invalid continuation byte warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error)) building 'block_extractor_cuda' extension creating build creating build\temp.win-amd64-3.6 creating build\temp.win-amd64-3.6\Release C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IF:\Anaconda3\envs\pytorch\lib\site-packages\torch\include -IF:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include -IF:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\TH -IF:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\include" -IF:\Anaconda3\envs\pytorch\include -IF:\Anaconda3\envs\pytorch\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IF:\Windows Kits\10\include\10.0.17763.0\ucrt" "-IF:\Windows Kits\10\include\10.0.17763.0\shared" "-IF:\Windows Kits\10\include\10.0.17763.0\um" "-IF:\Windows Kits\10\include\10.0.17763.0\winrt" "-IF:\Windows Kits\10\include\10.0.17763.0\cppwinrt" /EHsc /Tpblock_extractor_cuda.cc /Fobuild\temp.win-amd64-3.6\Release\block_extractor_cuda.obj -std=c++11 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=block_extractor_cuda -D_GLIBCXX_USE_CXX11_ABI=0 /MD cl: 命令行 warning D9002 :忽略未知选项“-std=c++11” block_extractor_cuda.cc F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/util/Exception.h(27): warning C4275: 非 dll 接口 class“std::exception”用作 dll 接口 class“c10::Error”的基 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\vcruntime_exception.h(44): note: 参见“std::exception”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/util/Exception.h(27): note: 参见“c10::Error”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/util/Exception.h(28): note: 参见“std::vector<std::string,std::allocator<_Ty>>”的声明 with [ Ty=std::string ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\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”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\xstring(4373): note: 参 见“std::basic_string<char,std::chartraits,std::allocator>”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\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”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\xstring(4373): note: 参 见“std::basic_string<char,std::char_traits,std::allocator>”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\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”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\xstring(4373): note: 参 见“std::basic_string<char,std::chartraits,std::allocator>”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/core/Allocator.h(21): warning C4251: “c10::DataPtr::ptr ”: class“c10::detail::UniqueVoidPtr”需要有 dll 接口由 class“c10::DataPtr”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/util/UniqueVoidPtr.h(38): note: 参见“c10::detail::UniqueVoidPtr”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/core/Allocator.h(183): warning C4251: “c10::InefficientStdFunctionContext::ptr_”: class“std::unique_ptr<void,std::function<void (void )>>”需要有 dll 接口由 struct“c10::InefficientStdFunctionContext”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/core/Allocator.h(183): note: 参见“std::unique_ptr<void,std::function<void (void )>>”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/core/TensorTypeIdRegistration.h(32): warning C4251: “c10::TensorTypeIdCreator::lastid”: struct“std::atomic”需要有 dll 接口由 class“c10::TensorTypeIdCreator ”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\xxatomic(162): note: 参 见“std::atomic”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/core/TensorTypeIdRegistration.h(46): warning C4251: “c10::TensorTypeIdRegistry::mutex”: class“std::mutex”需要有 dll 接口由 class“c10::TensorTypeIdRegistry”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\mutex(82): note: 参见“std::mutex”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/util/Half-inl.h(168): warning C4244: “参数”: 从“int”转换到“float”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/util/Half-inl.h(171): warning C4244: “参数”: 从“int”转换到“float”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/util/Half-inl.h(174): warning C4244: “参数”: 从“int”转换到“float”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/util/Half-inl.h(177): warning C4244: “参数”: 从“int”转换到“float”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/util/Half-inl.h(181): warning C4244: “参数”: 从“int”转换到“float”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/util/Half-inl.h(184): warning C4244: “参数”: 从“int”转换到“float”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/util/Half-inl.h(187): warning C4244: “参数”: 从“int”转换到“float”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/util/Half-inl.h(190): warning C4244: “参数”: 从“int”转换到“float”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/util/Half-inl.h(196): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/util/Half-inl.h(199): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/util/Half-inl.h(202): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/util/Half-inl.h(205): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/util/Half-inl.h(209): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/util/Half-inl.h(212): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/util/Half-inl.h(215): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/util/Half-inl.h(218): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/util/intrusive_ptr.h(58): warning C4251: “c10::intrusive_ptrtarget::refcount”: struct“std::atomic”需要有 dll 接口由 class“c10::intrusive_ptr_target”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\xxatomic(162): note: 参 见“std::atomic”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/util/intrusive_ptr.h(59): warning C4251: “c10::intrusive_ptrtarget::weakcount”: struct“std::atomic”需要有 dll 接口由 class“c10::intrusive_ptr_target”的 客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\xxatomic(162): note: 参 见“std::atomic”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/util/intrusive_ptr.h(723): warning C4267: “return”: 从“size_t”转换到“uint32_t”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/util/intrusive_ptr.h(757): warning C4267: “return”: 从“size_t”转换到“uint32_t”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/core/Storage.h(181): 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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/core/Storage.h(10): note: 参见“c10::intrusive_ptr<c10::StorageImpl,c10::detail::intrusive_target_default_null_type>”的声明 with [ TTarget=c10::StorageImpl ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\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”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\iosfwd(623): note: 参见 “std::basic_stringstream<char,std::char_traits,std::allocator>”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/core/TensorImpl.h(193): warning C4251: “c10::VariableVersion::versionblock”: class“std::shared_ptr<std::atomic>”需要有 dll 接口由 struct“c10::VariableVersion”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/core/TensorImpl.h(193): note: 参见“std::shared_ptr<std::atomic>”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/core/TensorImpl.h(1466): warning C4251: “c10::TensorImpl::autogradmeta”: class“std::unique_ptr<c10::AutogradMetaInterface,std::default_delete<_Ty>>”需要有 dll 接口由 struct“c10::TensorImpl”的客户端使用 with [ _Ty=c10::AutogradMetaInterface ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/core/TensorImpl.h(893): note: 参见“std::unique_ptr<c10::AutogradMetaInterface,std::default_delete<_Ty>>”的声明 with [ Ty=c10::AutogradMetaInterface ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/core/TensorImpl.h(1476): warning C4251: “c10::TensorImpl::sizes”: class“c10::SmallVector<int64_t,5>”需要有 dll 接口由 struct“c10::TensorImpl”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/core/TensorImpl.h(1476): note: 参见“c10::SmallVector<int64t,5>”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/core/TensorImpl.h(1477): warning C4251: “c10::TensorImpl::strides”: class“c10::SmallVector<int64_t,5>”需要有 dll 接口由 struct“c10::TensorImpl”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/core/TensorImpl.h(1476): note: 参见“c10::SmallVector<int64_t,5>”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/core/TensorImpl.h(1499): warning C4251: “c10::TensorImpl::deviceopt”: class“c10::optional”需要有 dll 接口由 struct“c10::TensorImpl”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/core/TensorOptions.h(171): note: 参见“c10::optional”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/core/TensorImpl.h(1018): warning C4244: “参数”: 从“float”转换到“const _Ty”,可能丢失数据 with [ _Ty=size_t ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/core/TensorImpl.h(1416): warning C4244: “初始化”: 从“int64_t”转换到“int”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/LegacyTypeDispatch.h(137): warning C4251: “at::LegacyTypeDispatch::type_registry”: class“std::unique_ptr<at::Type,at::LegacyTypeDeleter>”需要有 dll 接口由 class“at::LegacyTypeDispatch”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/LegacyTypeDispatch.h(51): note: 参见“std::unique_ptr<at::Type,at::LegacyTypeDeleter>”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/DeprecatedTypePropertiesRegistry.h(27): warning C4251: “at::DeprecatedTypePropertiesRegistry::registry”: class“std::unique_ptr<at::DeprecatedTypeProperties,std::default_delete<_Ty>>”需要有 dll 接口由 class“at::DeprecatedTypePropertiesRegistry”的客户端使用 with [ _Ty=at::DeprecatedTypeProperties ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/DeprecatedTypePropertiesRegistry.h(24): note: 参见“std::unique_ptr<at::DeprecatedTypeProperties,std::default_delete<_Ty>>”的声明 with [ Ty=at::DeprecatedTypeProperties ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/Tensor.h(773): warning C4251: “at::Tensor::impl”: class“c10::intrusive_ptr<c10::TensorImpl,c10::UndefinedTensorImpl>”需要有 dll 接口由 class“at::Tensor”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/Tensor.h(58): note: 参见“c10::intrusive_ptr<c10::TensorImpl,c10::UndefinedTensorImpl>”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/Tensor.h(774): warning C4522: “at::Tensor”: 指定了多个赋值运算符 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/Tensor.h(801): warning C4251: “at::WeakTensor::weakimpl”: class“c10::weak_intrusive_ptr<TTarget,NullType>”需要有 dll 接口由 struct“at::WeakTensor”的客户端使用 with [ TTarget=c10::TensorImpl, NullType=c10::UndefinedTensorImpl ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/util/intrusive_ptr.h(172): note: 参见“c10::weak_intrusive_ptr<TTarget,NullType>”的声明 with [ TTarget=c10::TensorImpl, NullType=c10::UndefinedTensorImpl ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/LegacyTHDispatch.h(122): warning C4251: “at::LegacyTHDispatch::dispatcher_registry”: class“std::unique_ptr<at::LegacyTHDispatcher,at::LegacyTHDispatcherDeleter>”需要有 dll 接口由 class“at::LegacyTHDispatch”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/LegacyTHDispatch.h(62): note: 参见“std::unique_ptr<at::LegacyTHDispatcher,at::LegacyTHDispatcherDeleter>”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/core/Stream.h(126): warning C4244: “参数”: 从“unsigned int64”转换到“c10::DeviceIndex”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/core/Stream.h(126): warning C4244: “参数”: 从“unsigned int64”转换到“c10::StreamId”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/Context.h(134): warning C4251: “at::Context::generator_registry”: class“std::unique_ptr<at::Generator,std::default_delete<_Ty>>”需要有 dll 接口由 class“at::Context”的客户 端使用 with [ _Ty=at::Generator ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/Type.h(77): note: 参见“std::unique_ptr<at::Generator,std::default_delete<_Ty>>”的声明 with [ _Ty=at::Generator ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/Context.h(151): warning C4251: “at::Context::thc_init”: struct“std::once_flag”需要有 dll 接口由 class“at::Context”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\xcall_once.h(18): note: 参见“std::once_flag”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/Context.h(152): warning C4251: “at::Context::thh_init”: struct“std::once_flag”需要有 dll 接口由 class“at::Context”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\xcall_once.h(18): note: 参见“std::once_flag”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/Context.h(153): warning C4251: “at::Context::complexinit”: struct“std::once_flag”需要有 dll 接口由 class“at::Context”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\xcall_once.h(18): note: 参见“std::once_flag”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/Context.h(157): warning C4251: “at::Context::next_id”: struct“std::atomic”需要有 dll 接口由 class“at::Context”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\xxatomic(162): note: 参 见“std::atomic”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/Context.h(158): warning C4251: “at::Context::thc_state”: class“std::unique_ptr<THCState,void (cdecl )(THCState )>”需要有 dll 接口由 class“at::Context”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/detail/CUDAHooksInterface.h(57): note: 参见“std::unique_ptr<THCState,void (cdecl )(THCState )>”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/Context.h(159): warning C4251: “at::Context::thh_state”: class“std::unique_ptr<THHState,void (cdecl )(THHState )>”需要有 dll 接口由 class“at::Context”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/detail/HIPHooksInterface.h(33): note: 参见“std::unique_ptr<THHState,void (cdecl )(THHState )>”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/util/typeid.h(597): note: 参见“std::vector<int64_t,std::allocator<_Ty>>”的声明 with [ _Ty=int64t ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/util/typeid.h(597): note: 参见“std::vector<int64_t,std::allocator<_Ty>>”的声明 with [ _Ty=int64_t ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/autograd/variable.h(331): warning C4251: “torch::autograd::Variable::AutogradMeta::name”: class“std::basic_string<char,std::char_traits,std::allocator>”需 要有 dll 接口由 struct“torch::autograd::Variable::AutogradMeta”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\xstring(4373): note: 参 见“std::basic_string<char,std::char_traits,std::allocator>”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/autograd/variable.h(334): warning C4251: “torch::autograd::Variable::AutogradMeta::gradfn”: class“std::shared_ptr”需要有 dll 接口由 struct“torch::autograd::Variable::AutogradMeta”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/autograd/edge.h(17): note: 参见“std::shared_ptr”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/autograd/variable.h(335): warning C4251: “torch::autograd::Variable::AutogradMeta::gradaccumulator”: class“std::weak_ptr”需要有 dll 接口由 struct“torch::autograd::Variable::AutogradMeta”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/autograd/variable.h(175): note: 参见“std::weakptr”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/autograd/variable.h(337): warning C4251: “torch::autograd::Variable::AutogradMeta::hooks”: class“std::vector<std::shared_ptr,std::allocator<_Ty>>”需要有 dll 接口由 struct“torch::autograd::Variable::AutogradMeta”的客户端使用 with [ _Ty=std::shared_ptr ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/autograd/variable.h(283): note: 参见“std::vector<std::shared_ptr,std::allocator<_Ty>>”的声明 with [ _Ty=std::sharedptr ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/autograd/variable.h(353): warning C4251: “torch::autograd::Variable::AutogradMeta::mutex”: class“std::mutex”需要有 dll 接口由 struct“torch::autograd::Variable::AutogradMeta”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\mutex(82): note: 参见“std::mutex”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(27): warning C4251: “c10::ivalue::ConstantString::str_”: class“std::basic_string<char,std::char_traits,std::allocator>”需要有 dll 接口由 struct“c10::ivalue::ConstantString”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\xstring(4373): note: 参 见“std::basic_string<char,std::chartraits,std::allocator>”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(46): warning C4251: “c10::ivalue::List::elements”: class“std::vector<T,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::ivalue::List”的客户端 使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/util/ArrayRef.h(219): note: 参见“std::vector<T,std::allocator<_Ty>>”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(72): note: 参见对正在编译的 类 模板 实例化 "c10::ivalue::List" 的引用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(46): 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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(46): note: 参见“std::vector<Elem,std::allocator<_Ty>>”的声明 with [ Elem=c10::IValue, _Ty=c10::IValue ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(87): note: 参见对正在编译的 类 模板 实例化 "c10::ivalue::List" 的引用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(560): warning C4275: 非 dll 接口 class“std::exception”用作 dll 接口 struct“c10::ivalue::Future::FutureError”的基 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\vcruntime_exception.h(44): note: 参见“std::exception”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(560): note: 参见“c10::ivalue::Future::FutureError”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(570): warning C4251: “c10::ivalue::Future::FutureError::error_msg”: class“std::basic_string<char,std::char_traits,std::allocator>”需要有 dll 接口由 struct“c10::ivalue::Future::FutureError”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\xstring(4373): note: 参 见“std::basic_string<char,std::chartraits,std::allocator>”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(676): warning C4251: “c10::ivalue::Future::mutex”: class“std::mutex”需要有 dll 接口由 struct“c10::ivalue::Future”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\mutex(82): note: 参见“std::mutex”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(678): warning C4251: “c10::ivalue::Future::completed_”: struct“std::atomic”需要有 dll 接口由 struct“c10::ivalue::Future”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\xxatomic(162): note: 参 见“std::atomic”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(679): 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)> ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(679): note: 参见“std::vector<std::function<void (void)>,std::allocator<_Ty>>”的声明 with [ Ty=std::function<void (void)> ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(722): warning C4251: “c10::ivalue::Object::type”: class“std::shared_ptr”需要有 dll 接口由 struct“c10::ivalue::Object”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(687): note: 参见“std::sharedptr”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(723): warning C4251: “c10::ivalue::Object::slots”: class“std::vector<Elem,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::ivalue::Object”的客户端使用 with [ Elem=c10::IValue, _Ty=c10::IValue ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(46): note: 参见“std::vector<Elem,std::allocator<_Ty>>”的声明 with [ Elem=c10::IValue, Ty=c10::IValue ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(728): warning C4251: “c10::ivalue::GenericDict::elements”: class“std::unordered_map<c10::IValue,c10::IValue,c10::ivalue::DictHash,c10::ivalue::DictEqualTo,std::allocator<std::pair<const _Kty,_Ty>>>”需要有 dll 接口由 struct“c10::ivalue::GenericDict”的客户端使用 with [ _Kty=c10::IValue, _Ty=c10::IValue ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(82): note: 参见“std::unordered_map<c10::IValue,c10::IValue,c10::ivalue::DictHash,c10::ivalue::DictEqualTo,std::allocator<std::pair<const _Kty,_Ty>>>”的声明 with [ _Kty=c10::IValue, _Ty=c10::IValue ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(781): warning C4244: “return”: 从“double”转换到“float”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(783): warning C4244: “return”: 从“int64_t”转换到“unsigned char”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(784): warning C4244: “return”: 从“int64_t”转换到“signed char”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(785): warning C4244: “return”: 从“int64_t”转换到“unsigned short”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(786): warning C4244: “return”: 从“int64_t”转换到“short”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(787): warning C4244: “return”: 从“int64_t”转换到“int”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(788): warning C4244: “return”: 从“int64_t”转换到“uint32_t”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(790): warning C4244: “return”: 从“int64_t”转换到“c10::detail::_guarded_unsigned_long”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(46): warning C4251: “c10::ivalue::List::elements_”: class“std::vector<int64_t,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::ivalue::List”的客户端使用 with [ _Ty=int64_t ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/util/typeid.h(597): note: 参见“std::vector<int64_t,std::allocator<_Ty>>”的声明 with [ _Ty=int64_t ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(859): note: 参见对正在编译的 类 模板 实例化 "c10::ivalue::List" 的引用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(46): warning C4251: “c10::ivalue::List::elements_”: class“std::vector<T,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::ivalue::List”的客 户端使用 with [ T=double, _Ty=double ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/util/ArrayRef.h(219): note: 参见“std::vector<T,std::allocator<_Ty>>”的声明 with [ T=double, Ty=double ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(873): note: 参见对正在编译的 类 模板 实例化 "c10::ivalue::List" 的引用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(46): warning C4251: “c10::ivalue::List::elements”: class“std::vector<bool,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::ivalue::List”的客户端使用 with [ _Ty=bool ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(318): note: 参见“std::vector<bool,std::allocator<_Ty>>”的声明 with [ Ty=bool ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(880): note: 参见对正在编译的 类 模板 实例化 "c10::ivalue::List" 的引用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(46): warning C4251: “c10::ivalue::List::elements”: class“std::vector<at::Tensor,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::ivalue::List”的客户端使用 with [ _Ty=at::Tensor ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/Type.h(178): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(887): note: 参见对正在编译的 类 模板 实例化 "c10::ivalue::List" 的引用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(1003): warning C4244: “参数”: 从“int64_t”转换到“const _Kty”,可能丢失数据 with [ _Kty=int ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/jit_type.h(66): warning C4251: “std::enable_shared_from_this::_Wptr”: class“std::weak_ptr<_Ty>”需要有 dll 接口由 class“std::enable_shared_from_this”的客户端使用 with [ _Ty=c10::Type ] C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\memory(2029): note: 参见“std::weak_ptr<_Ty>”的声明 with [ _Ty=c10::Type ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/jit_type.h(227): warning C4251: “c10::SingleElementType<c10::TypeKind::OptionalType,c10::OptionalType>::elem”: class“std::shared_ptr”需要有 dll 接口由 struct“c10::SingleElementType<c10::TypeKind::OptionalType,c10::OptionalType>”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/jit_type.h(64): note: 参见“std::shared_ptr”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/jittype.h(477): warning C4251: “c10::VaryingShape::size”: class“c10::optional”需要有 dll 接口由 struct“c10::VaryingShape”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/jit_type.h(428): note: 参见“c10::optional”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/jittype.h(478): warning C4251: “c10::VaryingShape::dims”: class“std::vector<c10::optional,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::VaryingShape” 的客户端使用 with [ _Ty=c10::optional ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/jit_type.h(478): note: 参见“std::vector<c10::optional,std::allocator<_Ty>>”的声明 with [ _Ty=c10::optional ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/jit_type.h(571): warning C4251: “c10::ProfiledTensorType::scalartype”: class“c10::optional”需要有 dll 接口由 struct“c10::ProfiledTensorType”的客户 端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/core/ScalarType.h(141): note: 参见“c10::optional”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/jittype.h(572): warning C4251: “c10::ProfiledTensorType::device”: class“c10::optional”需要有 dll 接口由 struct“c10::ProfiledTensorType”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/core/TensorOptions.h(171): note: 参见“c10::optional”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/jit_type.h(575): warning C4251: “c10::ProfiledTensorType::requiresgrad”: class“c10::optional”需要有 dll 接口由 struct“c10::ProfiledTensorType”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/core/TensorOptions.h(224): note: 参见“c10::optional”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/jit_type.h(533): warning C4267: “参数”: 从“size_t”转换到“int”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/jit_type.h(537): warning C4267: “参数”: 从“size_t”转换到“int”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/jittype.h(682): warning C4251: “c10::CompleteTensorType::sizes”: class“std::vector<int64_t,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::CompleteTensorType”的 客户端使用 with [ _Ty=int64_t ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/util/typeid.h(597): note: 参见“std::vector<int64_t,std::allocator<_Ty>>”的声明 with [ _Ty=int64_t ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/jittype.h(683): warning C4251: “c10::CompleteTensorType::strides”: class“std::vector<int64_t,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::CompleteTensorType” 的客户端使用 with [ _Ty=int64_t ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/util/typeid.h(597): note: 参见“std::vector<int64_t,std::allocator<_Ty>>”的声明 with [ _Ty=int64_t ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/jit_type.h(688): warning C4251: “c10::SingleElementType<c10::TypeKind::ListType,c10::ListType>::elem”: class“std::shared_ptr”需要有 dll 接口由 struct“c10::SingleElementType<c10::TypeKind::ListType,c10::ListType>”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/jit_type.h(64): note: 参见“std::shared_ptr”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/jit_type.h(801): warning C4251: “c10::DictType::types”: class“std::vector<c10::TypePtr,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::DictType”的客户端使用 with [ _Ty=c10::TypePtr ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/jit_type.h(162): note: 参见“std::vector<c10::TypePtr,std::allocator<_Ty>>”的声明 with [ _Ty=c10::TypePtr ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/jit_type.h(808): warning C4251: “c10::SingleElementType<c10::TypeKind::FutureType,c10::FutureType>::elem”: class“std::shared_ptr”需要有 dll 接口由 struct“c10::SingleElementType<c10::TypeKind::FutureType,c10::FutureType>”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/jit_type.h(64): note: 参见“std::shared_ptr”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/jittype.h(941): warning C4251: “c10::TupleType::elements”: class“std::vector<c10::TypePtr,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::TupleType”的客户端使用 with [ _Ty=c10::TypePtr ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/jit_type.h(162): note: 参见“std::vector<c10::TypePtr,std::allocator<_Ty>>”的声明 with [ _Ty=c10::TypePtr ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/jittype.h(943): warning C4251: “c10::TupleType::names”: class“c10::optional<std::vector<std::string,std::allocator<_Ty>>>”需要有 dll 接口由 struct“c10::TupleType”的客户端使用 with [ _Ty=std::string ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/jit_type.h(836): note: 参见“c10::optional<std::vector<std::string,std::allocator<_Ty>>>”的声明 with [ _Ty=std::string ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/jittype.h(1450): warning C4251: “c10::ClassType::qualifiedName”: class“std::basic_string<char,std::char_traits,std::allocator>”需要有 dll 接口由 struct“c10::ClassType”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\xstring(4373): note: 参 见“std::basic_string<char,std::char_traits,std::allocator>”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/jittype.h(1454): warning C4251: “c10::ClassType::qualifier”: class“std::basic_string<char,std::char_traits,std::allocator>”需要有 dll 接口由 struct“c10::ClassType”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\xstring(4373): note: 参 见“std::basic_string<char,std::char_traits,std::allocator>”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/jittype.h(1456): warning C4251: “c10::ClassType::basename”: class“std::basic_string<char,std::char_traits,std::allocator>”需要有 dll 接口由 struct“c10::ClassType”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\xstring(4373): note: 参 见“std::basic_string<char,std::char_traits,std::allocator>”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/jittype.h(1464): warning C4251: “c10::ClassType::attributeNames”: class“std::vector<std::string,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::ClassType”的客户 端使用 with [ _Ty=std::string ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/util/Exception.h(28): note: 参见“std::vector<std::string,std::allocator<_Ty>>”的声明 with [ _Ty=std::string ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/jittype.h(1465): warning C4251: “c10::ClassType::attributeTypes”: class“std::vector<c10::TypePtr,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::ClassType”的客户端使用 with [ _Ty=c10::TypePtr ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/jit_type.h(162): note: 参见“std::vector<c10::TypePtr,std::allocator<_Ty>>”的声明 with [ _Ty=c10::TypePtr ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/jit_type.h(1467): warning C4251: “c10::ClassType::compilationunit”: class“std::shared_ptr”需要有 dll 接口由 struct“c10::ClassType”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/jit_type.h(1316): note: 参见“std::sharedptr”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/scope.h(22): 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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/scope.h(17): note: 参见“c10::intrusive_ptr<torch::jit::Scope,c10::detail::intrusive_target_default_null_type>”的声明 with [ TTarget=torch::jit::Scope ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/constants.h(20): warning C4275: 非 dll 接口 class“std::runtime_error”用作 dll 接口 struct“torch::jit::constant_not_supported_error”的基 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\stdexcept(157): note: 参见“std::runtime_error”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/constants.h(20): note: 参见“torch::jit::constant_not_supportederror”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/attributes.h(87): warning C4275: 非 dll 接口 struct“torch::jit::AttributeValue”用作 dll 接口 struct“torch::jit::GraphAttr”的基 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/attributes.h(25): note: 参见“torch::jit::AttributeValue”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/attributes.h(87): note: 参见“torch::jit::GraphAttr”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/attributes.h(101): warning C4251: “torch::jit::GraphAttr::value”: class“std::shared_ptr”需要有 dll 接口由 struct“torch::jit::GraphAttr”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/attributes.h(88): note: 参见“std::sharedptr”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/attributes.h(104): warning C4275: 非 dll 接口 struct“torch::jit::AttributeValue”用作 dll 接口 struct“torch::jit::GraphsAttr”的基 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/attributes.h(25): note: 参见“torch::jit::AttributeValue”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/attributes.h(104): note: 参见“torch::jit::GraphsAttr”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/attributes.h(118): warning C4251: “torch::jit::GraphsAttr::value”: class“std::vector<std::shared_ptr,std::allocator<_Ty>>”需要有 dll 接口由 struct“torch::jit::GraphsAttr”的客户端使用 with [ _Ty=std::shared_ptr ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/attributes.h(105): note: 参见“std::vector<std::shared_ptr,std::allocator<_Ty>>”的声明 with [ _Ty=std::sharedptr ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/ir.h(246): warning C4251: “torch::jit::Node::inputs”: class“std::vector<torch::jit::Value ,std::allocator<_Ty>>”需要有 dll 接口由 struct“torch::jit::Node”的客 户端使用 with [ _Ty=torch::jit::Value ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/ir.h(141): note: 参见“std::vector<torch::jit::Value ,std::allocator<_Ty>>”的声明 with [ _Ty=torch::jit::Value ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/ir.h(247): warning C4251: “torch::jit::Node::outputs_”: class“std::vector<torch::jit::Value ,std::allocator<_Ty>>”需要有 dll 接口由 struct“torch::jit::Node”的客户端使用 with [ _Ty=torch::jit::Value ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/ir.h(141): note: 参见“std::vector<torch::jit::Value ,std::allocator<_Ty>>”的声明 with [ _Ty=torch::jit::Value ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/ir.h(249): warning C4251: “torch::jit::Node::blocks_”: class“std::vector<torch::jit::Block ,std::allocator<_Ty>>”需要有 dll 接口由 struct“torch::jit::Node”的客 户端使用 with [ _Ty=torch::jit::Block ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/ir.h(249): note: 参见“std::vector<torch::jit::Block ,std::allocator<_Ty>>”的声明 with [ _Ty=torch::jit::Block ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/ir.h(252): warning C4251: “torch::jit::Node::sourcelocation”: class“std::shared_ptr”需要有 dll 接口由 struct“torch::jit::Node”的客 户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/ir.h(252): note: 参见“std::sharedptr”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/ir.h(253): warning C4251: “torch::jit::Node::scope”: class“c10::intrusive_ptr<torch::jit::Scope,c10::detail::intrusive_target_default_null_type>”需要有 dll 接口由 struct“torch::jit::Node”的客户端使用 with [ TTarget=torch::jit::Scope ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/scope.h(17): note: 参见“c10::intrusive_ptr<torch::jit::Scope,c10::detail::intrusive_target_default_nulltype>”的声明 with [ TTarget=torch::jit::Scope ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/ir.h(756): warning C4251: “torch::jit::Node::values”: class“std::vector<torch::jit::Node::AVPtr,std::allocator<_Ty>>”需要有 dll 接口由 struct“torch::jit::Node” 的客户端使用 with [ _Ty=torch::jit::Node::AVPtr ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/ir.h(756): note: 参见“std::vector<torch::jit::Node::AVPtr,std::allocator<_Ty>>”的声明 with [ _Ty=torch::jit::Node::AVPtr ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/tracing_state.h(30): 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 ] C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\memory(2029): note: 参见“std::weak_ptr<_Ty>”的声明 with [ _Ty=torch::jit::tracer::TracingState ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/tracing_state.h(58): warning C4251: “torch::jit::tracer::TracingState::env_stack”: class“std::vector<torch::jit::tracer::TracingState::TracingEnvironmentFrame,std::allocator<_Ty>>”需要有 dll 接口由 struct“torch::jit::tracer::TracingState”的客户端使用 with [ _Ty=torch::jit::tracer::TracingState::TracingEnvironmentFrame ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/tracing_state.h(56): note: 参见“std::vector<torch::jit::tracer::TracingState::TracingEnvironmentFrame,std::allocator<_Ty>>”的声明 with [ _Ty=torch::jit::tracer::TracingState::TracingEnvironmentFrame ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/tracing_state.h(59): warning C4251: “torch::jit::tracer::TracingState::graph”: class“std::shared_ptr”需要有 dll 接口由 struct“torch::jit::tracer::TracingState”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/attributes.h(88): note: 参见“std::shared_ptr”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/tracing_state.h(63): 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”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/tracing_state.h(62): note: 参见“std::function<std::string (const torch::autograd::Variable &)>”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/tracing_state.h(159): warning C4251: “torch::jit::tracer::NoWarn::state”: class“std::shared_ptr<_Ty>”需要有 dll 接口由 struct“torch::jit::tracer::NoWarn”的客户端使用 with [ _Ty=torch::jit::tracer::TracingState ] C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\memory(2019): note: 参见“std::shared_ptr<_Ty>”的声明 with [ _Ty=torch::jit::tracer::TracingState ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/tracer.h(169): warning C4273: “torch::jit::tracer::addInputs”: dll 链接不一致 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/tracer.h(154): note: 参见“addInputs”的前一个 定义 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/tracer.h(176): warning C4273: “torch::jit::tracer::addInputs”: dll 链接不一致 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/tracer.h(160): note: 参见“addInputs”的前一个 定义 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/data/samplers/distributed.h(96): warning C4251: “torch::data::samplers::DistributedRandomSampler::allindices”: class“std::vector<T,std::allocator<_Ty>>”需要有 dll 接口由 class“torch::data::samplers::DistributedRandomSampler”的客户端使用 with [ T=size_t, _Ty=size_t ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/util/ArrayRef.h(219): note: 参见“std::vector<T,std::allocator<_Ty>>”的声明 with [ T=size_t, _Ty=size_t ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/data/samplers/distributed.h(129): warning C4251: “torch::data::samplers::DistributedSequentialSampler::allindices”: class“std::vector<T,std::allocator<_Ty>>”需要有 dll 接口由 class“torch::data::samplers::DistributedSequentialSampler”的客户端使用 with [ T=size_t, _Ty=size_t ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/util/ArrayRef.h(219): note: 参见“std::vector<T,std::allocator<_Ty>>”的声明 with [ T=size_t, _Ty=sizet ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/serialize/input-archive.h(89): warning C4251: “torch::serialize::InputArchive::module”: class“std::shared_ptr”需要有 dll 接口由 class“torch::serialize::InputArchive”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/tracer.h(96): note: 参见“std::sharedptr”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\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”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/tracer.h(96): note: 参见“std::shared_ptr”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/lexer.h(356): warning C4251: “torch::jit::script::SharedParserData::head”: class“std::unique_ptr<torch::jit::script::TokenTrie,std::default_delete<_Ty>>”需 要有 dll 接口由 struct“torch::jit::script::SharedParserData”的客户端使用 with [ _Ty=torch::jit::script::TokenTrie ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/lexer.h(126): note: 参见“std::unique_ptr<torch::jit::script::TokenTrie,std::default_delete<_Ty>>”的声明 with [ _Ty=torch::jit::script::TokenTrie ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/lexer.h(382): warning C4267: “参数”: 从“size_t”转换到“_Ty”,可能丢失数据 with [ _Ty=int32_t ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/lexer.h(458): warning C4267: “初始化”: 从“size_t”转换到“int”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/argumentspec.h(168): warning C4251: “torch::jit::ArgumentSpecCreator::instructions”: class“std::vector<torch::jit::ArgumentSpecCreator::Inst,std::allocator<_Ty>> ”需要有 dll 接口由 struct“torch::jit::ArgumentSpecCreator”的客户端使用 with [ _Ty=torch::jit::ArgumentSpecCreator::Inst ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/argument_spec.h(168): note: 参见“std::vector<torch::jit::ArgumentSpecCreator::Inst,std::allocator<_Ty>>”的声明 with [ _Ty=torch::jit::ArgumentSpecCreator::Inst ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/argument_spec.h(201): warning C4267: “初始化”: 从“size_t”转换到“int32_t”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/argument_spec.h(204): warning C4267: “初始化”: 从“size_t”转换到“int32_t”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/argument_spec.h(204): warning C4267: “初始化”: 从“size_t”转换到“const int32_t”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/argument_spec.h(209): warning C4244: “+=”: 从“int64_t”转换到“int32_t”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/argument_spec.h(229): warning C4244: “+=”: 从“int64_t”转换到“int32_t”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/argument_spec.h(391): warning C4267: “参数”: 从“size_t”转换到“const int”,可能丢失数据 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/interpreter.h(44): warning C4251: “torch::jit::Code::pImpl”: class“std::shared_ptr”需要有 dll 接口由 struct“torch::jit::Code”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/interpreter.h(44): note: 参见“std::shared_ptr”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/graph_executor.h(41): warning C4251: “torch::jit::GraphExecutor::pImpl”: class“std::shared_ptr”需要有 dll 接口由 struct“torch::jit::GraphExecutor”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/graph_executor.h(41): note: 参见“std::shared_ptr”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/compilationunit.h(160): warning C4251: “torch::jit::script::Function::name”: class“std::basic_string<char,std::char_traits,std::allocator>”需 要有 dll 接口由 struct“torch::jit::script::Function”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\xstring(4373): note: 参 见“std::basic_string<char,std::char_traits,std::allocator>”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/compilationunit.h(161): warning C4251: “torch::jit::script::Function::graph”: class“std::shared_ptr”需要有 dll 接口由 struct“torch::jit::script::Function”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/attributes.h(88): note: 参见“std::shared_ptr”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/compilation_unit.h(166): warning C4251: “torch::jit::script::Function::executorinit”: struct“std::once_flag”需要有 dll 接口由 struct“torch::jit::script::Function”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\xcall_once.h(18): note: 参见“std::once_flag”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/compilation_unit.h(171): warning C4251: “torch::jit::script::Function::functioncreator”: class“std::function<void (torch::jit::script::Function &)>”需要有 dll 接口由 struct“torch::jit::script::Function”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/compilation_unit.h(45): note: 参见“std::function<void (torch::jit::script::Function &)>”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/compilationunit.h(176): warning C4251: “torch::jit::script::Function::schema”: class“std::unique_ptr<c10::FunctionSchema,std::default_delete<_Ty>>”需要有 dll 接口由 struct“torch::jit::script::Function”的客户端使用 with [ _Ty=c10::FunctionSchema ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/compilation_unit.h(176): note: 参见“std::unique_ptr<c10::FunctionSchema,std::default_delete<_Ty>>”的声明 with [ _Ty=c10::FunctionSchema ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/compilationunit.h(266): warning C4251: “torch::jit::script::CompilationUnit::functions”: class“std::vector<std::shared_ptr,std::allocator<_Ty>>”需要有 dll 接口由 struct“torch::jit::script::CompilationUnit”的客户端使用 with [ _Ty=std::shared_ptr ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/compilation_unit.h(228): note: 参见“std::vector<std::shared_ptr,std::allocator<_Ty>>”的声明 with [ _Ty=std::shared_ptr ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/compilationunit.h(268): warning C4251: “torch::jit::script::CompilationUnit::dict”: class“std::unordered_map<std::string,size_t,std::hash,std::equal_to<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>”需要有 dll 接口由 struct“torch::jit::script::CompilationUnit”的客户端使用 with [ _Kty=std::string, _Ty=size_t ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/compilation_unit.h(268): note: 参见“std::unordered_map<std::string,size_t,std::hash,std::equal_to<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>”的声明 with [ _Kty=std::string, _Ty=sizet ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(123): warning C4251: “torch::jit::script::Method::function”: class“std::shared_ptr”需要有 dll 接口由 struct“torch::jit::script::Method”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/jit_type.h(1389): note: 参见“std::shared_ptr”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(127): warning C4251: “torch::jit::script::Method::initialivalues”: class“std::vector<torch::jit::script::Slot,std::allocator<_Ty>>”需要有 dll 接 口由 struct“torch::jit::script::Method”的客户端使用 with [ _Ty=torch::jit::script::Slot ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(87): note: 参见“std::vector<torch::jit::script::Slot,std::allocator<_Ty>>”的声明 with [ Ty=torch::jit::script::Slot ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(128): warning C4251: “torch::jit::script::Method::schema”: struct“c10::FunctionSchema”需要有 dll 接口由 struct“torch::jit::script::Method”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/functionschema.h(96): note: 参见“c10::FunctionSchema”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(543): warning C4251: “torch::jit::script::Module::modules”: class“std::vector<std::shared_ptr,std::allocator<_Ty>>”需 要有 dll 接口由 struct“torch::jit::script::Module”的客户端使用 with [ _Ty=std::shared_ptr ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(543): note: 参见“std::vector<std::shared_ptr,std::allocator<_Ty>>”的声明 with [ _Ty=std::sharedptr ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(544): warning C4251: “torch::jit::script::Module::parameters”: class“std::vector<torch::jit::script::Slot,std::allocator<_Ty>>”需要有 dll 接口由 struct“torch::jit::script::Module”的客户端使用 with [ _Ty=torch::jit::script::Slot ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(87): note: 参见“std::vector<torch::jit::script::Slot,std::allocator<_Ty>>”的声明 with [ Ty=torch::jit::script::Slot ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(545): warning C4251: “torch::jit::script::Module::attributes”: class“std::vector<torch::jit::script::Slot,std::allocator<_Ty>>”需要有 dll 接口由 struct“torch::jit::script::Module”的客户端使用 with [ _Ty=torch::jit::script::Slot ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(87): note: 参见“std::vector<torch::jit::script::Slot,std::allocator<_Ty>>”的声明 with [ Ty=torch::jit::script::Slot ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(546): warning C4251: “torch::jit::script::Module::methods”: class“std::vector<std::unique_ptr<torch::jit::script::Method,std::default_delete<_Ty>>,std::allocator<std::unique_ptr<_Ty,std::default_delete<_Ty>>>>”需要有 dll 接口由 struct“torch::jit::script::Module”的客户端使用 with [ _Ty=torch::jit::script::Method ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(276): note: 参见“std::vector<std::unique_ptr<torch::jit::script::Method,std::default_delete<_Ty>>,std::allocator<std::unique_ptr<_Ty,std::default_delete<_Ty>>>>”的声明 with [ Ty=torch::jit::script::Method ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(548): warning C4251: “torch::jit::script::Module::dict”: class“std::unordered_map<std::string,torch::jit::script::Module::Entry,std::hash,std::equal_to<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>”需要有 dll 接口由 struct“torch::jit::script::Module”的客户端使用 with [ _Kty=std::string, _Ty=torch::jit::script::Module::Entry ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(548): note: 参见“std::unordered_map<std::string,torch::jit::script::Module::Entry,std::hash,std::equal_to<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>”的声明 with [ _Kty=std::string, Ty=torch::jit::script::Module::Entry ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(549): warning C4251: “torch::jit::script::Module::name”: class“std::basic_string<char,std::char_traits,std::allocator>”需要有 dll 接口由 struct“torch::jit::script::Module”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\xstring(4373): note: 参 见“std::basic_string<char,std::char_traits,std::allocator>”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(551): warning C4251: “torch::jit::script::Module::modulevalue”: class“c10::intrusive_ptr<c10::ivalue::Object,c10::detail::intrusive_target_default_null_type>”需要有 dll 接口由 struct“torch::jit::script::Module”的客户端使用 with [ TTarget=c10::ivalue::Object ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(403): note: 参见“c10::intrusive_ptr<c10::ivalue::Object,c10::detail::intrusive_target_default_null_type>”的声明 with [ TTarget=c10::ivalue::Object ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(566): warning C4251: “torch::jit::script::Module::create_methodguard”: class“std::recursive_mutex”需要有 dll 接口由 struct“torch::jit::script::Module”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\mutex(95): note: 参见“std::recursive_mutex”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/sugared_value.h(25): warning C4251: “std::enable_shared_from_this::_Wptr”: class“std::weak_ptr<_Ty>”需要有 dll 接口由 class“std::enable_shared_from_this”的客户端使用 with [ _Ty=torch::jit::script::SugaredValue ] C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\memory(2029): note: 参见“std::weak_ptr<_Ty>”的声明 with [ _Ty=torch::jit::script::SugaredValue ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/sugared_value.h(156): warning C4251: “torch::jit::script::BuiltinFunction::self”: class“c10::optional”需要有 dll 接口由 struct“torch::jit::script::BuiltinFunction”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/compilation_unit.h(130): note: 参见“c10::optional”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/sugared_value.h(185): warning C4251: “torch::jit::script::BuiltinModule::name”: class“std::basic_string<char,std::char_traits,std::allocator>”需要有 dll 接口由 struct“torch::jit::script::BuiltinModule”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\xstring(4373): note: 参 见“std::basic_string<char,std::char_traits,std::allocator>”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/sugared_value.h(188): warning C4251: “torch::jit::script::BuiltinModule::version”: class“c10::optional”需要有 dll 接口由 struct“torch::jit::script::BuiltinModule”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/Type.h(160): note: 参见“c10::optional”的 声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/sugaredvalue.h(214): warning C4251: “torch::jit::script::ClassValue::type”: class“std::shared_ptr”需要有 dll 接口由 struct“torch::jit::script::ClassValue”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(687): note: 参见“std::shared_ptr”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/sugaredvalue.h(282): warning C4251: “torch::jit::script::CastValue::type”: class“std::shared_ptr”需要有 dll 接口由 struct“torch::jit::script::CastValue”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/jit_type.h(64): note: 参见“std::shared_ptr”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/script/sugaredvalue.h(338): warning C4251: “torch::jit::script::ClassNewMethod::type”: class“std::shared_ptr”需要有 dll 接口由 struct“torch::jit::script::ClassNewMethod”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/ivalue.h(687): note: 参见“std::shared_ptr”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/module.h(62): 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 ] C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\memory(2029): note: 参见“std::weak_ptr<_Ty>”的声明 with [ Ty=torch::nn::Module ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/module.h(514): warning C4251: “torch::nn::Module::parameters”: class“torch::OrderedDict<std::string,at::Tensor>”需要有 dll 接口由 class“torch::nn::Module”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/module.h(210): note: 参见“torch::OrderedDict<std::string,at::Tensor>”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/module.h(517): warning C4251: “torch::nn::Module::buffers”: class“torch::OrderedDict<std::string,at::Tensor>”需要有 dll 接口由 class“torch::nn::Module”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/module.h(210): note: 参见“torch::OrderedDict<std::string,at::Tensor>”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/module.h(520): 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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/module.h(246): note: 参见“torch::OrderedDict<std::string,std::shared_ptr<_Ty>>”的声明 with [ Ty=torch::nn::Module ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/module.h(523): warning C4251: “torch::nn::Module::name”: class“c10::optional”需要有 dll 接口由 class“torch::nn::Module”的客户端使 用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/jit/namedvalue.h(71): note: 参见“c10::optional”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/conv.h(111): warning C4251: “torch::nn::ConvImpl<1,torch::nn::Conv1dImpl>::options”: struct“torch::nn::ConvOptions<1>”需要有 dll 接口由 class“torch::nn::ConvImpl<1,torch::nn::Conv1dImpl>”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/conv.h(89): note: 参见“torch::nn::ConvOptions<1>”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/conv.h(131): warning C4251: “torch::nn::ConvImpl<2,torch::nn::Conv2dImpl>::options”: struct“torch::nn::ConvOptions<2>”需要有 dll 接口由 class“torch::nn::ConvImpl<2,torch::nn::Conv2dImpl>”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/conv.h(89): note: 参见“torch::nn::ConvOptions<2>”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/conv.h(151): warning C4251: “torch::nn::ConvImpl<3,torch::nn::Conv3dImpl>::options”: struct“torch::nn::ConvOptions<3>”需要有 dll 接口由 class“torch::nn::ConvImpl<3,torch::nn::Conv3dImpl>”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/conv.h(89): note: 参见“torch::nn::ConvOptions<3>”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/functional.h(94): warning C4251: “torch::nn::FunctionalImpl::function”: class“std::function<at::Tensor (at::Tensor)>”需要有 dll 接口由 class“torch::nn::FunctionalImpl”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/data/transforms/tensor.h(39): note: 参见“std::function<at::Tensor (at::Tensor)>”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(177): 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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/Type.h(178): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(177): 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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/Type.h(178): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(177): 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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/Type.h(178): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(177): 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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/Type.h(178): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(177): warning C4251: “torch::nn::detail::RNNImplBase::cudnnmode”: class“c10::optional<torch::nn::detail::RNNImplBase::CuDNNMode>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(64): note: 参见 “c10::optional<torch::nn::detail::RNNImplBase::CuDNNMode>”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(177): 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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/Type.h(178): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(208): 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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/Type.h(178): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(208): 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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/Type.h(178): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(208): 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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/Type.h(178): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(208): 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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/Type.h(178): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(208): warning C4251: “torch::nn::detail::RNNImplBase::cudnnmode”: class“c10::optional<torch::nn::detail::RNNImplBase::CuDNNMode>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase” 的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(64): note: 参见 “c10::optional<torch::nn::detail::RNNImplBase::CuDNNMode>”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(208): 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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/Type.h(178): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(234): 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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/Type.h(178): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(234): 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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/Type.h(178): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(234): 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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/Type.h(178): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(234): 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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/Type.h(178): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(234): warning C4251: “torch::nn::detail::RNNImplBase::cudnnmode”: class“c10::optional<torch::nn::detail::RNNImplBase::CuDNNMode>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase”的客户端使用 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(64): note: 参见 “c10::optional<torch::nn::detail::RNNImplBase::CuDNNMode>”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(234): 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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/Type.h(178): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ Ty=at::Tensor ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/Type.h(178): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/adagrad.h(28): warning C4275: 非 dll 接口 class“torch::optim::Optimizer”用作 dll 接口 class“torch::optim::Adagrad”的基 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/optimizer.h(100): note: 参 见“torch::optim::Optimizer”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/adagrad.h(28): note: 参见“torch::optim::Adagrad”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/Type.h(178): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/util/typeid.h(597): note: 参见“std::vector<int64_t,std::allocator<_Ty>>”的声明 with [ _Ty=int64_t ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/adam.h(31): warning C4275: 非 dll 接口 class“torch::optim::Optimizer”用作 dll 接口 class“torch::optim::Adam”的基 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/optimizer.h(100): note: 参 见“torch::optim::Optimizer”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/adam.h(31): note: 参见“torch::optim::Adam”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\c10/util/typeid.h(597): note: 参见“std::vector<int64_t,std::allocator<_Ty>>”的声明 with [ _Ty=int64_t ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/Type.h(178): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/Type.h(178): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/Type.h(178): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/lbfgs.h(22): warning C4305: “初始化”: 从“double”到“float”截断 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/lbfgs.h(23): warning C4305: “初始化”: 从“double”到“float”截断 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/lbfgs.h(27): warning C4275: 非 dll 接口 class“torch::optim::LossClosureOptimizer”用作 dll 接口 class“torch::optim::LBFGS”的基 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/optimizer.h(110): note: 参 见“torch::optim::LossClosureOptimizer”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/lbfgs.h(27): note: 参见“torch::optim::LBFGS”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/Type.h(178): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/Type.h(178): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/lbfgs.h(50): note: 参见“std::deque<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/lbfgs.h(50): note: 参见“std::deque<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/rmsprop.h(34): warning C4275: 非 dll 接口 class“torch::optim::Optimizer”用作 dll 接口 class“torch::optim::RMSprop”的基 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/optimizer.h(100): note: 参 见“torch::optim::Optimizer”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/rmsprop.h(34): note: 参见“torch::optim::RMSprop”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/Type.h(178): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/Type.h(178): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/Type.h(178): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/sgd.h(31): warning C4275: 非 dll 接口 class“torch::optim::Optimizer”用作 dll 接口 class“torch::optim::SGD”的基 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/optimizer.h(100): note: 参 见“torch::optim::Optimizer”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/sgd.h(31): note: 参见“torch::optim::SGD”的声明 F:\Anaconda3\envs\pytorch\lib\site-packages\torch\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 ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/Type.h(178): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] F:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/torch.h(7): fatal error C1021: 无效的预处理器命令“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

windows python 3.6 pytorch 1.0.0 cuda9.0

RenYurui commented 4 years ago

This code is originally tested with Tesla V100, CUDA10, ubuntu. I guess this error has something to do with the windows environment rather than the code. You can first follow the notification here if you use a different GPU. If it does not work you may need to check your windows environment. Please update this issue if anyone can find a solution.

ak9250 commented 4 years ago

@RenYurui I would suggest a google colab notebook to run the demos to avoid issues like these as colab runs in the browser with a p100 gpu for free for 12 hours sessions

zwbzwj123 commented 4 years ago

@RenYurui @ak9250 I just use google colab notebook test the model on fashion dataset, but I got poor performance. fashionMENJacketsVestsid0000065304_1front_2_fashionMENJacketsVestsid0000065304_4full_vis fashionMENJacketsVestsid0000065304_3back_2_fashionMENJacketsVestsid0000065304_2side_vis fashionMENJacketsVestsid0000065304_4full_2_fashionMENJacketsVestsid0000065304_1front_vis

zwbzwj123 commented 4 years ago

Sorry! I used the wrong test dataset and annotation file. fashionWOMENBlouses_Shirtsid0000365801_2side_2_fashionWOMENBlouses_Shirtsid0000365801_4full_vis fashionWOMENBlouses_Shirtsid0000427404_3back_2_fashionWOMENBlouses_Shirtsid0000427404_2side_vis fashionMENSweatshirts_Hoodiesid0000385303_1front_2_fashionMENSweatshirts_Hoodiesid0000385303_7additional_vis

ak9250 commented 4 years ago

@zwbzwj123 can you share your colab?

zwbzwj123 commented 4 years ago

@ak9250 https://colab.research.google.com/drive/1EuB3-t4DVIkg0AIQgwzGmWUgCk9dPmwS

Yomiko11 commented 4 months ago

How did you solve the cuda extension problem?