-
Notifications
You must be signed in to change notification settings - Fork 130
cpu可以用,gpu出错,请问是什么原因 #38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
检查CUDA 是否可用:
另外,最新代码适配了 libtorch 1.3。 |
cuda可以用的。我打印输出时显示在cuda上。因为电脑原因用不了libtorch1.3.就在main.cpp里面的 |
根据报错日志自己调试下 |
[ 50%] Building CXX object CMakeFiles/example.dir/example.cpp.o 我的opencv 总是链接不到是什么原因 |
i met the same problem,error happens at |
did you solve it@Richard-chen3 |
你用的什么版本的libtorch |
No ,I haven't.It seems like we met the same problem. |
x = seq_imp->forward(x);//这一句出错 |
我发现了这个问题,在gpu下,不能使用torch::cat(),torch::cat不能将gpu里面的数据拼在一起, |
seq_imp->forward(x);请问你这个问题解决了吗 怎么解决的? |
libtorch 1.0,cuda9.0,
torch::Tensor Darknet::forward(torch::Tensor x)
{
int module_count = module_list.size();
}
The text was updated successfully, but these errors were encountered: