当前位置:网站首页>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 .
边栏推荐
- The 14th five year plan and investment feasibility study report of China's industry university research cooperation Ⓧ 2022 ~ 2028
- 国泰君安证券开户是安全可靠的么?怎么开国泰君安证券账户
- Codeforces Round #768 (Div. 1)(A-C)
- Supply and demand situation and market scale calculation report of China's portable energy storage power PES industry Ⓛ 2022 ~ 2028
- Cognitive fallacy: what is Fredkin's paradox
- Ansible common usage scenarios
- Investment planning analysis and prospect prediction report of China's satellite application industry during the 14th five year plan Ⓑ 2022 ~ 2028
- BUUCTF,Misc:LSB
- Yyds dry goods inventory hands-on teach you to create a jigsaw puzzle using the canvasapi
- Base ring tree Cartesian tree
猜你喜欢
![[flax high frequency question] leetcode 426 Convert binary search tree to sorted double linked list](/img/db/b992d2b461ca17652518a1511b4947.gif)
[flax high frequency question] leetcode 426 Convert binary search tree to sorted double linked list

2022 safety officer-a certificate registration examination and summary of safety officer-a certificate examination

Functions and differences between static and Const

Can you draw with turtle?
![[golang] leetcode intermediate - alphabetic combination of island number and phone number](/img/40/a664ea866ce355c1f5e9305fe91780.jpg)
[golang] leetcode intermediate - alphabetic combination of island number and phone number

Dahua series books

Collection | pytoch common loss function disassembly

The difference between SRAM and DRAM

How PHP drives mongodb

4 environment construction -standalone ha
随机推荐
JS Demo calcule combien de jours il reste de l'année
[Android reverse] application data directory (files data directory | lib application built-in so dynamic library directory | databases SQLite3 database directory | cache directory)
Mysql database - Advanced SQL statement (I)
Common problems in multi-threaded learning (I) ArrayList under high concurrency and weird hasmap under concurrency
Base ring tree Cartesian tree
How to switch between dual graphics cards of notebook computer
How to solve win10 black screen with only mouse arrow
Cesium terrain clipping draw polygon clipping
Harbor integrated LDAP authentication
What is the content of the securities practice examination?
Oil monkey plug-in
WFC900M-Network_ Card/Qualcomm-Atheros-AR9582-2T-2R-MIMO-802.11-N-900M-high-power-Mini-PCIe-Wi-Fi-Mod
Intimacy communication -- [repair relationship] - use communication to heal injuries
Kali2021.4a build PWN environment
Cognitive fallacy: what is dimensional curse
Uboot migration
Go language slice interview real question 7 consecutive questions
[secretly kill little partner pytorch20 days] - [day3] - [example of text data modeling process]
How does sentinel, a traffic management artifact, make it easy for business parties to access?
Cognitive fallacy: what is Fredkin's paradox