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

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

import pycuda.autoinit
Logo

技术共进,成长同行——讯飞AI开发者社区

更多推荐