TensorRT报错:pycuda._driver.LogicError: explicit_context_dependent failed

报错信息:pycuda._driver.LogicError: explicit_context_dependent failed: invalid device context - no currently active context?

解决方法:初始化pycuda,在代码加入这一行。

import pycuda.autoinit

猜你喜欢

转载自blog.csdn.net/m0_48095841/article/details/130199179