LibtorchTutorials icon indicating copy to clipboard operation
LibtorchTutorials copied to clipboard

LibTorch使用cuda的问题

Open wang8713 opened this issue 2 years ago • 2 comments

你好,我刚刚接触libtorch但在使用的过程中出现了问题。我使用gpu的时候在运行 "module.to(device_type);" 时出现了不动的问题。 情况如下图。在运行到81行给模型加载到gpu时出现了下面这种情况。 Snipaste_2021-12-27_17-12-08 在使用cpu时一切正常。 我的环境是 cuda10.2、cudnn(8.3.1 / 7.6.5)这两个版本都试过、libtorch1.8.0-release、VS2019、pytorch1.8.0。

wang8713 avatar Dec 27 '21 09:12 wang8713

点击这里的一些报错部分

AllentDan avatar Dec 27 '21 10:12 AllentDan

好的,谢谢您回复,我已经解决了。

wang8713 avatar Dec 28 '21 02:12 wang8713