install error: error: command 'E:\\program files\\C#\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2
See original GitHub issuehi, while trying to install your torch-scatter, i encounter a problem which i can’t fix it for a couple of days. I have built a new environment for it, and here is some information that may be concerned
(base) C:\WINDOWS\system32>activate torchwithsparse
(torchwithsparse) C:\WINDOWS\system32>python --version
Python 3.6.2 :: Continuum Analytics, Inc.
(torchwithsparse) C:\WINDOWS\system32>nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Wed_Apr_24_19:11:20_Pacific_Daylight_Time_2019
Cuda compilation tools, release 10.1, V10.1.168
(torchwithsparse) C:\WINDOWS\system32>python
Python 3.6.2 |Continuum Analytics, Inc.| (default, Jul 20 2017, 12:30:02) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> torch.cuda.is_available()
True
And below is the error log, i would really appreciate that you can give me some advice
(torchwithsparse) C:\WINDOWS\system32>python -c "import torch; print(torch.__version__)"
1.1.0
(torchwithsparse) C:\WINDOWS\system32>pip install torch-scatter
Collecting torch-scatter
Using cached https://files.pythonhosted.org/packages/35/d4/750403a8aa32cdb3d2d05849c6a10e4e0604de5e0cc94b81a0d0d69a75f3/torch_scatter-1.3.1.tar.gz
Building wheels for collected packages: torch-scatter
Building wheel for torch-scatter (setup.py) ... error
ERROR: Complete output from command 'e:\anaconda\envs\torchwithsparse\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\WANG\\AppData\\Local\\Temp\\pip-install-bkdrkgzk\\torch-scatter\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\WANG\AppData\Local\Temp\pip-wheel-vo8ut1jl' --python-tag cp36:
ERROR: running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\test
copying test\test_backward.py -> build\lib.win-amd64-3.6\test
copying test\test_forward.py -> build\lib.win-amd64-3.6\test
copying test\test_max_min.py -> build\lib.win-amd64-3.6\test
copying test\test_multi_gpu.py -> build\lib.win-amd64-3.6\test
copying test\test_std.py -> build\lib.win-amd64-3.6\test
copying test\utils.py -> build\lib.win-amd64-3.6\test
copying test\__init__.py -> build\lib.win-amd64-3.6\test
creating build\lib.win-amd64-3.6\torch_scatter
copying torch_scatter\add.py -> build\lib.win-amd64-3.6\torch_scatter
copying torch_scatter\div.py -> build\lib.win-amd64-3.6\torch_scatter
copying torch_scatter\max.py -> build\lib.win-amd64-3.6\torch_scatter
copying torch_scatter\mean.py -> build\lib.win-amd64-3.6\torch_scatter
copying torch_scatter\min.py -> build\lib.win-amd64-3.6\torch_scatter
copying torch_scatter\mul.py -> build\lib.win-amd64-3.6\torch_scatter
copying torch_scatter\std.py -> build\lib.win-amd64-3.6\torch_scatter
copying torch_scatter\sub.py -> build\lib.win-amd64-3.6\torch_scatter
copying torch_scatter\__init__.py -> build\lib.win-amd64-3.6\torch_scatter
creating build\lib.win-amd64-3.6\torch_scatter\utils
copying torch_scatter\utils\ext.py -> build\lib.win-amd64-3.6\torch_scatter\utils
copying torch_scatter\utils\gen.py -> build\lib.win-amd64-3.6\torch_scatter\utils
copying torch_scatter\utils\__init__.py -> build\lib.win-amd64-3.6\torch_scatter\utils
running build_ext
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\utils\cpp_extension.py:184: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。
warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error))
building 'torch_scatter.scatter_cpu' extension
creating build\temp.win-amd64-3.6
creating build\temp.win-amd64-3.6\Release
creating build\temp.win-amd64-3.6\Release\cpu
E:\program files\C#\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ie:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include -Ie:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include -Ie:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\TH -Ie:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\THC -Ie:\anaconda\envs\torchwithsparse\include -Ie:\anaconda\envs\torchwithsparse\include "-IE:\program files\C#\VC\INCLUDE" "-IE:\program files\C#\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10150.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\\winrt" /EHsc /Tpcpu/scatter.cpp /Fobuild\temp.win-amd64-3.6\Release\cpu/scatter.obj -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=scatter_cpu -D_GLIBCXX_USE_CXX11_ABI=0 /MD
scatter.cpp
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Exception.h(27): warning C4275: 非 dll 接口 class“std::exception”用作 dll 接口 class“c10::Error”的基
E:\program files\C#\VC\INCLUDE\vcruntime_exception.h(43): note: 参见“std::exception”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Exception.h(27): note: 参见“c10::Error”的 声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Exception.h(28): warning C4251: “c10::Error::msg_stack_”: class“std::vector<std::string,std::allocator<_Ty>>”需要有 dll 接口由 class“c10::Error”的客户端使用
with
[
_Ty=std::string
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Exception.h(29): warning C4251: “c10::Error::backtrace_”: class“std::basic_string<char,std::char_traits<char>,std::allocator<char>>”需要有 dll 接口由 class“c10::Error”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Exception.h(34): warning C4251: “c10::Error::msg_”: class“std::basic_string<char,std::char_traits<char>,std::allocator<char>>”需要有 dll 接口由 class“c10::Error”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Exception.h(35): warning C4251: “c10::Error::msg_without_backtrace_”: class“std::basic_string<char,std::char_traits<char>,std::allocator<char>>”需要有 dll 接口 由 class“c10::Error”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/Allocator.h(21): warning C4251: “c10::DataPtr::ptr_”: class“c10::detail::UniqueVoidPtr”需要有 dll 接口由 class“c10::DataPtr”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/UniqueVoidPtr.h(38): note: 参见“c10::detail::UniqueVoidPtr”的声明
e:\anaconda\envs\torchwithsparse\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”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorTypeIdRegistration.h(32): warning C4251: “c10::TensorTypeIdCreator::last_id_”: struct“std::atomic<unsigned char>”需要有 dll 接口由 class“c10::TensorTypeIdCreator”的客户端使用
E:\program files\C#\VC\INCLUDE\xxatomic(168): note: 参见“std::atomic<unsigned char>”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorTypeIdRegistration.h(45): warning C4251: “c10::TensorTypeIdRegistry::registeredTypeIds_”: class“std::unordered_set<c10::TensorTypeId,std::hash<c10::TensorTypeId>,std::equal_to<_Kty>,std::allocator<_Kty>>”需要有 dll 接口由 class“c10::TensorTypeIdRegistry”的客户端使用
with
[
_Kty=c10::TensorTypeId
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorTypeIdRegistration.h(46): warning C4251: “c10::TensorTypeIdRegistry::mutex_”: class“std::mutex”需要有 dll 接口由 class“c10::TensorTypeIdRegistry”的客户 端使用
E:\program files\C#\VC\INCLUDE\mutex(76): note: 参见“std::mutex”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Half-inl.h(168): warning C4244: “参数”: 从“int”转换到“float”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Half-inl.h(171): warning C4244: “参数”: 从“int”转换到“float”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Half-inl.h(174): warning C4244: “参数”: 从“int”转换到“float”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Half-inl.h(177): warning C4244: “参数”: 从“int”转换到“float”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Half-inl.h(181): warning C4244: “参数”: 从“int”转换到“float”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Half-inl.h(184): warning C4244: “参数”: 从“int”转换到“float”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Half-inl.h(187): warning C4244: “参数”: 从“int”转换到“float”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Half-inl.h(190): warning C4244: “参数”: 从“int”转换到“float”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Half-inl.h(196): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Half-inl.h(199): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Half-inl.h(202): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Half-inl.h(205): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Half-inl.h(209): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Half-inl.h(212): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Half-inl.h(215): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Half-inl.h(218): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(70): error C2134: “caffe2::TypeIdentifier::TypeIdentifier”: 调用不会生成常数表达式
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(70): note: 对未定义的函数或为未声明为“constexpr”的函数的调用导致了故障
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(84): note: 参见“caffe2::TypeIdentifier::TypeIdentifier”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(328): error C2071: “caffe2::TypeMeta::New”: 非法的存储类
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(329): error C2071: “caffe2::TypeMeta::PlacementNew”: 非法的存储类
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(330): error C2071: “caffe2::TypeMeta::Copy”: 非法的存储类
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(331): error C2071: “caffe2::TypeMeta::PlacementDelete”: 非法的存储类
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(332): error C2071: “caffe2::TypeMeta::Delete”: 非法的存储类
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(371): error C2327: “caffe2::TypeMeta::New”: 不是类型名称、静态或枚举数
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(371): error C2143: 语法错误: 缺少“;”(在“*”的前面)
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(371): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(371): error C2126: 不能使用“constexpr”说明符声明“caffe2::TypeMeta::New”
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(371): error C2334: “{”��前面有 意外标记;跳过明显的函数体
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(377): error C2327: “caffe2::TypeMeta::PlacementNew”: 不是类型名称、静态或枚举数
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(377): error C2143: 语法错误: 缺少“;”(在“*”的前面)
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(377): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(377): error C2126: 不能使用“constexpr”说明符声明“caffe2::TypeMeta::PlacementNew”
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(377): error C2334: “{”的前面有意 外标记;跳过明显的函数体
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(383): error C2327: “caffe2::TypeMeta::Copy”: 不是类型名称、静态或枚举数
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(383): error C2143: 语法错误: 缺少“;”(在“*”的前面)
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(383): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(383): error C2126: 不能使用“constexpr”说明符声明“caffe2::TypeMeta::Copy”
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(383): error C2334: “{”的前面有意 外标记;跳过明显的函数体
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(389): error C2327: “caffe2::TypeMeta::PlacementDelete”: 不是类型名称、静态或枚举数
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(389): error C2143: 语法错误: 缺少“;”(在“*”的前面)
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(389): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(389): error C2126: 不能使用“constexpr”说明符声明“caffe2::TypeMeta::PlacementDelete”
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(389): error C2334: “{”的前面有意 外标记;跳过明显的函数体
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(392): error C2327: “caffe2::TypeMeta::Delete”: 不是类型名称、静态或枚举数
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(392): error C2143: 语法错误: 缺少“;”(在“*”的前面)
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(392): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(392): error C2126: 不能使用“constexpr”说明符声明“caffe2::TypeMeta::Delete”
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(392): error C2334: “{”的前面有意 外标记;跳过明显的函数体
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(355): error C2476: “constexpr”构 造函数不会初始化所有成员
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(328): note: 构造函数未初始化“caffe2::TypeMeta::New”
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(329): note: 构造函数未初始化“caffe2::TypeMeta::PlacementNew”
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(330): note: 构造函数未初始化“caffe2::TypeMeta::Copy”
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(331): note: 构造函数未初始化“caffe2::TypeMeta::PlacementDelete”
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(332): note: 构造函数未初始化“caffe2::TypeMeta::Delete”
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorOptions.h(526): error C2338: TensorOptions must fit in 128-bits
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/intrusive_ptr.h(58): warning C4251: “c10::intrusive_ptr_target::refcount_”: struct“std::atomic<unsigned __int64>”需要有 dll 接口由 class“c10::intrusive_ptr_target”的客户端使用
E:\program files\C#\VC\INCLUDE\xxatomic(168): note: 参见“std::atomic<unsigned __int64>”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/intrusive_ptr.h(59): warning C4251: “c10::intrusive_ptr_target::weakcount_”: struct“std::atomic<unsigned __int64>”需要有 dll 接口由 class“c10::intrusive_ptr_target”的客户端使用
E:\program files\C#\VC\INCLUDE\xxatomic(168): note: 参见“std::atomic<unsigned __int64>”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/intrusive_ptr.h(723): warning C4267: “return”: 从“size_t”转换到“uint32_t”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/intrusive_ptr.h(757): warning C4267: “return”: 从“size_t”转换到“uint32_t”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/Storage.h(181): warning C4251: “c10::Storage::storage_impl_”: class“c10::intrusive_ptr<c10::StorageImpl,c10::detail::intrusive_target_default_null_type<TTarget>>”需要有 dll 接口由 struct“c10::Storage”的客户端使用
with
[
TTarget=c10::StorageImpl
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/logging_is_not_google_glog.h(47): warning C4251: “c10::MessageLogger::stream_”: class“std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>”需要有 dll 接口由 class“c10::MessageLogger”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorImpl.h(193): warning C4251: “c10::VariableVersion::version_block_”: class“std::shared_ptr<std::atomic<unsigned int>>”需要有 dll 接口由 struct“c10::VariableVersion”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorImpl.h(1466): warning C4251: “c10::TensorImpl::autograd_meta_”: class“std::unique_ptr<c10::AutogradMetaInterface,std::default_delete<_Ty>>”需要有 dll 接口由 struct“c10::TensorImpl”的客户端使用
with
[
_Ty=c10::AutogradMetaInterface
]
e:\anaconda\envs\torchwithsparse\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”的客户端使用
e:\anaconda\envs\torchwithsparse\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”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorImpl.h(1499): warning C4251: “c10::TensorImpl::device_opt_”: class“c10::optional<c10::Device>”需要有 dll 接口由 struct“c10::TensorImpl”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorImpl.h(1018): warning C4244: “参数”: 从“float”转换到“const size_t”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorImpl.h(1024): error C2039: “copy”: 不是“caffe2::TypeMeta”的成员
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/DefaultDtype.h(6): note: 参见“caffe2::TypeMeta”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorImpl.h(1028): error C2039: “copy”: 不是“caffe2::TypeMeta”的成员
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/DefaultDtype.h(6): note: 参见“caffe2::TypeMeta”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorImpl.h(1258): error C2039: “placementDelete”: 不是“caffe2::TypeMeta”的成员
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/DefaultDtype.h(6): note: 参见“caffe2::TypeMeta”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorImpl.h(1274): error C2039: “placementNew”: 不是“caffe2::TypeMeta”的成员
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/DefaultDtype.h(6): note: 参见“caffe2::TypeMeta”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorImpl.h(1287): error C2039: “placementNew”: 不是“caffe2::TypeMeta”的成员
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/DefaultDtype.h(6): note: 参见“caffe2::TypeMeta”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorImpl.h(1292): error C2039: “placementDelete”: 不是“caffe2::TypeMeta”的成员
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/DefaultDtype.h(6): note: 参见“caffe2::TypeMeta”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorImpl.h(1295): error C3536: “dtor”: 初始化之前无法使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorImpl.h(1295): error C2664: “c10::DataPtr c10::PlacementDeleteContext::makeDataPtr(c10::DataPtr &&,c10::PlacementDtor,size_t,c10::Device)”: 无法将参数 2 从“int”转换为“c10::PlacementDtor”
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorImpl.h(1295): note: 从整型转换为指针类型要求 reinterpret_cast、C 样式转换或函数样式转换
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorImpl.h(1296): error C2039: “placementNew”: 不是“caffe2::TypeMeta”的成员
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/DefaultDtype.h(6): note: 参见“caffe2::TypeMeta”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorImpl.h(1416): warning C4244: “初始化 ”: 从“int64_t”转换到“int”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorImpl.h(1584): error C2338: You changed the size of TensorImpl on 64-bit arch.See Note [TensorImpl size constraints] on how to proceed.
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/LegacyTypeDispatch.h(38): error C2071: “at::LegacyTypeDeleter::TypeDeleterFun”: 非法的存储类
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/LegacyTypeDispatch.h(39): error C2327: “at::LegacyTypeDeleter::TypeDeleterFun”: 不是类型名称、静态或枚举数
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/LegacyTypeDispatch.h(39): error C2143: 语法错误: 缺少“;”(在“*”的前面)
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/LegacyTypeDispatch.h(39): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/LegacyTypeDispatch.h(39): error C2238: 意外的标记位于“;”之前
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/LegacyTypeDispatch.h(41): error C2327: “at::LegacyTypeDeleter::TypeDeleterFun”: 不是类型名称、静态或枚举数
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/LegacyTypeDispatch.h(41): error C2061: 语法错误: 标识符“TypeDeleterFun”
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/LegacyTypeDispatch.h(41): error C2535: “at::LegacyTypeDeleter::LegacyTypeDeleter(void)”: 已经定义或声明成员函数
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/LegacyTypeDispatch.h(40): note: 参见“at::LegacyTypeDeleter::LegacyTypeDeleter”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/LegacyTypeDispatch.h(41): error C2065: “fn”: 未声明的标识符
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/LegacyTypeDispatch.h(41): error C2614: “at::LegacyTypeDeleter”: 非法的成员初始化:“fn_”不是基或成员
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/LegacyTypeDispatch.h(43): error C2065: “fn_”: 未声明的标识符
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/LegacyTypeDispatch.h(44): error C2065: “fn_”: 未声明的标识符
e:\anaconda\envs\torchwithsparse\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”的客户端使用
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/Tensor.h(774): warning C4522: “at::Tensor ”: 指定了多个赋值运算符
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/Tensor.h(801): warning C4251: “at::WeakTensor::weak_impl_”: class“c10::weak_intrusive_ptr<TTarget,NullType>”需要有 dll 接口由 struct“at::WeakTensor”的客户端 使用
with
[
TTarget=c10::TensorImpl,
NullType=c10::UndefinedTensorImpl
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/LegacyTHDispatch.h(49): error C2071: “at::LegacyTHDispatcherDeleter::LegacyTHDispatcherDeleterFun”: 非法的存储类
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/LegacyTHDispatch.h(50): error C2327: “at::LegacyTHDispatcherDeleter::LegacyTHDispatcherDeleterFun”: 不是类型名称、静态或枚举数
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/LegacyTHDispatch.h(50): error C2143: 语法错误: 缺少“;”(在“*”的前面)
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/LegacyTHDispatch.h(50): error C4430: 缺少类型说 明符 - 假定为 int。注意: C++ 不支持默认 int
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/LegacyTHDispatch.h(50): error C2238: 意外的标记 位于“;”之前
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/LegacyTHDispatch.h(52): error C2327: “at::LegacyTHDispatcherDeleter::LegacyTHDispatcherDeleterFun”: 不是类型名称、静态或枚举数
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/LegacyTHDispatch.h(52): error C2061: 语法错误: 标识符“LegacyTHDispatcherDeleterFun”
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/LegacyTHDispatch.h(52): error C2535: “at::LegacyTHDispatcherDeleter::LegacyTHDispatcherDeleter(void)”: 已经定义或声明成员函数
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/LegacyTHDispatch.h(51): note: 参见“at::LegacyTHDispatcherDeleter::LegacyTHDispatcherDeleter”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/LegacyTHDispatch.h(52): error C2065: “fn”: 未 声明的标识符
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/LegacyTHDispatch.h(52): error C2614: “at::LegacyTHDispatcherDeleter”: 非法的成员初始化:“fn_”不是基或成员
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/LegacyTHDispatch.h(54): error C2065: “fn_”: 未声明的标识符
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/LegacyTHDispatch.h(55): error C2065: “fn_”: 未声明的标识符
e:\anaconda\envs\torchwithsparse\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”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/Stream.h(126): warning C4244: “参数”: 从“unsigned __int64”转换到“c10::DeviceIndex”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/Stream.h(126): warning C4244: “参数”: 从“unsigned __int64”转换到“c10::StreamId”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/impl/DeviceGuardImplInterface.h(137): warning C4800: “const c10::impl::DeviceGuardImplInterface *”: 将值强制为布尔值“true”或“false”(性能警告)
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/Context.h(151): warning C4251: “at::Context::thc_init”: struct“std::once_flag”需要有 dll 接口由 class“at::Context”的客户端使用
E:\program files\C#\VC\INCLUDE\mutex(397): note: 参见“std::once_flag”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/Context.h(152): warning C4251: “at::Context::thh_init”: struct“std::once_flag”需要有 dll 接口由 class“at::Context”的客户端使用
E:\program files\C#\VC\INCLUDE\mutex(397): note: 参见“std::once_flag”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/Context.h(153): warning C4251: “at::Context::complex_init_”: struct“std::once_flag”需要有 dll 接口由 class“at::Context”的客户端使用
E:\program files\C#\VC\INCLUDE\mutex(397): note: 参见“std::once_flag”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/Context.h(157): warning C4251: “at::Context::next_id”: struct“std::atomic<unsigned __int64>”需要有 dll 接口由 class“at::Context”的客户端使用
E:\program files\C#\VC\INCLUDE\xxatomic(168): note: 参见“std::atomic<unsigned __int64>”的声明
e:\anaconda\envs\torchwithsparse\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”的客户端使用
e:\anaconda\envs\torchwithsparse\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”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/Context.h(52): error C2440: “<function-style-cast>”: 无法从“at::Context::registerType::<lambda_1fc99ff75cd149d173424b282353a33b>”转换为“at::LegacyTypeDeleter”
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/Context.h(52): note: 无构造函数可以接受源类型, 或构造函数重载决策不明确
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/Context.h(57): error C2440: “<function-style-cast>”: 无法从“at::Context::registerLegacyTHDispatcher::<lambda_b06be8ac5025571199e3700984197321>”转换为“at::LegacyTHDispatcherDeleter”
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/Context.h(57): note: 无构造函数可以接受源类型, 或构造函数重载决策不明确
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/utils/hash.h(70): error C2995: “unknown-type torch::_hash_detail::dispatch_hash(const T &)”: 函数模板已经定义
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/utils/hash.h(57): note: 参见“torch::_hash_detail::dispatch_hash”的声明
e:\anaconda\envs\torchwithsparse\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<char>,std::allocator<char>>”需要有 dll 接口由 struct“torch::autograd::Variable::AutogradMeta”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/autograd/variable.h(334): warning C4251: “torch::autograd::Variable::AutogradMeta::grad_fn_”: class“std::shared_ptr<torch::autograd::Function>”需要有 dll 接 口由 struct“torch::autograd::Variable::AutogradMeta”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/autograd/variable.h(335): warning C4251: “torch::autograd::Variable::AutogradMeta::grad_accumulator_”: class“std::weak_ptr<torch::autograd::Function>”需要有 dll 接口由 struct“torch::autograd::Variable::AutogradMeta”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/autograd/variable.h(337): warning C4251: “torch::autograd::Variable::AutogradMeta::hooks_”: class“std::vector<std::shared_ptr<torch::autograd::FunctionPreHook>,std::allocator<_Ty>>”需要有 dll 接口由 struct“torch::autograd::Variable::AutogradMeta”的客户端使用
with
[
_Ty=std::shared_ptr<torch::autograd::FunctionPreHook>
]
e:\anaconda\envs\torchwithsparse\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”的客户端使用
E:\program files\C#\VC\INCLUDE\mutex(76): note: 参见“std::mutex”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/blob.h(191): error C2039: “deleteFn”: 不 是“caffe2::TypeMeta”的成员
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/DefaultDtype.h(6): note: 参见“caffe2::TypeMeta”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(27): warning C4251: “c10::ivalue::ConstantString::str_”: class“std::basic_string<char,std::char_traits<char>,std::allocator<char>>”需要有 dll 接口由 struct“c10::ivalue::ConstantString”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(46): warning C4251: “c10::ivalue::List<Elem>::elements_”: class“std::vector<T,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::ivalue::List<Elem>”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(72): note: 参见对正在编译的类 模板 实例化“c10::ivalue::List<Elem>”的引用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(46): warning C4251: “c10::ivalue::List<c10::IValue>::elements_”: class“std::vector<Elem,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::ivalue::List<c10::IValue>”的客户端使用
with
[
Elem=c10::IValue,
_Ty=c10::IValue
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(87): note: 参见对正在编译的类 模板 实例化“c10::ivalue::List<c10::IValue>”的引用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(560): warning C4275: 非 dll 接口 class“std::exception”用作 dll 接口 struct“c10::ivalue::Future::FutureError”的基
E:\program files\C#\VC\INCLUDE\vcruntime_exception.h(43): note: 参见“std::exception”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(560): note: 参见“c10::ivalue::Future::FutureError”的声明
e:\anaconda\envs\torchwithsparse\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<char>,std::allocator<char>>”需要有 dll 接口由 struct“c10::ivalue::Future::FutureError”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(676): warning C4251: “c10::ivalue::Future::mutex_”: class“std::mutex”需要有 dll 接口由 struct“c10::ivalue::Future”的客户端使用
E:\program files\C#\VC\INCLUDE\mutex(76): note: 参见“std::mutex”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(678): warning C4251: “c10::ivalue::Future::completed_”: struct“std::atomic<bool>”需要有 dll 接口由 struct“c10::ivalue::Future”的客户端使用
E:\program files\C#\VC\INCLUDE\xxatomic(168): note: 参见“std::atomic<bool>”的声明
e:\anaconda\envs\torchwithsparse\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)>
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(722): warning C4251: “c10::ivalue::Object::type_”: class“std::shared_ptr<c10::ClassType>”需要有 dll 接口由 struct“c10::ivalue::Object”的客���端使用
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(781): warning C4244: “return”: 从“double”转换到“float”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(783): warning C4244: “return”: 从“int64_t”转换到“unsigned char”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(784): warning C4244: “return”: 从“int64_t”转换到“signed char”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(785): warning C4244: “return”: 从“int64_t”转换到“unsigned short”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(786): warning C4244: “return”: 从“int64_t”转换到“short”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(787): warning C4244: “return”: 从“int64_t”转换到“int”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(788): warning C4244: “return”: 从“int64_t”转换到“uint32_t”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(790): warning C4244: “return”: 从“int64_t”转换到“c10::detail::_guarded_unsigned_long”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(46): warning C4251: “c10::ivalue::List<int64_t>::elements_”: class“std::vector<int64_t,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::ivalue::List<int64_t>”的客户端使用
with
[
_Ty=int64_t
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(859): note: 参见对正在编译的类 模 板 实例化“c10::ivalue::List<int64_t>”的引用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(46): warning C4251: “c10::ivalue::List<double>::elements_”: class“std::vector<T,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::ivalue::List<double>”的客户端使用
with
[
T=double,
_Ty=double
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(873): note: 参见对正在编译的类 模 板 实例化“c10::ivalue::List<double>”的引用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(46): warning C4251: “c10::ivalue::List<bool>::elements_”: class“std::vector<bool,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::ivalue::List<bool>”的客户端使用
with
[
_Ty=bool
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(880): note: 参见对正在编译的类 模 板 实例化“c10::ivalue::List<bool>”的引用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(46): warning C4251: “c10::ivalue::List<at::Tensor>::elements_”: class“std::vector<at::Tensor,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::ivalue::List<at::Tensor>”的客户端使用
with
[
_Ty=at::Tensor
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(887): note: 参见对正在编译的类 模 板 实例化“c10::ivalue::List<at::Tensor>”的引用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(1003): warning C4244: “参数”: 从“int64_t”转换到“const int”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(66): warning C4251: “std::enable_shared_from_this<c10::Type>::_Wptr”: class“std::weak_ptr<_Ty>”需要有 dll 接口由 class“std::enable_shared_from_this<c10::Type>”的客户端使用
with
[
_Ty=c10::Type
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(227): warning C4251: “c10::SingleElementType<OptionalType,c10::OptionalType>::elem”: class“std::shared_ptr<c10::Type>”需要有 dll 接口由 struct“c10::SingleElementType<OptionalType,c10::OptionalType>”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(477): warning C4251: “c10::VaryingShape::size_”: class“c10::optional<size_t>”需要有 dll 接口由 struct“c10::VaryingShape”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(478): warning C4251: “c10::VaryingShape::dims_”: class“std::vector<c10::optional<int64_t>,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::VaryingShape”的客户端使用
with
[
_Ty=c10::optional<int64_t>
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(571): warning C4251: “c10::ProfiledTensorType::scalar_type_”: class“c10::optional<c10::ScalarType>”需要有 dll 接口由 struct“c10::ProfiledTensorType”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(572): warning C4251: “c10::ProfiledTensorType::device_”: class“c10::optional<c10::Device>”需要有 dll 接口由 struct“c10::ProfiledTensorType”的客户 端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(575): warning C4251: “c10::ProfiledTensorType::requires_grad_”: class“c10::optional<bool>”需要有 dll 接口由 struct“c10::ProfiledTensorType”的客户 端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(533): warning C4267: “参数”: 从“size_t”转换到“int”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(537): warning C4267: “参数”: 从“size_t”转换到“int”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(682): warning C4251: “c10::CompleteTensorType::sizes_”: class“std::vector<int64_t,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::CompleteTensorType”的客户端使用
with
[
_Ty=int64_t
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(683): warning C4251: “c10::CompleteTensorType::strides_”: class“std::vector<int64_t,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::CompleteTensorType”的客户端使用
with
[
_Ty=int64_t
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(688): warning C4251: “c10::SingleElementType<ListType,c10::ListType>::elem”: class“std::shared_ptr<c10::Type>”需要有 dll 接口由 struct“c10::SingleElementType<ListType,c10::ListType>”的客户端使用
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(808): warning C4251: “c10::SingleElementType<FutureType,c10::FutureType>::elem”: class“std::shared_ptr<c10::Type>”需要有 dll 接口由 struct“c10::SingleElementType<FutureType,c10::FutureType>”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(941): warning C4251: “c10::TupleType::elements_”: class“std::vector<c10::TypePtr,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::TupleType”的客户端使用
with
[
_Ty=c10::TypePtr
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.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
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(1450): warning C4251: “c10::ClassType::qualifiedName_”: class“std::basic_string<char,std::char_traits<char>,std::allocator<char>>”需要有 dll 接口由 struct“c10::ClassType”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(1454): warning C4251: “c10::ClassType::qualifier_”: class“std::basic_string<char,std::char_traits<char>,std::allocator<char>>”需要有 dll 接口由 struct“c10::ClassType”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(1456): warning C4251: “c10::ClassType::basename_”: class“std::basic_string<char,std::char_traits<char>,std::allocator<char>>”需要有 dll 接口由 struct“c10::ClassType”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(1464): warning C4251: “c10::ClassType::attributeNames_”: class“std::vector<std::string,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::ClassType”的客户端使用
with
[
_Ty=std::string
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(1465): warning C4251: “c10::ClassType::attributeTypes_”: class“std::vector<c10::TypePtr,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::ClassType”的客户端使用
with
[
_Ty=c10::TypePtr
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(1467): warning C4251: “c10::ClassType::compilation_unit_”: class“std::shared_ptr<torch::jit::script::CompilationUnit>”需要有 dll 接口由 struct“c10::ClassType”的客户端使用
e:\anaconda\envs\torchwithsparse\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<TTarget>>”需要有 dll 接口由 struct“torch::jit::Scope”的客户端使用
with
[
TTarget=torch::jit::Scope
]
e:\anaconda\envs\torchwithsparse\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”的基
E:\program files\C#\VC\INCLUDE\stdexcept(166): note: 参见“std::runtime_error”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/constants.h(20): note: 参见“torch::jit::constant_not_supported_error”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/attributes.h(87): warning C4275: 非 dll 接口 struct“torch::jit::AttributeValue”用作 dll 接口 struct“torch::jit::GraphAttr”的基
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/attributes.h(25): note: 参见“torch::jit::AttributeValue”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/attributes.h(87): note: 参见“torch::jit::GraphAttr”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/attributes.h(101): warning C4251: “torch::jit::GraphAttr::value_”: class“std::shared_ptr<torch::jit::Graph>”需要有 dll 接口由 struct“torch::jit::GraphAttr”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/attributes.h(104): warning C4275: 非 dll 接口 struct“torch::jit::AttributeValue”用作 dll 接口 struct“torch::jit::GraphsAttr”的基
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/attributes.h(25): note: 参见“torch::jit::AttributeValue”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/attributes.h(104): note: 参见“torch::jit::GraphsAttr”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/attributes.h(118): warning C4251: “torch::jit::GraphsAttr::value_”: class“std::vector<std::shared_ptr<torch::jit::Graph>,std::allocator<_Ty>>”需要有 dll 接口由 struct“torch::jit::GraphsAttr”的客户端使用
with
[
_Ty=std::shared_ptr<torch::jit::Graph>
]
e:\anaconda\envs\torchwithsparse\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 *
]
e:\anaconda\envs\torchwithsparse\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 *
]
e:\anaconda\envs\torchwithsparse\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 *
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/ir.h(252): warning C4251: “torch::jit::Node::source_location_”: class“std::shared_ptr<torch::jit::SourceLocation>”需要有 dll 接口由 struct“torch::jit::Node”的客户端使用
e:\anaconda\envs\torchwithsparse\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<TTarget>> ”需要有 dll 接口由 struct“torch::jit::Node”的客户端使用
with
[
TTarget=torch::jit::Scope
]
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/ir.h(1243): error C4579: 'torch::jit::ProfileOp::Kind': in-class initialization for type 'const c10::Symbol' is not yet implemented; static member will remain uninitialized at runtime but use in constant-expressions is supported
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/tracing_state.h(30): warning C4251: “std::enable_shared_from_this<torch::jit::tracer::TracingState>::_Wptr”: class“std::weak_ptr<_Ty>”需要有 dll 接口由 class“std::enable_shared_from_this<torch::jit::tracer::TracingState>”的客户端使用
with
[
_Ty=torch::jit::tracer::TracingState
]
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/tracing_state.h(59): warning C4251: “torch::jit::tracer::TracingState::graph”: class“std::shared_ptr<torch::jit::Graph>”需要有 dll 接口由 struct“torch::jit::tracer::TracingState”的客户端使用
e:\anaconda\envs\torchwithsparse\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”的客户端使用
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/tracer.h(171): warning C4273: “torch::jit::tracer::addInputs”: dll 链接不一致
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/tracer.h(154): note: 参见“addInputs”的前一个定义
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/tracer.h(178): warning C4273: “torch::jit::tracer::addInputs”: dll 链接不一致
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/tracer.h(160): note: 参见“addInputs”的前一个定义
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/data/samplers/distributed.h(96): warning C4251: “torch::data::samplers::DistributedRandomSampler::all_indices_”: class“std::vector<T,std::allocator<_Ty>>”需要有 dll 接口由 class“torch::data::samplers::DistributedRandomSampler”的客户端使用
with
[
T=size_t,
_Ty=size_t
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/data/samplers/distributed.h(129): warning C4251: “torch::data::samplers::DistributedSequentialSampler::all_indices_”: class“std::vector<T,std::allocator<_Ty>>”需要有 dll 接口由 class“torch::data::samplers::DistributedSequentialSampler”的客户端使用
with
[
T=size_t,
_Ty=size_t
]
e:\anaconda\envs\torchwithsparse\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<torch::jit::script::Module>” 需要有 dll 接口由 class“torch::serialize::InputArchive”的客户端使用
e:\anaconda\envs\torchwithsparse\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<torch::jit::script::Module> ”需要有 dll 接口由 class“torch::serialize::OutputArchive”的客户端使用
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/lexer.h(382): warning C4267: “参数”: 从“size_t”转换到“int”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/lexer.h(458): warning C4267: “初始化”: 从“size_t”转换到“int”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/argument_spec.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
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/argument_spec.h(201): warning C4267: “初始化”: 从“size_t”转换到“int32_t”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/argument_spec.h(204): warning C4267: “初始化”: 从“size_t”转换到“int32_t”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/ArrayRef.h(144): warning C4267: “初始化”: 从“size_t”转换到“const int32_t”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/argument_spec.h(209): warning C4244: “+=”: 从“int64_t”转换到“int32_t”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/argument_spec.h(229): warning C4244: “+=”: 从“int64_t”转换到“int32_t”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/argument_spec.h(293): warning C4800: “const unsigned int”: 将值强制为布尔值“true”或“false”(性能警告)
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/argument_spec.h(391): warning C4267: “参数”: 从“size_t”转换到“const int”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/interpreter.h(44): warning C4251: “torch::jit::Code::pImpl”: class“std::shared_ptr<torch::jit::CodeImpl>”需要有 dll 接口由 struct“torch::jit::Code”的客 户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/graph_executor.h(41): warning C4251: “torch::jit::GraphExecutor::pImpl”: class“std::shared_ptr<torch::jit::GraphExecutorImpl>”需要有 dll 接口由 struct“torch::jit::GraphExecutor”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/compilation_unit.h(160): warning C4251: “torch::jit::script::Function::name_”: class“std::basic_string<char,std::char_traits<char>,std::allocator<char>>”需要有 dll 接口由 struct“torch::jit::script::Function”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/compilation_unit.h(161): warning C4251: “torch::jit::script::Function::graph_”: class“std::shared_ptr<torch::jit::Graph>”需要有 dll 接口由 struct“torch::jit::script::Function”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/compilation_unit.h(166): warning C4251: “torch::jit::script::Function::executor_init_”: struct“std::once_flag”需要有 dll 接口由 struct“torch::jit::script::Function”的客户端使用
E:\program files\C#\VC\INCLUDE\mutex(397): note: 参见“std::once_flag”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/compilation_unit.h(171): warning C4251: “torch::jit::script::Function::function_creator_”: class“std::function<void (torch::jit::script::Function &)>”需要有 dll 接口由 struct“torch::jit::script::Function”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/compilation_unit.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
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/compilation_unit.h(266): warning C4251: “torch::jit::script::CompilationUnit::functions_”: class“std::vector<std::shared_ptr<torch::jit::script::Function>,std::allocator<_Ty>>”需要有 dll 接口由 struct“torch::jit::script::CompilationUnit”的客户端使用
with
[
_Ty=std::shared_ptr<torch::jit::script::Function>
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/compilation_unit.h(268): warning C4251: “torch::jit::script::CompilationUnit::dict_”: class“std::unordered_map<std::string,size_t,std::hash<std::string>,std::equal_to<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>”需要有 dll 接口由 struct“torch::jit::script::CompilationUnit”的客户端使用
with
[
_Kty=std::string,
_Ty=size_t
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(123): warning C4251: “torch::jit::script::Method::function_”: class“std::shared_ptr<torch::jit::script::Function>”需要有 dll 接口由 struct“torch::jit::script::Method”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(127): warning C4251: “torch::jit::script::Method::initial_ivalues_”: class“std::vector<torch::jit::script::Slot,std::allocator<_Ty>>”需要有 dll 接口由 struct“torch::jit::script::Method”的客户端使用
with
[
_Ty=torch::jit::script::Slot
]
e:\anaconda\envs\torchwithsparse\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”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/function_schema.h(96): note: 参见“c10::FunctionSchema”的声明
e:\anaconda\envs\torchwithsparse\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<torch::jit::script::Module>,std::allocator<_Ty>>”需要有 dll 接口由 struct“torch::jit::script::Module”的客户端使用
with
[
_Ty=std::shared_ptr<torch::jit::script::Module>
]
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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::string>,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
]
e:\anaconda\envs\torchwithsparse\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<char>,std::allocator<char>>”需要 有 dll 接口由 struct“torch::jit::script::Module”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(551): warning C4251: “torch::jit::script::Module::module_value_”: class“c10::intrusive_ptr<c10::ivalue::Object,c10::detail::intrusive_target_default_null_type<TTarget>>”需要有 dll 接口由 struct“torch::jit::script::Module”的客户端使用
with
[
TTarget=c10::ivalue::Object
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(566): warning C4251: “torch::jit::script::Module::create_method_guard_”: class“std::recursive_mutex”需要有 dll 接口由 struct“torch::jit::script::Module”的客户端使用
E:\program files\C#\VC\INCLUDE\mutex(89): note: 参见“std::recursive_mutex”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/sugared_value.h(25): warning C4251: “std::enable_shared_from_this<torch::jit::script::SugaredValue>::_Wptr”: class“std::weak_ptr<_Ty>”需要有 dll 接口由 class“std::enable_shared_from_this<torch::jit::script::SugaredValue>”的客户端使用
with
[
_Ty=torch::jit::script::SugaredValue
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/sugared_value.h(156): warning C4251: “torch::jit::script::BuiltinFunction::self”: class“c10::optional<torch::jit::NamedValue>”需要有 dll 接口由 struct“torch::jit::script::BuiltinFunction”的客户端使用
e:\anaconda\envs\torchwithsparse\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<char>,std::allocator<char>>”需要有 dll 接口由 struct“torch::jit::script::BuiltinModule”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/sugared_value.h(188): warning C4251: “torch::jit::script::BuiltinModule::version”: class“c10::optional<int64_t>”需要有 dll 接口由 struct“torch::jit::script::BuiltinModule”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/sugared_value.h(214): warning C4251: “torch::jit::script::ClassValue::type_”: class“std::shared_ptr<c10::ClassType>”需要有 dll 接口由 struct“torch::jit::script::ClassValue”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/sugared_value.h(282): warning C4251: “torch::jit::script::CastValue::type_”: class“std::shared_ptr<c10::Type>”需要有 dll 接口由 struct“torch::jit::script::CastValue”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/sugared_value.h(338): warning C4251: “torch::jit::script::ClassNewMethod::type_”: class“std::shared_ptr<c10::ClassType>”需要有 dll 接口由 struct“torch::jit::script::ClassNewMethod”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/module.h(62): warning C4251: “std::enable_shared_from_this<torch::nn::Module>::_Wptr”: class“std::weak_ptr<_Ty>”需要有 dll 接口由 class“std::enable_shared_from_this<torch::nn::Module>”的客户端使用
with
[
_Ty=torch::nn::Module
]
e:\anaconda\envs\torchwithsparse\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”的客户端使用
e:\anaconda\envs\torchwithsparse\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”的客户端使用
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/module.h(523): warning C4251: “torch::nn::Module::name_”: class“c10::optional<std::string>”需要有 dll 接口由 class“torch::nn::Module”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/conv.h(111): warning C4251: “torch::nn::ConvImpl<0x01,torch::nn::Conv1dImpl>::options”: struct“torch::nn::ConvOptions<0x01>”需要 有 dll 接口由 class“torch::nn::ConvImpl<0x01,torch::nn::Conv1dImpl>”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/conv.h(131): warning C4251: “torch::nn::ConvImpl<0x02,torch::nn::Conv2dImpl>::options”: struct“torch::nn::ConvOptions<0x02>”需要 有 dll 接口由 class“torch::nn::ConvImpl<0x02,torch::nn::Conv2dImpl>”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/conv.h(151): warning C4251: “torch::nn::ConvImpl<0x03,torch::nn::Conv3dImpl>::options”: struct“torch::nn::ConvOptions<0x03>”需要 有 dll 接口由 class“torch::nn::ConvImpl<0x03,torch::nn::Conv3dImpl>”的客户端使用
e:\anaconda\envs\torchwithsparse\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”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(177): warning C4251: “torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>::w_ih”: class“std::vector<at::Tensor,std::allocator<_Ty>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>”的客户端使用
with
[
_Ty=at::Tensor
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(177): warning C4251: “torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>::w_hh”: class“std::vector<at::Tensor,std::allocator<_Ty>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>”的客户端使用
with
[
_Ty=at::Tensor
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(177): warning C4251: “torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>::b_ih”: class“std::vector<at::Tensor,std::allocator<_Ty>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>”的客户端使用
with
[
_Ty=at::Tensor
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(177): warning C4251: “torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>::b_hh”: class“std::vector<at::Tensor,std::allocator<_Ty>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>”的客户端使用
with
[
_Ty=at::Tensor
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(177): warning C4251: “torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>::cudnn_mode_”: class“c10::optional<torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>::CuDNNMode>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(177): warning C4251: “torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>::flat_weights_”: class“std::vector<at::Tensor,std::allocator<_Ty>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>”的客户端使用
with
[
_Ty=at::Tensor
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(208): warning C4251: “torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>::w_ih”: class“std::vector<at::Tensor,std::allocator<_Ty>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>”的客户端使用
with
[
_Ty=at::Tensor
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(208): warning C4251: “torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>::w_hh”: class“std::vector<at::Tensor,std::allocator<_Ty>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>”的客户端使用
with
[
_Ty=at::Tensor
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(208): warning C4251: “torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>::b_ih”: class“std::vector<at::Tensor,std::allocator<_Ty>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>”的客户端使用
with
[
_Ty=at::Tensor
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(208): warning C4251: “torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>::b_hh”: class“std::vector<at::Tensor,std::allocator<_Ty>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>”的客户端使用
with
[
_Ty=at::Tensor
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(208): warning C4251: “torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>::cudnn_mode_”: class“c10::optional<torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>::CuDNNMode>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(208): warning C4251: “torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>::flat_weights_”: class“std::vector<at::Tensor,std::allocator<_Ty>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>”的客户端使用
with
[
_Ty=at::Tensor
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(234): warning C4251: “torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>::w_ih”: class“std::vector<at::Tensor,std::allocator<_Ty>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>”的客户端使用
with
[
_Ty=at::Tensor
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(234): warning C4251: “torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>::w_hh”: class“std::vector<at::Tensor,std::allocator<_Ty>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>”的客户端使用
with
[
_Ty=at::Tensor
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(234): warning C4251: “torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>::b_ih”: class“std::vector<at::Tensor,std::allocator<_Ty>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>”的客户端使用
with
[
_Ty=at::Tensor
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(234): warning C4251: “torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>::b_hh”: class“std::vector<at::Tensor,std::allocator<_Ty>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>”的客户端使用
with
[
_Ty=at::Tensor
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(234): warning C4251: “torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>::cudnn_mode_”: class“c10::optional<torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>::CuDNNMode>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(234): warning C4251: “torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>::flat_weights_”: class“std::vector<at::Tensor,std::allocator<_Ty>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>”的客户端使用
with
[
_Ty=at::Tensor
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/sequential.h(354): error C2580: “torch::nn::SequentialImpl::SequentialImpl(void)”: 不允许使用多个版本的有默认特殊成员函数
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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”的基
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/optimizer.h(100): note: 参见“torch::optim::Optimizer”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/adagrad.h(28): note: 参见“torch::optim::Adagrad”的声明
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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”的基
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/optimizer.h(100): note: 参见“torch::optim::Optimizer”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/adam.h(31): note: 参见“torch::optim::Adam”的声明
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/lbfgs.h(22): warning C4305: “初始化”: 从“double”到“float”截断
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/lbfgs.h(23): warning C4305: “初始化”: 从“double”到“float”截断
e:\anaconda\envs\torchwithsparse\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”的基
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/optimizer.h(110): note: 参见“torch::optim::LossClosureOptimizer”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/lbfgs.h(27): note: 参见“torch::optim::LBFGS”的声明
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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”的基
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/optimizer.h(100): note: 参见“torch::optim::Optimizer”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/rmsprop.h(34): note: 参见“torch::optim::RMSprop”的声明
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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”的基
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/optimizer.h(100): note: 参见“torch::optim::Optimizer”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/sgd.h(31): note: 参见“torch::optim::SGD”的声明
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\pybind11\detail/common.h(71): fatal error C1189: #error: pybind11 requires MSVC 2015 update 3 or newer
error: command 'E:\\program files\\C#\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Failed building wheel for torch-scatter
Running setup.py clean for torch-scatter
Failed to build torch-scatter
Installing collected packages: torch-scatter
Running setup.py install for torch-scatter ... error
ERROR: Complete output from command 'e:\anaconda\envs\torchwithsparse\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\WANG\\AppData\\Local\\Temp\\pip-install-bkdrkgzk\\torch-scatter\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\WANG\AppData\Local\Temp\pip-record-1lcov4qq\install-record.txt' --single-version-externally-managed --compile:
ERROR: running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\test
copying test\test_backward.py -> build\lib.win-amd64-3.6\test
copying test\test_forward.py -> build\lib.win-amd64-3.6\test
copying test\test_max_min.py -> build\lib.win-amd64-3.6\test
copying test\test_multi_gpu.py -> build\lib.win-amd64-3.6\test
copying test\test_std.py -> build\lib.win-amd64-3.6\test
copying test\utils.py -> build\lib.win-amd64-3.6\test
copying test\__init__.py -> build\lib.win-amd64-3.6\test
creating build\lib.win-amd64-3.6\torch_scatter
copying torch_scatter\add.py -> build\lib.win-amd64-3.6\torch_scatter
copying torch_scatter\div.py -> build\lib.win-amd64-3.6\torch_scatter
copying torch_scatter\max.py -> build\lib.win-amd64-3.6\torch_scatter
copying torch_scatter\mean.py -> build\lib.win-amd64-3.6\torch_scatter
copying torch_scatter\min.py -> build\lib.win-amd64-3.6\torch_scatter
copying torch_scatter\mul.py -> build\lib.win-amd64-3.6\torch_scatter
copying torch_scatter\std.py -> build\lib.win-amd64-3.6\torch_scatter
copying torch_scatter\sub.py -> build\lib.win-amd64-3.6\torch_scatter
copying torch_scatter\__init__.py -> build\lib.win-amd64-3.6\torch_scatter
creating build\lib.win-amd64-3.6\torch_scatter\utils
copying torch_scatter\utils\ext.py -> build\lib.win-amd64-3.6\torch_scatter\utils
copying torch_scatter\utils\gen.py -> build\lib.win-amd64-3.6\torch_scatter\utils
copying torch_scatter\utils\__init__.py -> build\lib.win-amd64-3.6\torch_scatter\utils
running build_ext
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\utils\cpp_extension.py:184: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。
warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error))
building 'torch_scatter.scatter_cpu' extension
creating build\temp.win-amd64-3.6
creating build\temp.win-amd64-3.6\Release
creating build\temp.win-amd64-3.6\Release\cpu
E:\program files\C#\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ie:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include -Ie:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include -Ie:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\TH -Ie:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\THC -Ie:\anaconda\envs\torchwithsparse\include -Ie:\anaconda\envs\torchwithsparse\include "-IE:\program files\C#\VC\INCLUDE" "-IE:\program files\C#\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10150.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\\winrt" /EHsc /Tpcpu/scatter.cpp /Fobuild\temp.win-amd64-3.6\Release\cpu/scatter.obj -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=scatter_cpu -D_GLIBCXX_USE_CXX11_ABI=0 /MD
scatter.cpp
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Exception.h(27): warning C4275: 非 dll 接 口 class“std::exception”用作 dll 接口 class“c10::Error”的基
E:\program files\C#\VC\INCLUDE\vcruntime_exception.h(43): note: 参见“std::exception”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Exception.h(27): note: 参见“c10::Error” 的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Exception.h(28): warning C4251: “c10::Error::msg_stack_”: class“std::vector<std::string,std::allocator<_Ty>>”需要有 dll 接口由 class“c10::Error”的客户端使用
with
[
_Ty=std::string
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Exception.h(29): warning C4251: “c10::Error::backtrace_”: class“std::basic_string<char,std::char_traits<char>,std::allocator<char>>”需要有 dll 接口由 class“c10::Error”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Exception.h(34): warning C4251: “c10::Error::msg_”: class“std::basic_string<char,std::char_traits<char>,std::allocator<char>>”需要有 dll 接口由 class“c10::Error”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Exception.h(35): warning C4251: “c10::Error::msg_without_backtrace_”: class“std::basic_string<char,std::char_traits<char>,std::allocator<char>>”需要有 dll 接 口由 class“c10::Error”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/Allocator.h(21): warning C4251: “c10::DataPtr::ptr_”: class“c10::detail::UniqueVoidPtr”需要有 dll 接口由 class“c10::DataPtr”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/UniqueVoidPtr.h(38): note: 参见“c10::detail::UniqueVoidPtr”的声明
e:\anaconda\envs\torchwithsparse\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”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorTypeIdRegistration.h(32): warning C4251: “c10::TensorTypeIdCreator::last_id_”: struct“std::atomic<unsigned char>”需要有 dll 接口由 class“c10::TensorTypeIdCreator”的客户端使用
E:\program files\C#\VC\INCLUDE\xxatomic(168): note: 参见“std::atomic<unsigned char>”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorTypeIdRegistration.h(45): warning C4251: “c10::TensorTypeIdRegistry::registeredTypeIds_”: class“std::unordered_set<c10::TensorTypeId,std::hash<c10::TensorTypeId>,std::equal_to<_Kty>,std::allocator<_Kty>>”需要有 dll 接口由 class“c10::TensorTypeIdRegistry”的客户端使用
with
[
_Kty=c10::TensorTypeId
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorTypeIdRegistration.h(46): warning C4251: “c10::TensorTypeIdRegistry::mutex_”: class“std::mutex”需要有 dll 接口由 class“c10::TensorTypeIdRegistry”的客 户端使用
E:\program files\C#\VC\INCLUDE\mutex(76): note: 参见“std::mutex”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Half-inl.h(168): warning C4244: “参数”: 从“int”转换到“float”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Half-inl.h(171): warning C4244: “参数”: 从“int”转换到“float”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Half-inl.h(174): warning C4244: “参数”: 从“int”转换到“float”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Half-inl.h(177): warning C4244: “参数”: 从“int”转换到“float”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Half-inl.h(181): warning C4244: “参数”: 从“int”转换到“float”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Half-inl.h(184): warning C4244: “参数”: 从“int”转换到“float”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Half-inl.h(187): warning C4244: “参数”: 从“int”转换到“float”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Half-inl.h(190): warning C4244: “参数”: 从“int”转换到“float”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Half-inl.h(196): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Half-inl.h(199): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Half-inl.h(202): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Half-inl.h(205): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Half-inl.h(209): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Half-inl.h(212): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Half-inl.h(215): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/Half-inl.h(218): warning C4244: “参数”: 从“int64_t”转换到“float”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(70): error C2134: “caffe2::TypeIdentifier::TypeIdentifier”: 调用不会生成常数表达式
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(70): note: 对未定义的函数或为未声明为“constexpr”的函数的调用导致了故障
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(84): note: 参见“caffe2::TypeIdentifier::TypeIdentifier”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(328): error C2071: “caffe2::TypeMeta::New”: 非法的存储类
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(329): error C2071: “caffe2::TypeMeta::PlacementNew”: 非法的存储类
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(330): error C2071: “caffe2::TypeMeta::Copy”: 非法的存储类
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(331): error C2071: “caffe2::TypeMeta::PlacementDelete”: 非法的存储类
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(332): error C2071: “caffe2::TypeMeta::Delete”: 非法的存储类
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(371): error C2327: “caffe2::TypeMeta::New”: 不是类型名称、静态或枚举数
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(371): error C2143: 语法错误: 缺少“;”(在“*”的前面)
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(371): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(371): error C2126: 不能使用“constexpr”说明符声明“caffe2::TypeMeta::New”
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(371): error C2334: “{”的前面有 ��外标记;跳过明显的函数体
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(377): error C2327: “caffe2::TypeMeta::PlacementNew”: 不是类型名称、静态或枚举数
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(377): error C2143: 语法错误: 缺少“;”(在“*”的前面)
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(377): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(377): error C2126: 不能使用“constexpr”说明符声明“caffe2::TypeMeta::PlacementNew”
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(377): error C2334: “{”的前面有 意外标记;跳过明显的函数体
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(383): error C2327: “caffe2::TypeMeta::Copy”: 不是类型名称、静态或枚举数
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(383): error C2143: 语法错误: 缺少“;”(在“*”的前面)
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(383): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(383): error C2126: 不能使用“constexpr”说明符声明“caffe2::TypeMeta::Copy”
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(383): error C2334: “{”的前面有 意外标记;跳过明显的函数体
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(389): error C2327: “caffe2::TypeMeta::PlacementDelete”: 不是类型名称、静态或枚举数
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(389): error C2143: 语法错误: 缺少“;”(在“*”的前面)
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(389): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(389): error C2126: 不能使用“constexpr”说明符声明“caffe2::TypeMeta::PlacementDelete”
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(389): error C2334: “{”的前面有 意外标记;跳过明显的函数体
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(392): error C2327: “caffe2::TypeMeta::Delete”: 不是类型名称、静态或枚举数
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(392): error C2143: 语法错误: 缺少“;”(在“*”的前面)
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(392): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(392): error C2126: 不能使用“constexpr”说明符声明“caffe2::TypeMeta::Delete”
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(392): error C2334: “{”的前面有 意外标记;跳过明显的函数体
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(355): error C2476: “constexpr” 构造函数不会初始化所有成员
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(328): note: 构造函数未初始化“caffe2::TypeMeta::New”
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(329): note: 构造函数未初始化“caffe2::TypeMeta::PlacementNew”
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(330): note: 构造函数未初始化“caffe2::TypeMeta::Copy”
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(331): note: 构造函数未初始化“caffe2::TypeMeta::PlacementDelete”
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/typeid.h(332): note: 构造函数未初始化“caffe2::TypeMeta::Delete”
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorOptions.h(526): error C2338: TensorOptions must fit in 128-bits
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/intrusive_ptr.h(58): warning C4251: “c10::intrusive_ptr_target::refcount_”: struct“std::atomic<unsigned __int64>”需要有 dll 接口由 class“c10::intrusive_ptr_target”的客户端使用
E:\program files\C#\VC\INCLUDE\xxatomic(168): note: 参见“std::atomic<unsigned __int64>”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/intrusive_ptr.h(59): warning C4251: “c10::intrusive_ptr_target::weakcount_”: struct“std::atomic<unsigned __int64>”需要有 dll 接口由 class“c10::intrusive_ptr_target”的客户端使用
E:\program files\C#\VC\INCLUDE\xxatomic(168): note: 参见“std::atomic<unsigned __int64>”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/intrusive_ptr.h(723): warning C4267: “return”: 从“size_t”转换到“uint32_t”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/intrusive_ptr.h(757): warning C4267: “return”: 从“size_t”转换到“uint32_t”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/Storage.h(181): warning C4251: “c10::Storage::storage_impl_”: class“c10::intrusive_ptr<c10::StorageImpl,c10::detail::intrusive_target_default_null_type<TTarget>>”需要有 dll 接口由 struct“c10::Storage”的客户端使用
with
[
TTarget=c10::StorageImpl
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/logging_is_not_google_glog.h(47): warning C4251: “c10::MessageLogger::stream_”: class“std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>”需要有 dll 接口由 class“c10::MessageLogger”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorImpl.h(193): warning C4251: “c10::VariableVersion::version_block_”: class“std::shared_ptr<std::atomic<unsigned int>>”需要有 dll 接口由 struct“c10::VariableVersion”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorImpl.h(1466): warning C4251: “c10::TensorImpl::autograd_meta_”: class“std::unique_ptr<c10::AutogradMetaInterface,std::default_delete<_Ty>>”需要有 dll 接口由 struct“c10::TensorImpl”的客户端使用
with
[
_Ty=c10::AutogradMetaInterface
]
e:\anaconda\envs\torchwithsparse\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”的客户端使用
e:\anaconda\envs\torchwithsparse\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”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorImpl.h(1499): warning C4251: “c10::TensorImpl::device_opt_”: class“c10::optional<c10::Device>”需要有 dll 接口由 struct“c10::TensorImpl”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorImpl.h(1018): warning C4244: “参数 ”: 从“float”转换到“const size_t”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorImpl.h(1024): error C2039: “copy”: 不是“caffe2::TypeMeta”的成员
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/DefaultDtype.h(6): note: 参见“caffe2::TypeMeta”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorImpl.h(1028): error C2039: “copy”: 不是“caffe2::TypeMeta”的成员
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/DefaultDtype.h(6): note: 参见“caffe2::TypeMeta”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorImpl.h(1258): error C2039: “placementDelete”: 不是“caffe2::TypeMeta”的成员
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/DefaultDtype.h(6): note: 参见“caffe2::TypeMeta”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorImpl.h(1274): error C2039: “placementNew”: 不是“caffe2::TypeMeta”的成员
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/DefaultDtype.h(6): note: 参见“caffe2::TypeMeta”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorImpl.h(1287): error C2039: “placementNew”: 不是“caffe2::TypeMeta”的成员
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/DefaultDtype.h(6): note: 参见“caffe2::TypeMeta”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorImpl.h(1292): error C2039: “placementDelete”: 不是“caffe2::TypeMeta”的成员
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/DefaultDtype.h(6): note: 参见“caffe2::TypeMeta”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorImpl.h(1295): error C3536: “dtor”: 初始化之前无法使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorImpl.h(1295): error C2664: “c10::DataPtr c10::PlacementDeleteContext::makeDataPtr(c10::DataPtr &&,c10::PlacementDtor,size_t,c10::Device)”: 无法将参数 2 从“int”转换为“c10::PlacementDtor”
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorImpl.h(1295): note: 从整型转换为指针类型要求 reinterpret_cast、C 样式转换或函数样式转换
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorImpl.h(1296): error C2039: “placementNew”: 不是“caffe2::TypeMeta”的成员
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/DefaultDtype.h(6): note: 参见“caffe2::TypeMeta”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorImpl.h(1416): warning C4244: “初始 化”: 从“int64_t”转换到“int”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/TensorImpl.h(1584): error C2338: You changed the size of TensorImpl on 64-bit arch.See Note [TensorImpl size constraints] on how to proceed.
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/LegacyTypeDispatch.h(38): error C2071: “at::LegacyTypeDeleter::TypeDeleterFun”: 非法的存储类
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/LegacyTypeDispatch.h(39): error C2327: “at::LegacyTypeDeleter::TypeDeleterFun”: 不是类型名称、静态或枚举数
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/LegacyTypeDispatch.h(39): error C2143: 语法错误: 缺少“;”(在“*”的前面)
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/LegacyTypeDispatch.h(39): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/LegacyTypeDispatch.h(39): error C2238: 意外的标记位于“;”之前
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/LegacyTypeDispatch.h(41): error C2327: “at::LegacyTypeDeleter::TypeDeleterFun”: 不是类型名称、静态或枚举数
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/LegacyTypeDispatch.h(41): error C2061: 语法错误: 标识符“TypeDeleterFun”
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/LegacyTypeDispatch.h(41): error C2535: “at::LegacyTypeDeleter::LegacyTypeDeleter(void)”: 已经定义或声明成员函数
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/LegacyTypeDispatch.h(40): note: 参见“at::LegacyTypeDeleter::LegacyTypeDeleter”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/LegacyTypeDispatch.h(41): error C2065: “fn”: 未声明的标识符
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/LegacyTypeDispatch.h(41): error C2614: “at::LegacyTypeDeleter”: 非法的成员初始化:“fn_”不是基或成员
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/LegacyTypeDispatch.h(43): error C2065: “fn_”: 未声明的标识符
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/LegacyTypeDispatch.h(44): error C2065: “fn_”: 未声明的标识符
e:\anaconda\envs\torchwithsparse\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”的客户端使用
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/Tensor.h(774): warning C4522: “at::Tensor”: 指定了多个赋值运算符
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/Tensor.h(801): warning C4251: “at::WeakTensor::weak_impl_”: class“c10::weak_intrusive_ptr<TTarget,NullType>”需要有 dll 接口由 struct“at::WeakTensor”的客户 端使用
with
[
TTarget=c10::TensorImpl,
NullType=c10::UndefinedTensorImpl
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/LegacyTHDispatch.h(49): error C2071: “at::LegacyTHDispatcherDeleter::LegacyTHDispatcherDeleterFun”: 非法的存储类
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/LegacyTHDispatch.h(50): error C2327: “at::LegacyTHDispatcherDeleter::LegacyTHDispatcherDeleterFun”: 不是类型名称、静态或枚举数
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/LegacyTHDispatch.h(50): error C2143: 语法错误: 缺少“;”(在“*”的前面)
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/LegacyTHDispatch.h(50): error C4430: 缺少类型 说明符 - 假定为 int。注意: C++ 不支持默认 int
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/LegacyTHDispatch.h(50): error C2238: 意外的标 记位于“;”之前
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/LegacyTHDispatch.h(52): error C2327: “at::LegacyTHDispatcherDeleter::LegacyTHDispatcherDeleterFun”: 不是类型名称、静态或枚举数
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/LegacyTHDispatch.h(52): error C2061: 语法错误: 标识符“LegacyTHDispatcherDeleterFun”
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/LegacyTHDispatch.h(52): error C2535: “at::LegacyTHDispatcherDeleter::LegacyTHDispatcherDeleter(void)”: 已经定义或声明成员函数
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/LegacyTHDispatch.h(51): note: 参见“at::LegacyTHDispatcherDeleter::LegacyTHDispatcherDeleter”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/LegacyTHDispatch.h(52): error C2065: “fn”: 未声明的标识符
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/LegacyTHDispatch.h(52): error C2614: “at::LegacyTHDispatcherDeleter”: 非法的成员初始化:“fn_”不是基或成员
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/LegacyTHDispatch.h(54): error C2065: “fn_”: 未声明的标识符
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/LegacyTHDispatch.h(55): error C2065: “fn_”: 未声明的标识符
e:\anaconda\envs\torchwithsparse\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”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/Stream.h(126): warning C4244: “参数”: 从“unsigned __int64”转换到“c10::DeviceIndex”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/Stream.h(126): warning C4244: “参数”: 从“unsigned __int64”转换到“c10::StreamId”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/impl/DeviceGuardImplInterface.h(137): warning C4800: “const c10::impl::DeviceGuardImplInterface *”: 将值强制为布尔值“true”或“false”(性能警告)
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/Context.h(151): warning C4251: “at::Context::thc_init”: struct“std::once_flag”需要有 dll 接口由 class“at::Context”的客户端使用
E:\program files\C#\VC\INCLUDE\mutex(397): note: 参见“std::once_flag”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/Context.h(152): warning C4251: “at::Context::thh_init”: struct“std::once_flag”需要有 dll 接口由 class“at::Context”的客户端使用
E:\program files\C#\VC\INCLUDE\mutex(397): note: 参见“std::once_flag”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/Context.h(153): warning C4251: “at::Context::complex_init_”: struct“std::once_flag”需要有 dll 接口由 class“at::Context”的客户端使用
E:\program files\C#\VC\INCLUDE\mutex(397): note: 参见“std::once_flag”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/Context.h(157): warning C4251: “at::Context::next_id”: struct“std::atomic<unsigned __int64>”需要有 dll 接口由 class“at::Context”的客户端使用
E:\program files\C#\VC\INCLUDE\xxatomic(168): note: 参见“std::atomic<unsigned __int64>”的声明
e:\anaconda\envs\torchwithsparse\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”的客户端使用
e:\anaconda\envs\torchwithsparse\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”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/Context.h(52): error C2440: “<function-style-cast>”: 无法从“at::Context::registerType::<lambda_1fc99ff75cd149d173424b282353a33b>”转换为“at::LegacyTypeDeleter”
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/Context.h(52): note: 无构造函数可以接受源类型 ,或构造函数重载决策不明确
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/Context.h(57): error C2440: “<function-style-cast>”: 无法从“at::Context::registerLegacyTHDispatcher::<lambda_b06be8ac5025571199e3700984197321>”转换为“at::LegacyTHDispatcherDeleter”
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/Context.h(57): note: 无构造函数可以接受源类型 ,或构造函数重载决策不明确
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/utils/hash.h(70): error C2995: “unknown-type torch::_hash_detail::dispatch_hash(const T &)”: 函数模板已经定义
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/utils/hash.h(57): note: 参见“torch::_hash_detail::dispatch_hash”的声明
e:\anaconda\envs\torchwithsparse\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<char>,std::allocator<char>>”需要有 dll 接口由 struct“torch::autograd::Variable::AutogradMeta”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/autograd/variable.h(334): warning C4251: “torch::autograd::Variable::AutogradMeta::grad_fn_”: class“std::shared_ptr<torch::autograd::Function>”需要有 dll 接口由 struct“torch::autograd::Variable::AutogradMeta”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/autograd/variable.h(335): warning C4251: “torch::autograd::Variable::AutogradMeta::grad_accumulator_”: class“std::weak_ptr<torch::autograd::Function>”需要有 dll 接口由 struct“torch::autograd::Variable::AutogradMeta”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/autograd/variable.h(337): warning C4251: “torch::autograd::Variable::AutogradMeta::hooks_”: class“std::vector<std::shared_ptr<torch::autograd::FunctionPreHook>,std::allocator<_Ty>>”需要有 dll 接口由 struct“torch::autograd::Variable::AutogradMeta”的客户端使用
with
[
_Ty=std::shared_ptr<torch::autograd::FunctionPreHook>
]
e:\anaconda\envs\torchwithsparse\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”的客户端使用
E:\program files\C#\VC\INCLUDE\mutex(76): note: 参见“std::mutex”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/blob.h(191): error C2039: “deleteFn”: 不是“caffe2::TypeMeta”的成员
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/core/DefaultDtype.h(6): note: 参见“caffe2::TypeMeta”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(27): warning C4251: “c10::ivalue::ConstantString::str_”: class“std::basic_string<char,std::char_traits<char>,std::allocator<char>>”需要有 dll 接口由 struct“c10::ivalue::ConstantString”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(46): warning C4251: “c10::ivalue::List<Elem>::elements_”: class“std::vector<T,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::ivalue::List<Elem>”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(72): note: 参见对正在编译的类 模板 实例化“c10::ivalue::List<Elem>”的引用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(46): warning C4251: “c10::ivalue::List<c10::IValue>::elements_”: class“std::vector<Elem,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::ivalue::List<c10::IValue>”的客户端使用
with
[
Elem=c10::IValue,
_Ty=c10::IValue
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(87): note: 参见对正在编译的类 模板 实例化“c10::ivalue::List<c10::IValue>”的引用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(560): warning C4275: 非 dll 接口 class“std::exception”用作 dll 接口 struct“c10::ivalue::Future::FutureError”的基
E:\program files\C#\VC\INCLUDE\vcruntime_exception.h(43): note: 参见“std::exception”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(560): note: 参见“c10::ivalue::Future::FutureError”的声明
e:\anaconda\envs\torchwithsparse\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<char>,std::allocator<char>>”需要有 dll 接口由 struct“c10::ivalue::Future::FutureError”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(676): warning C4251: “c10::ivalue::Future::mutex_”: class“std::mutex”需要有 dll 接口由 struct“c10::ivalue::Future”的客户端使用
E:\program files\C#\VC\INCLUDE\mutex(76): note: 参见“std::mutex”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(678): warning C4251: “c10::ivalue::Future::completed_”: struct“std::atomic<bool>”需要有 dll 接口由 struct“c10::ivalue::Future”的客户端使用
E:\program files\C#\VC\INCLUDE\xxatomic(168): note: 参见“std::atomic<bool>”的声明
e:\anaconda\envs\torchwithsparse\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)>
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(722): warning C4251: “c10::ivalue::Object::type_”: class“std::shared_ptr<c10::ClassType>”需要有 dll 接口由 struct“c10::ivalue::Object”的客户端使用
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(781): warning C4244: “return”: 从“double”转换到“float”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(783): warning C4244: “return”: 从“int64_t”转换到“unsigned char”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(784): warning C4244: “return”: 从“int64_t”转换到“signed char”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(785): warning C4244: “return”: 从“int64_t”转换到“unsigned short”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(786): warning C4244: “return”: 从“int64_t”转换到“short”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(787): warning C4244: “return”: 从“int64_t”转换到“int”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(788): warning C4244: “return”: 从“int64_t”转换到“uint32_t”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(790): warning C4244: “return”: 从“int64_t”转换到“c10::detail::_guarded_unsigned_long”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(46): warning C4251: “c10::ivalue::List<int64_t>::elements_”: class“std::vector<int64_t,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::ivalue::List<int64_t>”的客户端使用
with
[
_Ty=int64_t
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(859): note: 参见对正在编译的类 模板 实例化“c10::ivalue::List<int64_t>”的引用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(46): warning C4251: “c10::ivalue::List<double>::elements_”: class“std::vector<T,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::ivalue::List<double>”的客户端使用
with
[
T=double,
_Ty=double
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(873): note: 参见对正在编译的类 模板 实例化“c10::ivalue::List<double>”的引用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(46): warning C4251: “c10::ivalue::List<bool>::elements_”: class“std::vector<bool,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::ivalue::List<bool>”的客户端使用
with
[
_Ty=bool
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(880): note: 参见对正在编译的类 模板 实例化“c10::ivalue::List<bool>”的引用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(46): warning C4251: “c10::ivalue::List<at::Tensor>::elements_”: class“std::vector<at::Tensor,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::ivalue::List<at::Tensor>”的客户端使用
with
[
_Ty=at::Tensor
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(887): note: 参见对正在编译的类 模板 实例化“c10::ivalue::List<at::Tensor>”的引用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/ivalue.h(1003): warning C4244: “参数”: 从“int64_t”转换到“const int”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(66): warning C4251: “std::enable_shared_from_this<c10::Type>::_Wptr”: class“std::weak_ptr<_Ty>”需要有 dll 接口由 class“std::enable_shared_from_this<c10::Type>”的客户端使用
with
[
_Ty=c10::Type
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(227): warning C4251: “c10::SingleElementType<OptionalType,c10::OptionalType>::elem”: class“std::shared_ptr<c10::Type>”需要有 dll 接口由 struct“c10::SingleElementType<OptionalType,c10::OptionalType>”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(477): warning C4251: “c10::VaryingShape::size_”: class“c10::optional<size_t>”需要有 dll 接口由 struct“c10::VaryingShape”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(478): warning C4251: “c10::VaryingShape::dims_”: class“std::vector<c10::optional<int64_t>,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::VaryingShape”的客户端使用
with
[
_Ty=c10::optional<int64_t>
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(571): warning C4251: “c10::ProfiledTensorType::scalar_type_”: class“c10::optional<c10::ScalarType>”需要有 dll 接口由 struct“c10::ProfiledTensorType”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(572): warning C4251: “c10::ProfiledTensorType::device_”: class“c10::optional<c10::Device>”需要有 dll 接口由 struct“c10::ProfiledTensorType”的客 户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(575): warning C4251: “c10::ProfiledTensorType::requires_grad_”: class“c10::optional<bool>”需要有 dll 接口由 struct“c10::ProfiledTensorType”的客 户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(533): warning C4267: “参数”: 从“size_t”转换到“int”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(537): warning C4267: “参数”: 从“size_t”转换到“int”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(682): warning C4251: “c10::CompleteTensorType::sizes_”: class“std::vector<int64_t,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::CompleteTensorType”的客户端使用
with
[
_Ty=int64_t
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(683): warning C4251: “c10::CompleteTensorType::strides_”: class“std::vector<int64_t,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::CompleteTensorType”的客户端使用
with
[
_Ty=int64_t
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(688): warning C4251: “c10::SingleElementType<ListType,c10::ListType>::elem”: class“std::shared_ptr<c10::Type>”需要有 dll 接口由 struct“c10::SingleElementType<ListType,c10::ListType>”的客户端使用
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(808): warning C4251: “c10::SingleElementType<FutureType,c10::FutureType>::elem”: class“std::shared_ptr<c10::Type>”需要有 dll 接口由 struct“c10::SingleElementType<FutureType,c10::FutureType>”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(941): warning C4251: “c10::TupleType::elements_”: class“std::vector<c10::TypePtr,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::TupleType”的客户端使用
with
[
_Ty=c10::TypePtr
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.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
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(1450): warning C4251: “c10::ClassType::qualifiedName_”: class“std::basic_string<char,std::char_traits<char>,std::allocator<char>>”需要有 dll 接口 由 struct“c10::ClassType”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(1454): warning C4251: “c10::ClassType::qualifier_”: class“std::basic_string<char,std::char_traits<char>,std::allocator<char>>”需要有 dll 接口由 struct“c10::ClassType”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(1456): warning C4251: “c10::ClassType::basename_”: class“std::basic_string<char,std::char_traits<char>,std::allocator<char>>”需要有 dll 接口由 struct“c10::ClassType”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(1464): warning C4251: “c10::ClassType::attributeNames_”: class“std::vector<std::string,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::ClassType”的客户端使用
with
[
_Ty=std::string
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(1465): warning C4251: “c10::ClassType::attributeTypes_”: class“std::vector<c10::TypePtr,std::allocator<_Ty>>”需要有 dll 接口由 struct“c10::ClassType”的客户端使用
with
[
_Ty=c10::TypePtr
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/jit_type.h(1467): warning C4251: “c10::ClassType::compilation_unit_”: class“std::shared_ptr<torch::jit::script::CompilationUnit>”需要有 dll 接口由 struct“c10::ClassType”的客户端使用
e:\anaconda\envs\torchwithsparse\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<TTarget>>”需要有 dll 接口由 struct“torch::jit::Scope”的客户端使用
with
[
TTarget=torch::jit::Scope
]
e:\anaconda\envs\torchwithsparse\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”的基
E:\program files\C#\VC\INCLUDE\stdexcept(166): note: 参见“std::runtime_error”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/constants.h(20): note: 参见“torch::jit::constant_not_supported_error”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/attributes.h(87): warning C4275: 非 dll 接口 struct“torch::jit::AttributeValue”用作 dll 接口 struct“torch::jit::GraphAttr”的基
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/attributes.h(25): note: 参见“torch::jit::AttributeValue”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/attributes.h(87): note: 参见“torch::jit::GraphAttr”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/attributes.h(101): warning C4251: “torch::jit::GraphAttr::value_”: class“std::shared_ptr<torch::jit::Graph>”需要有 dll 接口由 struct“torch::jit::GraphAttr”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/attributes.h(104): warning C4275: 非 dll 接口 struct“torch::jit::AttributeValue”用作 dll 接口 struct“torch::jit::GraphsAttr”的基
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/attributes.h(25): note: 参见“torch::jit::AttributeValue”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/attributes.h(104): note: 参见“torch::jit::GraphsAttr”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/attributes.h(118): warning C4251: “torch::jit::GraphsAttr::value_”: class“std::vector<std::shared_ptr<torch::jit::Graph>,std::allocator<_Ty>>”需要有 dll 接口由 struct“torch::jit::GraphsAttr”的客户端使用
with
[
_Ty=std::shared_ptr<torch::jit::Graph>
]
e:\anaconda\envs\torchwithsparse\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 *
]
e:\anaconda\envs\torchwithsparse\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 *
]
e:\anaconda\envs\torchwithsparse\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 *
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/ir.h(252): warning C4251: “torch::jit::Node::source_location_”: class“std::shared_ptr<torch::jit::SourceLocation>”需要有 dll 接口由 struct“torch::jit::Node”的客户端使用
e:\anaconda\envs\torchwithsparse\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<TTarget>>”需要有 dll 接口由 struct“torch::jit::Node”的客户端使用
with
[
TTarget=torch::jit::Scope
]
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/ir.h(1243): error C4579: 'torch::jit::ProfileOp::Kind': in-class initialization for type 'const c10::Symbol' is not yet implemented; static member will remain uninitialized at runtime but use in constant-expressions is supported
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/tracing_state.h(30): warning C4251: “std::enable_shared_from_this<torch::jit::tracer::TracingState>::_Wptr”: class“std::weak_ptr<_Ty>”需要有 dll 接口由 class“std::enable_shared_from_this<torch::jit::tracer::TracingState>”的客户端使用
with
[
_Ty=torch::jit::tracer::TracingState
]
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/tracing_state.h(59): warning C4251: “torch::jit::tracer::TracingState::graph”: class“std::shared_ptr<torch::jit::Graph>”需要有 dll 接口由 struct“torch::jit::tracer::TracingState”的客户端使用
e:\anaconda\envs\torchwithsparse\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”的客户端使用
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/tracer.h(171): warning C4273: “torch::jit::tracer::addInputs”: dll 链接不一致
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/tracer.h(154): note: 参见“addInputs”的前一个定义
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/tracer.h(178): warning C4273: “torch::jit::tracer::addInputs”: dll 链接不一致
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/tracer.h(160): note: 参见“addInputs”的前一个定义
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/data/samplers/distributed.h(96): warning C4251: “torch::data::samplers::DistributedRandomSampler::all_indices_”: class“std::vector<T,std::allocator<_Ty>>”需要有 dll 接口由 class“torch::data::samplers::DistributedRandomSampler”的客户端使用
with
[
T=size_t,
_Ty=size_t
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/data/samplers/distributed.h(129): warning C4251: “torch::data::samplers::DistributedSequentialSampler::all_indices_”: class“std::vector<T,std::allocator<_Ty>>”需要有 dll 接口由 class“torch::data::samplers::DistributedSequentialSampler”的客户端使用
with
[
T=size_t,
_Ty=size_t
]
e:\anaconda\envs\torchwithsparse\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<torch::jit::script::Module> ”需要有 dll 接口由 class“torch::serialize::InputArchive”的客户端使用
e:\anaconda\envs\torchwithsparse\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<torch::jit::script::Module>”需要有 dll 接口由 class“torch::serialize::OutputArchive”的客户端使用
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/lexer.h(382): warning C4267: “参数”: 从“size_t”转换到“int”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/lexer.h(458): warning C4267: “初始化”: 从“size_t”转换到“int”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/argument_spec.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
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/argument_spec.h(201): warning C4267: “初始化”: 从“size_t”转换到“int32_t”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/argument_spec.h(204): warning C4267: “初始化”: 从“size_t”转换到“int32_t”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\c10/util/ArrayRef.h(144): warning C4267: “初始化”: 从“size_t”转换到“const int32_t”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/argument_spec.h(209): warning C4244: “+=”: 从“int64_t”转换到“int32_t”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/argument_spec.h(229): warning C4244: “+=”: 从“int64_t”转换到“int32_t”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/argument_spec.h(293): warning C4800: “const unsigned int”: 将值强制为布尔值“true”或“false”(性能警告)
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/argument_spec.h(391): warning C4267: “参数”: 从“size_t”转换到“const int”,可能丢失数据
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/interpreter.h(44): warning C4251: “torch::jit::Code::pImpl”: class“std::shared_ptr<torch::jit::CodeImpl>”需要有 dll 接口由 struct“torch::jit::Code”的 客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/graph_executor.h(41): warning C4251: “torch::jit::GraphExecutor::pImpl”: class“std::shared_ptr<torch::jit::GraphExecutorImpl>”需要有 dll 接口由 struct“torch::jit::GraphExecutor”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/compilation_unit.h(160): warning C4251: “torch::jit::script::Function::name_”: class“std::basic_string<char,std::char_traits<char>,std::allocator<char>>”需要有 dll 接口由 struct“torch::jit::script::Function”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/compilation_unit.h(161): warning C4251: “torch::jit::script::Function::graph_”: class“std::shared_ptr<torch::jit::Graph>”需要有 dll 接口由 struct“torch::jit::script::Function”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/compilation_unit.h(166): warning C4251: “torch::jit::script::Function::executor_init_”: struct“std::once_flag”需要有 dll 接口由 struct“torch::jit::script::Function”的客户端使用
E:\program files\C#\VC\INCLUDE\mutex(397): note: 参见“std::once_flag”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/compilation_unit.h(171): warning C4251: “torch::jit::script::Function::function_creator_”: class“std::function<void (torch::jit::script::Function &)>”需要有 dll 接口由 struct“torch::jit::script::Function”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/compilation_unit.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
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/compilation_unit.h(266): warning C4251: “torch::jit::script::CompilationUnit::functions_”: class“std::vector<std::shared_ptr<torch::jit::script::Function>,std::allocator<_Ty>>”需要有 dll 接口由 struct“torch::jit::script::CompilationUnit”的客户端使用
with
[
_Ty=std::shared_ptr<torch::jit::script::Function>
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/compilation_unit.h(268): warning C4251: “torch::jit::script::CompilationUnit::dict_”: class“std::unordered_map<std::string,size_t,std::hash<std::string>,std::equal_to<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>”需要有 dll 接口由 struct“torch::jit::script::CompilationUnit”的客户端使用
with
[
_Kty=std::string,
_Ty=size_t
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(123): warning C4251: “torch::jit::script::Method::function_”: class“std::shared_ptr<torch::jit::script::Function>”需要有 dll 接口由 struct“torch::jit::script::Method”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(127): warning C4251: “torch::jit::script::Method::initial_ivalues_”: class“std::vector<torch::jit::script::Slot,std::allocator<_Ty>>”需 要有 dll 接口由 struct“torch::jit::script::Method”的客户端使用
with
[
_Ty=torch::jit::script::Slot
]
e:\anaconda\envs\torchwithsparse\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”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\ATen/core/function_schema.h(96): note: 参见“c10::FunctionSchema”的声明
e:\anaconda\envs\torchwithsparse\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<torch::jit::script::Module>,std::allocator<_Ty>>”需要有 dll 接口由 struct“torch::jit::script::Module”的客户端使用
with
[
_Ty=std::shared_ptr<torch::jit::script::Module>
]
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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::string>,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
]
e:\anaconda\envs\torchwithsparse\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<char>,std::allocator<char>>”需要有 dll 接口由 struct“torch::jit::script::Module”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(551): warning C4251: “torch::jit::script::Module::module_value_”: class“c10::intrusive_ptr<c10::ivalue::Object,c10::detail::intrusive_target_default_null_type<TTarget>>”需要有 dll 接口由 struct“torch::jit::script::Module”的客户端使用
with
[
TTarget=c10::ivalue::Object
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/module.h(566): warning C4251: “torch::jit::script::Module::create_method_guard_”: class“std::recursive_mutex”需要有 dll 接口由 struct“torch::jit::script::Module”的客户端使用
E:\program files\C#\VC\INCLUDE\mutex(89): note: 参见“std::recursive_mutex”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/sugared_value.h(25): warning C4251: “std::enable_shared_from_this<torch::jit::script::SugaredValue>::_Wptr”: class“std::weak_ptr<_Ty>”需要有 dll 接口由 class“std::enable_shared_from_this<torch::jit::script::SugaredValue>”的客户端使用
with
[
_Ty=torch::jit::script::SugaredValue
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/sugared_value.h(156): warning C4251: “torch::jit::script::BuiltinFunction::self”: class“c10::optional<torch::jit::NamedValue>”需要有 dll 接口由 struct“torch::jit::script::BuiltinFunction”的客户端使用
e:\anaconda\envs\torchwithsparse\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<char>,std::allocator<char>>”需要有 dll 接口由 struct“torch::jit::script::BuiltinModule”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/sugared_value.h(188): warning C4251: “torch::jit::script::BuiltinModule::version”: class“c10::optional<int64_t>”需要有 dll 接口由 struct“torch::jit::script::BuiltinModule”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/sugared_value.h(214): warning C4251: “torch::jit::script::ClassValue::type_”: class“std::shared_ptr<c10::ClassType>”需要有 dll 接口由 struct“torch::jit::script::ClassValue”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/sugared_value.h(282): warning C4251: “torch::jit::script::CastValue::type_”: class“std::shared_ptr<c10::Type>”需要有 dll 接口由 struct“torch::jit::script::CastValue”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch/csrc/jit/script/sugared_value.h(338): warning C4251: “torch::jit::script::ClassNewMethod::type_”: class“std::shared_ptr<c10::ClassType>”需要有 dll 接口由 struct “torch::jit::script::ClassNewMethod”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/module.h(62): warning C4251: “std::enable_shared_from_this<torch::nn::Module>::_Wptr”: class“std::weak_ptr<_Ty>”需要有 dll 接口由 class“std::enable_shared_from_this<torch::nn::Module>”的客户端使用
with
[
_Ty=torch::nn::Module
]
e:\anaconda\envs\torchwithsparse\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”的客户端使用
e:\anaconda\envs\torchwithsparse\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”的客户端使用
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/module.h(523): warning C4251: “torch::nn::Module::name_”: class“c10::optional<std::string>”需要有 dll 接口由 class“torch::nn::Module”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/conv.h(111): warning C4251: “torch::nn::ConvImpl<0x01,torch::nn::Conv1dImpl>::options”: struct“torch::nn::ConvOptions<0x01>”需 要有 dll 接口由 class“torch::nn::ConvImpl<0x01,torch::nn::Conv1dImpl>”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/conv.h(131): warning C4251: “torch::nn::ConvImpl<0x02,torch::nn::Conv2dImpl>::options”: struct“torch::nn::ConvOptions<0x02>”需 要有 dll 接口由 class“torch::nn::ConvImpl<0x02,torch::nn::Conv2dImpl>”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/conv.h(151): warning C4251: “torch::nn::ConvImpl<0x03,torch::nn::Conv3dImpl>::options”: struct“torch::nn::ConvOptions<0x03>”需 要有 dll 接口由 class“torch::nn::ConvImpl<0x03,torch::nn::Conv3dImpl>”的客户端使用
e:\anaconda\envs\torchwithsparse\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”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(177): warning C4251: “torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>::w_ih”: class“std::vector<at::Tensor,std::allocator<_Ty>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>”的客户端使用
with
[
_Ty=at::Tensor
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(177): warning C4251: “torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>::w_hh”: class“std::vector<at::Tensor,std::allocator<_Ty>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>”的客户端使用
with
[
_Ty=at::Tensor
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(177): warning C4251: “torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>::b_ih”: class“std::vector<at::Tensor,std::allocator<_Ty>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>”的客户端使用
with
[
_Ty=at::Tensor
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(177): warning C4251: “torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>::b_hh”: class“std::vector<at::Tensor,std::allocator<_Ty>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>”的客户端使用
with
[
_Ty=at::Tensor
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(177): warning C4251: “torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>::cudnn_mode_”: class“c10::optional<torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>::CuDNNMode>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(177): warning C4251: “torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>::flat_weights_”: class“std::vector<at::Tensor,std::allocator<_Ty>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>”的客户端使用
with
[
_Ty=at::Tensor
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(208): warning C4251: “torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>::w_ih”: class“std::vector<at::Tensor,std::allocator<_Ty>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>”的客户端使用
with
[
_Ty=at::Tensor
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(208): warning C4251: “torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>::w_hh”: class“std::vector<at::Tensor,std::allocator<_Ty>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>”的客户端使用
with
[
_Ty=at::Tensor
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(208): warning C4251: “torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>::b_ih”: class“std::vector<at::Tensor,std::allocator<_Ty>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>”的客户端使用
with
[
_Ty=at::Tensor
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(208): warning C4251: “torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>::b_hh”: class“std::vector<at::Tensor,std::allocator<_Ty>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>”的客户端使用
with
[
_Ty=at::Tensor
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(208): warning C4251: “torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>::cudnn_mode_”: class“c10::optional<torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>::CuDNNMode>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(208): warning C4251: “torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>::flat_weights_”: class“std::vector<at::Tensor,std::allocator<_Ty>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>”的客户端使用
with
[
_Ty=at::Tensor
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(234): warning C4251: “torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>::w_ih”: class“std::vector<at::Tensor,std::allocator<_Ty>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>”的客户端使用
with
[
_Ty=at::Tensor
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(234): warning C4251: “torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>::w_hh”: class“std::vector<at::Tensor,std::allocator<_Ty>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>”的客户端使用
with
[
_Ty=at::Tensor
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(234): warning C4251: “torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>::b_ih”: class“std::vector<at::Tensor,std::allocator<_Ty>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>”的客户端使用
with
[
_Ty=at::Tensor
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(234): warning C4251: “torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>::b_hh”: class“std::vector<at::Tensor,std::allocator<_Ty>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>”的客户端使用
with
[
_Ty=at::Tensor
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(234): warning C4251: “torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>::cudnn_mode_”: class“c10::optional<torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>::CuDNNMode>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>”的客户端使用
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(234): warning C4251: “torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>::flat_weights_”: class“std::vector<at::Tensor,std::allocator<_Ty>>”需要有 dll 接口由 class“torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>”的客户端使用
with
[
_Ty=at::Tensor
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/sequential.h(354): error C2580: “torch::nn::SequentialImpl::SequentialImpl(void)”: 不允许使用多个版本的有默认特殊成员函数
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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”的基
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/optimizer.h(100): note: 参见“torch::optim::Optimizer”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/adagrad.h(28): note: 参见“torch::optim::Adagrad”的声明
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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”的基
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/optimizer.h(100): note: 参见“torch::optim::Optimizer”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/adam.h(31): note: 参见“torch::optim::Adam”的声明
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/lbfgs.h(22): warning C4305: “初始化”: 从“double”到“float”截断
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/lbfgs.h(23): warning C4305: “初始化”: 从“double”到“float”截断
e:\anaconda\envs\torchwithsparse\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”的基
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/optimizer.h(110): note: 参见“torch::optim::LossClosureOptimizer”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/lbfgs.h(27): note: 参见“torch::optim::LBFGS”的声明
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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”的基
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/optimizer.h(100): note: 参见“torch::optim::Optimizer”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/rmsprop.h(34): note: 参见“torch::optim::RMSprop”的声明
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\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”的基
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/optimizer.h(100): note: 参见“torch::optim::Optimizer”的声明
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/sgd.h(31): note: 参见“torch::optim::SGD”的声明
e:\anaconda\envs\torchwithsparse\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
]
e:\anaconda\envs\torchwithsparse\lib\site-packages\torch\include\pybind11\detail/common.h(71): fatal error C1189: #error: pybind11 requires MSVC 2015 update 3 or newer
error: command 'E:\\program files\\C#\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command "'e:\anaconda\envs\torchwithsparse\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\WANG\\AppData\\Local\\Temp\\pip-install-bkdrkgzk\\torch-scatter\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\WANG\AppData\Local\Temp\pip-record-1lcov4qq\install-record.txt' --single-version-externally-managed --compile" failed with error code 1 in C:\Users\WANG\AppData\Local\Temp\pip-install-bkdrkgzk\torch-scatter\
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
cl.exe failed with exit status 2/-1073741701 #148 - GitHub
When trying to install python-binance using pip I get this error: C:\Program Files (x86)\Microsoft Visual Studio ...
Read more >Visual C++ for python failed with exit status 2 when installing ...
I have installed Visual C++ for python 9.0. Whenever I issue the pip install divisi2 command I get the following error in the...
Read more >install error - Google Groups
error : command 'C:\\Program Files (x86)\\Microsoft Visual ... Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
Read more >pip install mysql Error - error: command 'C:\\Program Files ...
pip install mysql Error - error: command 'C:\\Program Files ... \\14.12.25827\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2 Follow.
Read more >How can I solve this Error while trying to run github code at ...
ERROR : Command errored out with exit status 1: command: 'c:\users\anaconda3\python.exe' -c 'import .
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I am no Windows expert either, but updating the MSVC compiler is worth a try 😃
This issue had no activity for 6 months. It will be closed in 2 weeks unless there is some new activity.