Closed 00GitHub closed 3 years ago
This indicates a failed installation of torch-scatter. Please show me the installation log.
Alternatively, try to import torch first.
]
D:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/lbfgs.h(49): warning C4251: 'torch::optim::LBFGS::al': class 'std::vector<at::Tensor,std
::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::LBFGS'
with
[
_Ty=at::Tensor
]
D:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/TensorBody.h(472): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>'
with
[
_Ty=at::Tensor
]
D:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/lbfgs.h(50): warning C4251: 'torch::optim::LBFGS::old_dirs': class 'std::deque<at::Tenso
r,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::LBFGS'
with
[
_Ty=at::Tensor
]
D:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/lbfgs.h(50): note: see declaration of 'std::deque<at::Tensor,std::allocator<_Ty>>'
with
[
_Ty=at::Tensor
]
D:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/lbfgs.h(51): warning C4251: 'torch::optim::LBFGS::old_stps': class 'std::deque<at::Tenso
r,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::LBFGS'
with
[
_Ty=at::Tensor
]
D:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/lbfgs.h(50): note: see declaration of 'std::deque<at::Tensor,std::allocator<_Ty>>'
with
[
_Ty=at::Tensor
]
D:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/rmsprop.h(34): warning C4275: non dll-interface class 'torch::optim::Optimizer' used as
base for dll-interface class 'torch::optim::RMSprop'
D:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/optimizer.h(100): note: see declaration of 'torch::optim::Optimizer'
D:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/rmsprop.h(34): note: see declaration of 'torch::optim::RMSprop'
D:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/rmsprop.h(50): warning C4251: 'torch::optim::RMSprop::square_average_buffers': class 'st
d::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::RMSprop'
with
[
_Ty=at::Tensor
]
D:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/TensorBody.h(472): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>'
with
[
_Ty=at::Tensor
]
D:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/rmsprop.h(51): warning C4251: 'torch::optim::RMSprop::momentum_buffers': class 'std::vec
tor<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::RMSprop'
with
[
_Ty=at::Tensor
]
D:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/TensorBody.h(472): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>'
with
[
_Ty=at::Tensor
]
D:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/rmsprop.h(52): warning C4251: 'torch::optim::RMSprop::grad_average_buffers': class 'std:
:vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::RMSprop'
with
[
_Ty=at::Tensor
]
D:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/TensorBody.h(472): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>'
with
[
_Ty=at::Tensor
]
D:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/sgd.h(31): warning C4275: non dll-interface class 'torch::optim::Optimizer' used as base
for dll-interface class 'torch::optim::SGD'
D:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/optimizer.h(100): note: see declaration of 'torch::optim::Optimizer'
D:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/sgd.h(31): note: see declaration of 'torch::optim::SGD'
D:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/sgd.h(46): warning C4251: 'torch::optim::SGD::momentum_buffers': class 'std::vector<at::
Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::SGD'
with
[
_Ty=at::Tensor
]
D:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\ATen/core/TensorBody.h(472): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>'
with
[
_Ty=at::Tensor
]
D:\Anaconda3\envs\pytorch\lib\site-packages\torch\include\torch/csrc/autograd/record_function.h(25): warning C4251: 'torch::autograd::profiler::StringView::owned_strptr': class 's
td::shared_ptr
@loganyan 你的问题我也遇到了,应该是cuda,pytorch版本的问题,可以到readme里面打开作者给的.whl链接,具体可以查看https://zhuanlan.zhihu.com/p/106872864
This issue had no activity for 6 months. It will be closed in 2 weeks unless there is some new activity.
Hello, I recently encountered a tricky problem.When I use "import tortch_scatter" using ubuntu terminal,the error "No module named 'torch_scatter.scatter_cuda' " appeared.This problem has been solved for a long time but have no result.
Please help me ,thank you very much.