lilanxiao / Rotated_IoU

Differentiable IoU of rotated bounding boxes using Pytorch
MIT License
412 stars 62 forks source link

sort_vert.cpp(23): error C2062: 意外的类型“float” #5

Closed Shank2358 closed 3 years ago

Shank2358 commented 3 years ago

sort_vert.cpp第23行

sort_vertices_wrapper(b, n, m, vertices.data_ptr<float>(), mask.data_ptr<bool>(),
                     num_valid.data_ptr<int>(), idx.data_ptr<int>());

出现了错误: sort_vert.cpp(23): error C2062: 意外的类型“float”

lilanxiao commented 3 years ago

@Shank2358 你好,能把完整的错误信息粘贴过来吗?

Shank2358 commented 3 years ago

@Shank2358 你好,能把完整的错误信息粘贴过来吗? 你好,这是python install 之后输出的完整信息(有点长),我找了一遍没找到编译过程具体在哪里出错,貌似只有最后那个数据类型错误。 python setup.py install running install running bdist_egg running egg_info writing sort_vertices.egg-info\PKG-INFO writing dependency_links to sort_vertices.egg-info\dependency_links.txt writing top-level names to sort_vertices.egg-info\top_level.txt reading manifest file 'sort_vertices.egg-info\SOURCES.txt' writing manifest file 'sort_vertices.egg-info\SOURCES.txt' installing library code to build\bdist.win-amd64\egg running install_lib running build_ext C:\Anaconda3\envs\torchori\lib\site-packages\torch\utils\cpp_extension.py:189: 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 'sort_vertices' extension C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -IC:\Anaconda3\envs\torchori\lib\site-packages\torch\include -IC:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Anaconda3\envs\torchori\lib\site-packages\torch\include\TH -IC:\Anaconda3\envs\torchori\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\include" -IC:\Anaconda3\envs\torchori\include -IC:\Anaconda3\envs\torchori\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\winrt" /EHsc /Tpsort_vert.cpp /Fobuild\temp.win-amd64-3.7\Release\sort_vert.obj /MD /wd4819 /EHsc -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=sort_vertices -D_GLIBCXX_USE_CXX11_ABI=0 cl: 命令行 warning D9025 :正在重写“/MT”(用“/MD”) sort_vert.cpp C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/util/Exception.h(28): warning C4275: 非 dll 接口 class“std::exception”用作 dll 接口 class“c10::Error”的基 C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\include\vcruntime_exception.h(43): note: 参见“std::exception”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/util/Exception.h(28): note: 参见“c10::Error”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/util/Exception.h(29): warning C4251: “c10::Error::msgstack”: class“std::vector<std::string,std::allocator<_Ty>>”需要有 dll 接口由 class“c10::Error”的客户端使用 with [ _Ty=std::string ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/util/Exception.h(29): note: 参见“std::vector<std::string,std::allocator<_Ty>>”的声明 with [ Ty=std::string ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/util/Exception.h(30): 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\Enterprise\VC\Tools\MSVC\14.10.25017\include\xstring(3997): note: 参见“std::basic_string<char,std::chartraits,std::allocator>”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/util/Exception.h(35): 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\Enterprise\VC\Tools\MSVC\14.10.25017\include\xstring(3997): note: 参见“std::basic_string<char,std::char_traits,std::allocator>”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/util/Exception.h(36): 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\Enterprise\VC\Tools\MSVC\14.10.25017\include\xstring(3997): note: 参见“std::basic_string<char,std::char_traits,std::allocator>”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/core/TensorTypeIdRegistration.h(33): warning C4251: “c10::TensorTypeIdCreator::lastid”: struct“std::atomic”需要有 dll 接口由 class“c10::TensorTypeIdCreator”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\include\xxatomic(180): note: 参见“std::atomic”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/core/TensorTypeIdRegistration.h(49): warning C4251: “c10::TensorTypeIdRegistry::registeredTypeIds_”: class“ska::flat_hash_map<c10::TensorTypeId,c10::TensorTypeIdRegistry::TypeIdName,std::hash,std::equal_to,std::allocator<std::pair<K,V>>>”需要有 dll 接口由 class“c10::TensorTypeIdRegistry”的客户端使用 with [ K=c10::TensorTypeId, V=c10::TensorTypeIdRegistry::TypeIdName ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/core/TensorTypeIdRegistration.h(49): note: 参见“ska::flat_hash_map<c10::TensorTypeId,c10::TensorTypeIdRegistry::TypeIdName,std::hash,std::equalto,std::allocator<std::pair<K,V>>>”的声明 with [ K=c10::TensorTypeId, V=c10::TensorTypeIdRegistry::TypeIdName ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/core/TensorTypeIdRegistration.h(50): warning C4251: “c10::TensorTypeIdRegistry::mutex”: class“std::mutex”需要 有 dll 接口由 class“c10::TensorTypeIdRegistry”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\include\mutex(79): note: 参见“std::mutex”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/util/Half-inl.h(168): warning C4244: “参数”: 从“int”转换到“float”,可能丢失数据 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/util/Half-inl.h(171): warning C4244: “参数”: 从“int”转换到“float”,可能丢失数据 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/util/Half-inl.h(174): warning C4244: “参数”: 从“int”转换到“float”,可能丢失数据 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/util/Half-inl.h(177): warning C4244: “参数”: 从“int”转换到“float”,可能丢失数据 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/util/Half-inl.h(181): warning C4244: “参数”: 从“int”转换到“float”,可能丢失数据 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/util/Half-inl.h(184): warning C4244: “参数”: 从“int”转换到“float”,可能丢失数据 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/util/Half-inl.h(187): warning C4244: “参数”: 从“int”转换到“float”,可能丢失数据 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/util/Half-inl.h(190): warning C4244: “参数”: 从“int”转换到“float”,可能丢失数据 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/util/Half-inl.h(196): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/util/Half-inl.h(199): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/util/Half-inl.h(202): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/util/Half-inl.h(205): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/util/Half-inl.h(209): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/util/Half-inl.h(212): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/util/Half-inl.h(215): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/util/Half-inl.h(218): warning C4244: “参数”: 从“int64t”转换到“float”,可能丢失数据 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/core/Allocator.h(21): warning C4251: “c10::DataPtr::ptr”: class“c10::detail::UniqueVoidPtr”需要有 dll 接口由 class“c10::DataPtr”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/util/UniqueVoidPtr.h(38): note: 参见“c10::detail::UniqueVoidPtr”的声明 C:\Anaconda3\envs\torchori\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”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/core/Allocator.h(183): note: 参见“std::unique_ptr<void,std::function<void (void )>>”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/util/intrusive_ptr.h(63): warning C4251: “c10::intrusive_ptrtarget::refcount”: struct“std::atomic”需要有 dll 接口由 class“c10::intrusive_ptr_target”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\include\xxatomic(180): note: 参见“std::atomic”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/util/intrusive_ptr.h(64): warning C4251: “c10::intrusive_ptrtarget::weakcount”: struct“std::atomic”需要有 dll 接口由 class“c10::intrusive_ptr_target”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\include\xxatomic(180): note: 参见“std::atomic”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/util/intrusive_ptr.h(721): warning C4267: “return”: 从“size_t”转换到“uint32_t”,可能丢失数据 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/util/intrusive_ptr.h(752): warning C4267: “return”: 从“size_t”转换到“uint32_t”,可能丢失数据 C:\Anaconda3\envs\torchori\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 ] C:\Anaconda3\envs\torchori\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 ] C:\Anaconda3\envs\torchori\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\Enterprise\VC\Tools\MSVC\14.10.25017\include\iosfwd(633): note: 参见“std::basic_stringstream<char,std::char_traits,std::allocator>”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/core/TensorImpl.h(195): warning C4251: “c10::VariableVersion::versioncounter”: class“c10::intrusive_ptr<c10::VariableVersion::VersionCounter,c10::detail::intrusive_target_default_null_type>”需要有 dll 接口由 struct“c10::VariableVersion”的客户端使用 with [ TTarget=c10::VariableVersion::VersionCounter ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/core/TensorImpl.h(195): note: 参见“c10::intrusive_ptr<c10::VariableVersion::VersionCounter,c10::detail::intrusive_target_default_null_type>”的声明 with [ TTarget=c10::VariableVersion::VersionCounter ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/core/TensorImpl.h(1546): warning C4251: “c10::TensorImpl::autogradmeta”: class“std::unique_ptr<c10::AutogradMetaInterface,std::default_delete<_Ty>>”需要有 dll 接口由 struct“c10::TensorImpl”的客户端使用 with [ _Ty=c10::AutogradMetaInterface ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/core/TensorImpl.h(845): note: 参见“std::unique_ptr<c10::AutogradMetaInterface,std::default_delete<_Ty>>”的声明 with [ Ty=c10::AutogradMetaInterface ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/core/TensorImpl.h(1572): warning C4251: “c10::TensorImpl::sizes”: class“c10::SmallVector<int64_t,5>”需要有 dll 接口由 struct“c10::TensorImpl”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/core/TensorImpl.h(1572): note: 参见“c10::SmallVector<int64t,5>”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/core/TensorImpl.h(1573): warning C4251: “c10::TensorImpl::strides”: class“c10::SmallVector<int64_t,5>”需要有 dll 接口由 struct“c10::TensorImpl”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/core/TensorImpl.h(1572): note: 参见“c10::SmallVector<int64_t,5>”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/core/TensorImpl.h(1598): warning C4251: “c10::TensorImpl::deviceopt”: class“c10::optional”需要有 dll 接口由 struct“c10::TensorImpl”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/core/TensorOptions.h(171): note: 参见“c10::optional”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/core/TensorImpl.h(1045): warning C4244: “参数”: 从“float”转换到“const uint64_t”,可能丢失数据 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/core/TensorImpl.h(1391): warning C4244: “初始化”: 从“int64_t”转换到“int”,可能丢失数据 C:\Anaconda3\envs\torchori\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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/DeprecatedTypePropertiesRegistry.h(24): note: 参见“std::unique_ptr<at::DeprecatedTypeProperties,std::default_delete<_Ty>>”的声明 with [ Ty=at::DeprecatedTypeProperties ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Tensor.h(800): warning C4251: “at::Tensor::impl”: class“c10::intrusive_ptr<c10::TensorImpl,c10::UndefinedTensorImpl>”需要有 dll 接口由 class“at::Tensor”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Tensor.h(69): note: 参见“c10::intrusiveptr<c10::TensorImpl,c10::UndefinedTensorImpl>”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Tensor.h(801): warning C4522: “at::Tensor”: 指定了多个赋值运算符 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Generator.h(75): warning C4251: “at::Generator::mutex”: class“std::mutex”需要有 dll 接口由 struct“at::Generator”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\include\mutex(79): note: 参见“std::mutex”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/ATenDispatch.h(68): warning C4251: “at::ATenOpTable::schema_”: class“std::basic_string<char,std::char_traits,std::allocator>”需要有 dll 接口由 class“at::ATenOpTable”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\include\xstring(3997): note: 参见“std::basic_string<char,std::char_traits,std::allocator>”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/ATenDispatch.h(103): warning C4251: “at::ATenDispatch::optables”: class“std::unordered_map<std::string,at::ATenOpTable,std::hash<_Kty>,std::equal_to<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>”需要有 dll 接口由 class“at::ATenDispatch”的客户端使用 with [ _Kty=std::string, _Ty=at::ATenOpTable ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/ATenDispatch.h(103): note: 参见“std::unordered_map<std::string,at::ATenOpTable,std::hash<_Kty>,std::equal_to<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>”的声明 with [ _Kty=std::string, Ty=at::ATenOpTable ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/ATenDispatch.h(104): warning C4251: “at::ATenDispatch::mutex”: class“std::mutex”需要有 dll 接口由 class “at::ATenDispatch”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\include\mutex(79): note: 参见“std::mutex”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/CPUGenerator.h(32): warning C4251: “at::CPUGenerator::engine_”: class“at::mt19937_engine”需要有 dll 接口由 struct“at::CPUGenerator”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/MT19937RNGEngine.h(106): note: 参见“at::mt19937_engine”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/CPUGenerator.h(33): warning C4251: “at::CPUGenerator::next_float_normalsample”: class“c10::optional” 需要有 dll 接口由 struct“at::CPUGenerator”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/CPUGenerator.h(23): note: 参见“c10::optional”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/CPUGenerator.h(34): warning C4251: “at::CPUGenerator::next_double_normalsample”: class“c10::optional ”需要有 dll 接口由 struct“at::CPUGenerator”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/CPUGenerator.h(24): note: 参见“c10::optional”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/core/Stream.h(126): warning C4244: “参数”: 从“unsigned int64”转换到“c10::DeviceIndex”,可能丢失数据 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/core/Stream.h(126): warning C4244: “参数”: 从“unsigned int64”转换到“c10::StreamId”,可能丢失数据 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/Context.h(114): warning C4251: “at::Context::thc_init”: struct“std::once_flag”需要有 dll 接口由 class“at::Context”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\include\mutex(453): note: 参见“std::once_flag”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/Context.h(115): warning C4251: “at::Context::thh_init”: struct“std::once_flag”需要有 dll 接口由 class“at::Context”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\include\mutex(453): note: 参见“std::once_flag”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/Context.h(119): warning C4251: “at::Context::thc_state”: class“std::unique_ptr<THCState,void (cdecl )(THCState )>”需要有 dll 接口由 class“at::Context”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/detail/CUDAHooksInterface.h(62): note: 参见“std::unique_ptr<THCState,void (cdecl )(THCState )>”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/Context.h(120): warning C4251: “at::Context::thh_state”: class“std::unique_ptr<THHState,void (cdecl )(THHState )>”需要有 dll 接口由 class“at::Context”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/detail/HIPHooksInterface.h(33): note: 参见“std::unique_ptr<THHState,void (cdecl )(THHState )>”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/cuda/CUDAStream.h(171): warning C4251: “c10::cuda::CUDAStream::stream”: class“c10::Stream”需要有 dll 接口由 class“c10::cuda::CUDAStream”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/core/Stream.h(57): note: 参见“c10::Stream”的声明 C:\Anaconda3\envs\torchori\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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/core/MemoryFormat.h(44): note: 参见“std::vector<int64_t,std::allocator<_Ty>>”的声明 with [ _Ty=int64t ] C:\Anaconda3\envs\torchori\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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/core/MemoryFormat.h(44): note: 参见“std::vector<int64_t,std::allocator<_Ty>>”的声明 with [ _Ty=int64_t ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/autograd/variable.h(334): 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\Enterprise\VC\Tools\MSVC\14.10.25017\include\xstring(3997): note: 参见“std::basic_string<char,std::char_traits,std::allocator>”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/autograd/variable.h(337): warning C4251: “torch::autograd::Variable::AutogradMeta::gradfn”: class“std::shared_ptr”需要有 dll 接口由 struct“torch::autograd::Variable::AutogradMeta”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/autograd/edge.h(17): note: 参见“std::shared_ptr”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/autograd/variable.h(338): warning C4251: “torch::autograd::Variable::AutogradMeta::gradaccumulator”: class“std::weak_ptr<_Ty>”需要有 dll 接口由 struct“torch::autograd::Variable::AutogradMeta”的客户端使用 with [ _Ty=torch::autograd::Node ] C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\include\memory(942): note: 参见“std::weak_ptr<_Ty>”的声明 with [ Ty=torch::autograd::Node ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/autograd/variable.h(340): 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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/autograd/variable.h(291): note: 参见“std::vector<std::shared_ptr,std::allocator<_Ty>>”的声明 with [ _Ty=std::sharedptr ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/autograd/variable.h(356): warning C4251: “torch::autograd::Variable::AutogradMeta::mutex”: class“std::mutex”需要有 dll 接口由 struct“torch::autograd::Variable::AutogradMeta”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\include\mutex(79): note: 参见“std::mutex”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/jit_type.h(69): 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\Enterprise\VC\Tools\MSVC\14.10.25017\include\memory(942): note: 参见“std::weak_ptr<_Ty>”的声明 with [ _Ty=c10::Type ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/jit_type.h(240): warning C4251: “c10::SingleElementType<c10::TypeKind::OptionalType,c10::OptionalType>::elem”: class“std::shared_ptr”需要有 dll 接口由 struct“c10::SingleElementType<c10::TypeKind::OptionalType,c10::OptionalType>”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Dict.h(14): note: 参见“std::shared_ptr”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/jittype.h(493): warning C4251: “c10::VaryingShape::size”: class“c10::optional<::size_t>”需要有 dll 接口由 struct“c10::VaryingShape”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/jit_type.h(444): note: 参见“c10::optional<::size_t>”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/jittype.h(494): warning C4251: “c10::VaryingShape::dims”: class“std::vector<c10::optional,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::VaryingShape”的客户端使用 with [ _Ty=c10::optional ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/jit_type.h(494): note: 参见“std::vector<c10::optional,std::allocator<_Ty>>”的声明 with [ _Ty=c10::optional ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/jit_type.h(623): warning C4251: “c10::ProfiledTensorType::scalartype”: class“c10::optional”需要有 dll 接口由 struct“c10::ProfiledTensorType”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/core/ScalarType.h(133): note: 参见“c10::optional”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/jittype.h(624): warning C4251: “c10::ProfiledTensorType::device”: class“c10::optional”需要有 dll 接口由 struct“c10::ProfiledTensorType”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/core/TensorOptions.h(171): note: 参见“c10::optional”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/jit_type.h(627): warning C4251: “c10::ProfiledTensorType::requiresgrad”: class“c10::optional”需要有 dll 接口由 struct“c10::ProfiledTensorType”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/core/TensorOptions.h(224): note: 参见“c10::optional”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/jit_type.h(585): warning C4267: “参数”: 从“size_t”转换到“int”,可能丢失数据 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/jit_type.h(589): warning C4267: “参数”: 从“size_t”转换到“int”,可能丢失数据 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/jittype.h(734): warning C4251: “c10::CompleteTensorType::sizes”: class“std::vector<int64_t,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::CompleteTensorType”的客户端使用 with [ _Ty=int64_t ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/core/MemoryFormat.h(44): note: 参见“std::vector<int64_t,std::allocator<_Ty>>”的声明 with [ _Ty=int64_t ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/jittype.h(735): warning C4251: “c10::CompleteTensorType::strides”: class“std::vector<int64_t,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::CompleteTensorType”的客户端使用 with [ _Ty=int64_t ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/core/MemoryFormat.h(44): note: 参见“std::vector<int64_t,std::allocator<_Ty>>”的声明 with [ _Ty=int64_t ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/jit_type.h(740): warning C4251: “c10::SingleElementType<c10::TypeKind::ListType,c10::ListType>::elem”: class“std::shared_ptr”需要有 dll 接口由 struct“c10::SingleElementType<c10::TypeKind::ListType,c10::ListType>”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Dict.h(14): note: 参见“std::shared_ptr”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/jit_type.h(847): warning C4251: “c10::DictType::types”: class“std::vector<c10::TypePtr,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::DictType”的客户端使用 with [ _Ty=c10::TypePtr ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/jit_type.h(172): note: 参见“std::vector<c10::TypePtr,std::allocator<_Ty>>”的声明 with [ _Ty=c10::TypePtr ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/jit_type.h(854): warning C4251: “c10::SingleElementType<c10::TypeKind::FutureType,c10::FutureType>::elem”: class“std::shared_ptr”需要有 dll 接口由 struct“c10::SingleElementType<c10::TypeKind::FutureType,c10::FutureType>”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Dict.h(14): note: 参见“std::shared_ptr”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/jittype.h(901): warning C4251: “c10::NamedType::name”: class“c10::optional”需要有 dll 接口由 struct“c10::NamedType”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/jit_type.h(885): note: 参见“c10::optional”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/jittype.h(966): warning C4251: “c10::TupleType::elements”: class“std::vector<c10::TypePtr,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::TupleType”的客户端使用 with [ _Ty=c10::TypePtr ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/jit_type.h(172): note: 参见“std::vector<c10::TypePtr,std::allocator<_Ty>>”的声明 with [ _Ty=c10::TypePtr ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/jittype.h(968): warning C4251: “c10::TupleType::schema”: class“std::shared_ptr”需 要有 dll 接口由 struct“c10::TupleType”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/jit_type.h(909): note: 参见“std::shared_ptr”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/jittype.h(1524): warning C4251: “c10::ClassType::attributeNames”: class“std::vector<std::string,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::ClassType”的客户端使用 with [ _Ty=std::string ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/util/Exception.h(29): note: 参见“std::vector<std::string,std::allocator<_Ty>>”的声明 with [ _Ty=std::string ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/jittype.h(1525): warning C4251: “c10::ClassType::attributeTypes”: class“std::vector<c10::TypePtr,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::ClassType”的客户端使用 with [ _Ty=c10::TypePtr ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/jit_type.h(172): note: 参见“std::vector<c10::TypePtr,std::allocator<_Ty>>”的声明 with [ _Ty=c10::TypePtr ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/jit_type.h(1527): warning C4251: “c10::ClassType::compilationunit”: class“std::weak_ptr<_Ty>”需要有 dll 接口由 struct“c10::ClassType”的客户端使用 with [ _Ty=torch::jit::script::CompilationUnit ] C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\include\memory(942): note: 参见“std::weak_ptr<_Ty>”的声明 with [ _Ty=torch::jit::script::CompilationUnit ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/jittype.h(1532): warning C4251: “c10::ClassType::parameterSlots”: class“std::shared_ptr<std::vector<bool,std::allocator<_Ty>>>”需要有 dll 接口由 struct“c10::ClassType”的客户端使用 with [ _Ty=bool ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/jit_type.h(1532): note: 参见“std::shared_ptr<std::vector<bool,std::allocator<_Ty>>>”的声明 with [ _Ty=bool ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/jittype.h(1535): warning C4251: “c10::ClassType::methods”: class“std::vector<torch::jit::Function ,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::ClassType”的客户端使用 with [ _Ty=torch::jit::Function ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/jit_type.h(1443): note: 参见“std::vector<torch::jit::Function ,std::allocator<_Ty>>”的声明 with [ _Ty=torch::jit::Function ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Dict_inl.h(50): warning C4244: “参数”: 从“int64_t”转换到“const int”,可能丢失数据 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/ivalueinl.h(90): 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\Enterprise\VC\Tools\MSVC\14.10.25017\include\xstring(3997): note: 参见“std::basic_string<char,std::char_traits,std::allocator>”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/ivalueinl.h(110): warning C4251: “c10::ivalue::Tuple::elements”: class“std::vector<StorageT,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::ivalue::Tuple”的客户端使用 with [ StorageT=c10::IValue, _Ty=c10::IValue ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/List.h(24): note: 参见“std::vector<StorageT,std::allocator<_Ty>>”的声明 with [ StorageT=c10::IValue, _Ty=c10::IValue ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/ivalue_inl.h(140): warning C4251: “c10::ivalue::Tuple::type”: class“std::shared_ptr”需要 有 dll 接口由 struct“c10::ivalue::Tuple”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/jit_type.h(905): note: 参见“std::shared_ptr”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/ivalue_inl.h(163): warning C4275: 非 dll 接口 class“std::exception”用作 dll 接口 struct“c10::ivalue::Future::FutureError”的基 C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\include\vcruntime_exception.h(43): note: 参见“std::exception”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/ivalue_inl.h(163): note: 参见“c10::ivalue::Future::FutureError”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/ivalue_inl.h(173): 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\Enterprise\VC\Tools\MSVC\14.10.25017\include\xstring(3997): note: 参见“std::basic_string<char,std::char_traits,std::allocator>”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/ivalueinl.h(260): warning C4251: “c10::ivalue::Future::mutex”: class“std::mutex”需要有 dll 接口由 struct“c10::ivalue::Future”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\include\mutex(79): note: 参见“std::mutex”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/ivalueinl.h(261): warning C4251: “c10::ivalue::Future::completed”: struct“std::atomic”需要有 dll 接口由 struct“c10::ivalue::Future”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\include\xxatomic(180): note: 参见“std::atomic”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/ivalue_inl.h(262): warning C4251: “c10::ivalue::Future::finishedcv”: class“std::condition_variable”需要有 dll 接口由 struct“c10::ivalue::Future”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\include\mutex(537): note: 参见“std::condition_variable”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/ivalue_inl.h(265): 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)> ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/ivalue_inl.h(265): note: 参见“std::vector<std::function<void (void)>,std::allocator<_Ty>>”的声明 with [ _Ty=std::function<void (void)> ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/ivalueinl.h(333): warning C4251: “c10::ivalue::Object::type”: struct“c10::StrongTypePtr”需要有 dll 接口由 struct“c10::ivalue::Object”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/ivalue.h(556): note: 参见“c10::StrongTypePtr”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/ivalueinl.h(334): warning C4251: “c10::ivalue::Object::slots”: class“std::vector<StorageT,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::ivalue::Object”的客户端使用 with [ StorageT=c10::IValue, _Ty=c10::IValue ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/List.h(24): note: 参见“std::vector<StorageT,std::allocator<_Ty>>”的声明 with [ StorageT=c10::IValue, _Ty=c10::IValue ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/ivalue_inl.h(373): warning C4244: “return”: 从“double”转换到“float”,可能丢失数据 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/ivalue_inl.h(375): warning C4244: “return”: 从“int64_t”转换到“unsigned char”,可能丢失数据 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/ivalue_inl.h(376): warning C4244: “return”: 从“int64_t”转换到“signed char”,可能丢失数据 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/ivalue_inl.h(377): warning C4244: “return”: 从“int64_t”转换到“unsigned short”,可能丢失数据 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/ivalue_inl.h(378): warning C4244: “return”: 从“int64_t”转换到“short”,可能丢失数据 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/ivalue_inl.h(379): warning C4244: “return”: 从“int64_t”转换到“int”,可能丢失数据 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/ivalue_inl.h(380): warning C4244: “return”: 从“int64_t”转换到“uint32_t”,可能丢失数据 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/ivalue_inl.h(382): warning C4244: “return”: 从“int64_t”转换到“c10::detail::_guarded_unsigned_long”,可 能丢失数据 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/tracer.h(43): 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\Enterprise\VC\Tools\MSVC\14.10.25017\include\memory(1574): note: 参见“std::weak_ptr<_Ty>”的声明 with [ _Ty=torch::jit::tracer::TracingState ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/tracer.h(47): warning C4251: “torch::jit::tracer::TracingState::graph”: class“std::shared_ptr”需要有 dll 接口由 struct“torch::jit::tracer::TracingState”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/tracer.h(47): note: 参见“std::shared_ptr”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/tracer.h(51): 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”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/tracer.h(50): note: 参见“std::function<std::string (const torch::autograd::Variable &)>”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/tracer.h(83): warning C4251: “torch::jit::tracer::TracingState::env_stack”: class“std::vector<torch::jit::tracer::TracingState::Frame,std::allocator<_Ty>>”需要有 dll 接口由 struct“torch::jit::tracer::TracingState”的客户端使用 with [ _Ty=torch::jit::tracer::TracingState::Frame ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/tracer.h(83): note: 参见“std::vector<torch::jit::tracer::TracingState::Frame,std::allocator<_Ty>>”的声明 with [ _Ty=torch::jit::tracer::TracingState::Frame ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/tracer.h(179): 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\Enterprise\VC\Tools\MSVC\14.10.25017\include\memory(1537): note: 参见“std::shared_ptr<_Ty>”的声明 with [ Ty=torch::jit::tracer::TracingState ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/tracer.h(302): warning C4273: “torch::jit::tracer::addInputs”: dll 链接不一致 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/tracer.h(290): note: 参见“addInputs”的前一个定义 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/tracer.h(309): warning C4273: “torch::jit::tracer::addInputs”: dll 链接不一致 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/tracer.h(296): note: 参见“addInputs”的前一个定义 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/attributes.h(87): warning C4275: 非 dll 接口 struct“torch::jit::AttributeValue”用作 dll 接口 struct“torch::jit::GraphAttr”的基 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/attributes.h(25): note: 参见“torch::jit::AttributeValue”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/attributes.h(87): note: 参见“torch::jit::GraphAttr”的声明 C:\Anaconda3\envs\torchori\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”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/tracer.h(47): note: 参见“std::sharedptr”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/attributes.h(104): warning C4275: 非 dll 接口 struct“torch::jit::AttributeValue”用作 dll 接口 struct“torch::jit::GraphsAttr”的基 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/attributes.h(25): note: 参见“torch::jit::AttributeValue”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/attributes.h(104): note: 参见“torch::jit::GraphsAttr”的声明 C:\Anaconda3\envs\torchori\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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/attributes.h(105): note: 参见“std::vector<std::shared_ptr,std::allocator<_Ty>>”的声明 with [ _Ty=std::sharedptr ] C:\Anaconda3\envs\torchori\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 ] C:\Anaconda3\envs\torchori\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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/sourcerange.h(163): warning C4251: “torch::jit::SourceRange::source”: class“std::shared_ptr”需要有 dll 接口由 struct“torch::jit::SourceRange”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/source_range.h(105): note: 参见“std::shared_ptr”的声明 C:\Anaconda3\envs\torchori\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\Enterprise\VC\Tools\MSVC\14.10.25017\include\stdexcept(157): note: 参见“std::runtime_error”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/constants.h(20): note: 参见“torch::jit::constant_not_supportederror”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/ir.h(241): 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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/tracer.h(95): note: 参见“std::vector<torch::jit::Value ,std::allocator<_Ty>>”的声明 with [ _Ty=torch::jit::Value ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/ir.h(242): 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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/tracer.h(95): note: 参见“std::vector<torch::jit::Value ,std::allocator<_Ty>>”的声明 with [ _Ty=torch::jit::Value ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/ir.h(244): 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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/ir.h(244): note: 参见“std::vector<torch::jit::Block ,std::allocator<_Ty>>”的声明 with [ _Ty=torch::jit::Block ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/ir.h(247): warning C4251: “torch::jit::Node::sourcerange”: class“c10::optional”需要有 dll 接口由 struct“torch::jit::Node”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/sourcerange.h(80): note: 参见“c10::optional”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/ir.h(248): 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 ] C:\Anaconda3\envs\torchori\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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/ir.h(766): 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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/ir.h(766): note: 参见“std::vector<torch::jit::Node::AVPtr,std::allocator<_Ty>>”的声明 with [ _Ty=torch::jit::Node::AVPtr ] C:\Anaconda3\envs\torchori\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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/util/ArrayRef.h(220): note: 参见“std::vector<T,std::allocator<_Ty>>”的声明 with [ T=::size_t, _Ty=::size_t ] C:\Anaconda3\envs\torchori\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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/util/ArrayRef.h(220): note: 参见“std::vector<T,std::allocator<_Ty>>”的声明 with [ T=::size_t, _Ty=::size_t ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/argumentspec.h(189): 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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/argument_spec.h(189): note: 参见“std::vector<torch::jit::ArgumentSpecCreator::Inst,std::allocator<_Ty>>”的声明 with [ _Ty=torch::jit::ArgumentSpecCreator::Inst ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/argument_spec.h(222): warning C4267: “初始化”: 从“size_t”转换到“int32_t”,可能丢失数据 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/argument_spec.h(225): warning C4267: “初始化”: 从“size_t”转换到“int32_t”,可能丢失数据 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/argument_spec.h(225): warning C4267: “初始化”: 从“size_t”转换到“const int32_t”,可能丢失数据 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/argument_spec.h(230): warning C4244: “+=”: 从“int64_t”转换到“int32_t”,可能丢失数据 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/argument_spec.h(250): warning C4244: “+=”: 从“int64_t”转换到“int32_t”,可能丢失数据 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/argument_spec.h(418): warning C4267: “参数”: 从“size_t”转换到“const int”,可能丢失数据 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/interpreter.h(45): warning C4251: “torch::jit::Code::pImpl”: class“std::shared_ptr”需要有 dll 接口由 struct“torch::jit::Code”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/interpreter.h(45): note: 参见“std::shared_ptr”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/graph_executor.h(50): warning C4251: “torch::jit::GraphExecutor::pImpl”: class“std::shared_ptr”需要有 dll 接口由 struct“torch::jit::GraphExecutor”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/graph_executor.h(50): note: 参见“std::sharedptr”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/script/slot.h(57): warning C4251: “torch::jit::script::Slot::container”: class“c10::intrusive_ptr<c10::ivalue::Object,c10::detail::intrusive_target_default_null_type>”需要有 dll 接口由 struct“torch::jit::script::Slot”的客户端使用 with [ TTarget=c10::ivalue::Object ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/ivalue.h(290): note: 参见“c10::intrusive_ptr<c10::ivalue::Object,c10::detail::intrusive_target_default_nulltype>”的声明 with [ TTarget=c10::ivalue::Object ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/function.h(122): warning C4251: “torch::jit::Function::name”: struct“c10::QualifiedName”需要有 dll 接口由 struct“torch::jit::Function”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/qualifiedname.h(11): note: 参见“c10::QualifiedName”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/function.h(123): warning C4251: “torch::jit::Function::graph”: class“std::shared_ptr”需要有 dll 接口由 struct“torch::jit::Function”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/tracer.h(47): note: 参见“std::shared_ptr”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/function.h(127): warning C4251: “torch::jit::Function::executorinit”: struct“std::once_flag”需要有 dll 接口由 struct“torch::jit::Function”的客户端使用 C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\include\mutex(453): note: 参见“std::once_flag”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/function.h(132): warning C4251: “torch::jit::Function::functioncreator”: class“std::function<void (torch::jit::Function &)>”需要有 dll 接口由 struct“torch::jit::Function”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/function.h(19): note: 参见“std::function<void (torch::jit::Function &)>”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/function.h(137): warning C4251: “torch::jit::Function::schema_”: class“std::unique_ptr<c10::FunctionSchema,std::default_delete<_Ty>>”需要有 dll 接口由 struct“torch::jit::Function”的客户端使用 with [ _Ty=c10::FunctionSchema ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/function.h(137): note: 参见“std::unique_ptr<c10::FunctionSchema,std::default_delete<_Ty>>”的声明 with [ _Ty=c10::FunctionSchema ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/script/compilationunit.h(242): warning C4251: “torch::jit::script::CompilationUnit::functions”: class“std::vector<std::unique_ptr<torch::jit::Function,std::default_delete<_Ty>>,std::allocator<std::unique_ptr<_Ty,std::default_delete<_Ty>>>>”需要有 dll 接口由 struct“torch::jit::script::CompilationUnit”的客户端使用 with [ _Ty=torch::jit::Function ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/script/compilation_unit.h(242): note: 参见“std::vector<std::unique_ptr<torch::jit::Function,std::default_delete<_Ty>>,std::allocator<std::unique_ptr<_Ty,std::default_delete<_Ty>>>>”的声明 with [ _Ty=torch::jit::Function ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/script/compilationunit.h(244): warning C4251: “torch::jit::script::CompilationUnit::dict”: class“std::unordered_map<c10::QualifiedName,::size_t,std::hash,std::equal_to<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>”需要有 dll 接口由 struct“torch::jit::script::CompilationUnit”的客户端使用 with [ _Kty=c10::QualifiedName, _Ty=::size_t ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/script/compilation_unit.h(244): note: 参见“std::unordered_map<c10::QualifiedName,::size_t,std::hash,std::equal_to<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>”的声明 with [ _Kty=c10::QualifiedName, _Ty=::size_t ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/script/compilationunit.h(245): warning C4251: “torch::jit::script::CompilationUnit::classDict”: class“std::unordered_map<c10::QualifiedName,::size_t,std::hash,std::equal_to<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>”需要有 dll 接口由 struct“torch::jit::script::CompilationUnit”的客户端使用 with [ _Kty=c10::QualifiedName, _Ty=::size_t ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/script/compilation_unit.h(244): note: 参见“std::unordered_map<c10::QualifiedName,::size_t,std::hash,std::equal_to<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>”的声明 with [ _Kty=c10::QualifiedName, _Ty=::size_t ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/script/compilationunit.h(252): warning C4251: “torch::jit::script::CompilationUnit::classes”: class “std::vector<c10::NamedTypePtr,std::allocator<_Ty>>”需要有 dll 接口由 struct“torch::jit::script::CompilationUnit”的客户端使用 with [ _Ty=c10::NamedTypePtr ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/script/compilation_unit.h(252): note: 参见“std::vector<c10::NamedTypePtr,std::allocator<_Ty>>”的声明 with [ Ty=c10::NamedTypePtr ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(102): warning C4251: “torch::jit::script::Method::owner”: class“c10::intrusive_ptr<c10::ivalue::Object,c10::detail::intrusive_target_default_null_type>”需要有 dll 接口由 struct“torch::jit::script::Method”的客户端使用 with [ TTarget=c10::ivalue::Object ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/ivalue.h(290): note: 参见“c10::intrusive_ptr<c10::ivalue::Object,c10::detail::intrusive_target_default_null_type>”的声明 with [ TTarget=c10::ivalue::Object ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(436): 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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/ivalue.h(290): note: 参见“c10::intrusive_ptr<c10::ivalue::Object,c10::detail::intrusive_target_default_null_type>”的声明 with [ TTarget=c10::ivalue::Object ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(475): warning C4251: “torch::jit::script::slot_iteratorimpl::type”: class“c10::optional”需要有 dll 接口由 struct“torch::jit::script::slot_iterator_impl”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(321): note: 参见“c10::optional”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(482): note: 参见对正在编译的 类 模板 实例化 "torch::jit::script::slot_iterator_impl" 的引用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/ivalue_inl.h(527): note: 参见对正在编译的 类 模板 实例化 "c10::ArrayRef" 的引用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(475): warning C4251: “torch::jit::script::slot_iteratorimpl::type”: class“c10::optional”需要有 dll 接口由 struct“torch::jit::script::slot_iterator_impl”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(321): note: 参见“c10::optional”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(485): note: 参见对正在编译的 类 模板 实例化 "torch::jit::script::slot_iterator_impl" 的引用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(475): warning C4251: “torch::jit::script::slot_iteratorimpl::type”: class“c10::optional”需要有 dll 接口由 struct“torch::jit::script::slot_iterator_impl”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(321): note: 参见“c10::optional”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(490): note: 参见对正在编译的 类 模板 实例化 "torch::jit::script::slot_iterator_impl" 的引用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(534): warning C4251: “torch::jit::script::slot_listimpl::type”: class“c10::optional”需要有 dll 接口由 struct“torch::jit::script::slot_list_impl”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(321): note: 参见“c10::optional”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(539): note: 参见对正在编译的 类 模板 实例化 "torch::jit::script::slot_list_impl" 的引用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(537): warning C4251: “torch::jit::script::slot_listimpl::size”: class“c10::optional<::size_t>”需要有 dll 接口由 struct“torch::jit::script::slot_list_impl”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/jit_type.h(444): note: 参见“c10::optional<::size_t>”的声明 C:\Anaconda3\envs\torchori\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\Enterprise\VC\Tools\MSVC\14.10.25017\include\memory(1574): note: 参见“std::weak_ptr<_Ty>”的声明 with [ Ty=torch::nn::Module ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/module.h(550): warning C4251: “torch::nn::Module::parameters”: class“torch::OrderedDict<std::string,at::Tensor>”需要有 dll 接口由 class“torch::nn::Module”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/module.h(210): note: 参见“torch::OrderedDict<std::string,at::Tensor>”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/module.h(553): warning C4251: “torch::nn::Module::buffers”: class“torch::OrderedDict<std::string,at::Tensor>”需要有 dll 接口由 class“torch::nn::Module”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/module.h(210): note: 参见“torch::OrderedDict<std::string,at::Tensor>”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/module.h(556): 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 ] C:\Anaconda3\envs\torchori\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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/module.h(559): warning C4251: “torch::nn::Module::name”: class“c10::optional”需要有 dll 接口由 class“torch::nn::Module”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch/csrc/jit/sourcerange.h(33): note: 参见“c10::optional”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/conv.h(97): warning C4251: “torch::nn::ConvImpl<1,torch::nn::Conv1dImpl>::options”: struct“torch::nn::ConvOptions<1>”需要有 dll 接口由 class“torch::nn::ConvImpl<1,torch::nn::Conv1dImpl>”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/conv.h(89): note: 参见“torch::nn::ConvOptions<1>”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/conv.h(111): note: 参见对正在编译的 类 模板 实例化 "torch::nn::ConvImpl<1,torch::nn::Conv1dImpl>" 的引用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/conv.h(97): warning C4251: “torch::nn::ConvImpl<2,torch::nn::Conv2dImpl>::options”: struct“torch::nn::ConvOptions<2>”需要有 dll 接口由 class“torch::nn::ConvImpl<2,torch::nn::Conv2dImpl>”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/conv.h(89): note: 参见“torch::nn::ConvOptions<2>”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/conv.h(131): note: 参见对正在编译的 类 模板 实例化 "torch::nn::ConvImpl<2,torch::nn::Conv2dImpl>" 的引用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/conv.h(97): warning C4251: “torch::nn::ConvImpl<3,torch::nn::Conv3dImpl>::options”: struct“torch::nn::ConvOptions<3>”需要有 dll 接口由 class“torch::nn::ConvImpl<3,torch::nn::Conv3dImpl>”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/conv.h(89): note: 参见“torch::nn::ConvOptions<3>”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/conv.h(151): note: 参见对正在编译的 类 模板 实例化 "torch::nn::ConvImpl<3,torch::nn::Conv3dImpl>" 的引用 C:\Anaconda3\envs\torchori\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”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/data/transforms/tensor.h(39): note: 参见“std::function<at::Tensor (at::Tensor)>”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(94): 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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Tensor.h(393): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(137): note: 参见对正在编译的 类 模板 实例化 "torch::nn::detail::RNNImplBase" 的引用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(96): 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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Tensor.h(393): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(98): 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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Tensor.h(393): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(100): 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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Tensor.h(393): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(133): warning C4251: “torch::nn::detail::RNNImplBase::cudnnmode”: class“c10::optional<torch::nn::detail::RNNImplBase::CuDNNMode>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(64): note: 参见“c10::optional<torch::nn::detail::RNNImplBase::CuDNNMode>”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(136): 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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Tensor.h(393): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(94): 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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Tensor.h(393): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(177): note: 参见对正在编译的 类 模板 实例化 "torch::nn::detail::RNNImplBase" 的引用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(96): 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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Tensor.h(393): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(98): 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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Tensor.h(393): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(100): 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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Tensor.h(393): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(133): warning C4251: “torch::nn::detail::RNNImplBase::cudnnmode”: class“c10::optional<torch::nn::detail::RNNImplBase::CuDNNMode>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase ”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(64): note: 参见“c10::optional<torch::nn::detail::RNNImplBase::CuDNNMode>”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(136): 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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Tensor.h(393): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(94): 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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Tensor.h(393): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(208): note: 参见对正在编译的 类 模板 实例化 "torch::nn::detail::RNNImplBase" 的引用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(96): 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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Tensor.h(393): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(98): 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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Tensor.h(393): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(100): 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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Tensor.h(393): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(133): warning C4251: “torch::nn::detail::RNNImplBase::cudnnmode”: class“c10::optional<torch::nn::detail::RNNImplBase::CuDNNMode>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(64): note: 参见“c10::optional<torch::nn::detail::RNNImplBase::CuDNNMode>”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(136): 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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Tensor.h(393): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(94): 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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Tensor.h(393): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(234): note: 参见对正在编译的 类 模板 实例化 "torch::nn::detail::RNNImplBase" 的引用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(96): 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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Tensor.h(393): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(98): 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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Tensor.h(393): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(100): 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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Tensor.h(393): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(133): warning C4251: “torch::nn::detail::RNNImplBase::cudnnmode”: class“c10::optional<torch::nn::detail::RNNImplBase::CuDNNMode>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase ”的客户端使用 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(64): note: 参见“c10::optional<torch::nn::detail::RNNImplBase::CuDNNMode>”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(136): 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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Tensor.h(393): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ Ty=at::Tensor ] C:\Anaconda3\envs\torchori\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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Tensor.h(393): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] C:\Anaconda3\envs\torchori\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”的基 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/optimizer.h(100): note: 参见“torch::optim::Optimizer”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/adagrad.h(28): note: 参见“torch::optim::Adagrad”的声明 C:\Anaconda3\envs\torchori\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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Tensor.h(393): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] C:\Anaconda3\envs\torchori\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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/core/MemoryFormat.h(44): note: 参见“std::vector<int64_t,std::allocator<_Ty>>”的声明 with [ _Ty=int64_t ] C:\Anaconda3\envs\torchori\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”的基 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/optimizer.h(100): note: 参见“torch::optim::Optimizer”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/adam.h(31): note: 参见“torch::optim::Adam”的声明 C:\Anaconda3\envs\torchori\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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\c10/core/MemoryFormat.h(44): note: 参见“std::vector<int64_t,std::allocator<_Ty>>”的声明 with [ _Ty=int64_t ] C:\Anaconda3\envs\torchori\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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Tensor.h(393): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] C:\Anaconda3\envs\torchori\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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Tensor.h(393): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] C:\Anaconda3\envs\torchori\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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Tensor.h(393): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/lbfgs.h(22): warning C4305: “初始化”: 从“double”到“float”截断 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/lbfgs.h(23): warning C4305: “初始化”: 从“double”到“float”截断 C:\Anaconda3\envs\torchori\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”的基 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/optimizer.h(110): note: 参见“torch::optim::LossClosureOptimizer”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/lbfgs.h(27): note: 参见“torch::optim::LBFGS”的声明 C:\Anaconda3\envs\torchori\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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Tensor.h(393): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] C:\Anaconda3\envs\torchori\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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Tensor.h(393): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] C:\Anaconda3\envs\torchori\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 ] C:\Anaconda3\envs\torchori\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 ] C:\Anaconda3\envs\torchori\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 ] C:\Anaconda3\envs\torchori\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 ] C:\Anaconda3\envs\torchori\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”的基 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/optimizer.h(100): note: 参见“torch::optim::Optimizer”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/rmsprop.h(34): note: 参见“torch::optim::RMSprop”的声明 C:\Anaconda3\envs\torchori\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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Tensor.h(393): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] C:\Anaconda3\envs\torchori\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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Tensor.h(393): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] C:\Anaconda3\envs\torchori\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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Tensor.h(393): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] C:\Anaconda3\envs\torchori\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”的基 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/optimizer.h(100): note: 参见“torch::optim::Optimizer”的声明 C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/sgd.h(31): note: 参见“torch::optim::SGD”的声明 C:\Anaconda3\envs\torchori\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 ] C:\Anaconda3\envs\torchori\lib\site-packages\torch\include\ATen/core/Tensor.h(393): note: 参见“std::vector<at::Tensor,std::allocator<_Ty>>”的声明 with [ _Ty=at::Tensor ] sort_vert.cpp(17): warning C4244: “初始化”: 从“int64_t”转换到“int”,可能丢失数据 sort_vert.cpp(18): warning C4244: “初始化”: 从“int64_t”转换到“int”,可能丢失数据 sort_vert.cpp(19): warning C4244: “初始化”: 从“int64_t”转换到“int”,可能丢失数据 sort_vert.cpp(23): error C2062: 意外的类型“float” error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\bin\HostX86\x64\cl.exe' failed with exit status 2

lilanxiao commented 3 years ago

@Shank2358 我用的是ubuntu系统,没有在windows下测试过这些代码,所以目前只支持ubuntu系统。从错误信息来看,很有可能是编译环境不符合要求,造成了错误。

理论上讲可以修改代码,以支持不同操作系统。但是因为我不熟悉windows下那一套的编译工具,不清楚具体怎么操作。

Shank2358 commented 3 years ago

套的编译工具,不清

嗯嗯谢谢,我切换到ubuntu试试看