当前位置:网站首页>pycuda._ driver. LogicError: explicit_ context_ dependent failed: invalid device context - no currently
pycuda._ driver. LogicError: explicit_ context_ dependent failed: invalid device context - no currently
2022-07-03 22:19:00 【AI Hao】
In execution tensorRT There was a mistake in reasoning , The details are as follows :
D:\cv\ConNext_demo\testtrt.py:32: DeprecationWarning: Use set_optimization_profile_async instead.
context.active_optimization_profile = 0
Traceback (most recent call last):
File "D:\cv\ConNext_demo\testtrt.py", line 37, in <module>
d_input = cuda.mem_alloc(image.nbytes) # Allocate input memory .
pycuda._driver.LogicError: explicit_context_dependent failed: invalid device context - no currently active context?
This is a pycuda Not initialized , Just execute initialization :
import pycuda.driver as cuda
import pycuda.autoinit
import pycuda.autoinit This line is gray , It feels useless , But if there is no such sentence, the above error will be reported .
边栏推荐
- 2022 electrician (elementary) examination questions and electrician (elementary) registration examination
- Asynchronous artifact: implementation principle and usage scenario of completable future
- Report on the development strategy of China's engineering bidding agency and suggestions for the 14th five year plan Ⓙ 2022 ~ 2028
- DOM light switch case
- Market layout planning and latest dynamic analysis report of China's smart public security industry Ⓕ 2022 ~ 2028
- How PHP gets all method names of objects
- [secretly kill little partner pytorch20 days] - [day3] - [example of text data modeling process]
- 国泰君安证券开户是安全可靠的么?怎么开国泰君安证券账户
- Ansible common usage scenarios
- Redis single thread and multi thread
猜你喜欢

1 Introduction to spark Foundation

Pat grade A - 1164 good in C (20 points)

How PHP adds two numbers

What indicators should be paid attention to in current limit monitoring?

Wisdom tooth technology announced that it had completed the round D financing of US $100million and had not obtained a valid patent yet

Introduction to kubernetes

Mysql database - Advanced SQL statement (I)

使用dnSpy對無源碼EXE或DLL進行反編譯並且修改

Collection | pytoch common loss function disassembly

Control loop of program (while loop)
随机推荐
QGIS grid processing DEM data reclassification
Base ring tree Cartesian tree
Codeforces Round #768 (Div. 1)(A-C)
What is the difference between res.send() and res.end() in the node express framework
Electronic tube: Literature Research on basic characteristics of 6j1
The overseas listing of Shangmei group received feedback, and brands such as Han Shu and Yiye have been notified for many times and received attention
Common problems in multi-threaded learning (I) ArrayList under high concurrency and weird hasmap under concurrency
[flax high frequency question] leetcode 426 Convert binary search tree to sorted double linked list
Uboot migration
Why should enterprises do more application activities?
2022 safety officer-a certificate registration examination and summary of safety officer-a certificate examination
Buuctf, misc: sniffed traffic
DR-AP40X9-A-Qualcomm-IPQ-4019-IPQ-4029-5G-4G-LTE-aluminum-body-dual-band-wifi-router-2.4GHZ-5GHz-QSD
[SRS] build a specified version of SRS
Functions and differences between static and Const
Exness: the Central Bank of England will raise interest rates again in March, and inflation is coming
Rest参考
How PHP gets all method names of objects
How PHP drives mongodb
股票炒股开户注册安全靠谱吗?有没有风险的?