当前位置:网站首页>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 .
边栏推荐
- Cognitive fallacy: what is dimensional curse
- LeetCode 1646. Get the maximum value in the generated array
- Is it safe and reliable to open an account and register for stock speculation? Is there any risk?
- Miscellaneous things that don't miss the right business
- Go language slice interview real question 7 consecutive questions
- Bluebridge cup Guoxin Changtian single chip microcomputer -- detailed explanation of schematic diagram (IV)
- China's TPMS industry demand forecast and future development trend analysis report Ⓐ 2022 ~ 2028
- 4. Data splitting of Flink real-time project
- [sg function] lightoj Partitioning Game
- Tkinter Huarong Road 4x4 tutorial III
猜你喜欢

How to solve win10 black screen with only mouse arrow

Décompiler et modifier un exe ou une DLL non source en utilisant dnspy

2022 free examination questions for safety management personnel of hazardous chemical business units and reexamination examination for safety management personnel of hazardous chemical business units

Bluebridge cup Guoxin Changtian single chip microcomputer -- detailed explanation of schematic diagram (IV)
![Buuctf, web:[geek challenge 2019] buyflag](/img/02/d3add04f8145621bff35d46b82ba53.jpg)
Buuctf, web:[geek challenge 2019] buyflag

Compréhension de la technologie gslb (Global Server load balance)

How PHP gets all method names of objects

Pooling idea: string constant pool, thread pool, database connection pool
![[SRS] build a specified version of SRS](/img/01/0d2d762e01b304220b8924d20277e3.jpg)
[SRS] build a specified version of SRS

Can you draw with turtle?
随机推荐
How can enterprises and developers take advantage of the explosion of cloud native landing?
Plug - in Oil Monkey
Dahua series books
JS demo calculate how many days are left in this year
Can you draw with turtle?
How to switch between dual graphics cards of notebook computer
JS closure knowledge points essence
3 environment construction -standalone
How PHP adds two numbers
[sg function] 2021 Niuke winter vacation training camp 6 h. winter messenger 2
2022 free examination questions for safety management personnel of hazardous chemical business units and reexamination examination for safety management personnel of hazardous chemical business units
Correlation
2022 safety officer-b certificate examination summary and safety officer-b certificate simulation test questions
BUUCTF,Misc:LSB
js demo 計算本年度還剩下多少天
Leetcode week 4: maximum sum of arrays (shape pressing DP bit operation)
LeetCode 1647. Minimum deletion times of unique character frequency
Bluebridge cup Guoxin Changtian single chip microcomputer -- detailed explanation of schematic diagram (IV)
Code in keil5 -- use the code formatting tool astyle (plug-in)
Mindmanager2022 serial number key decompression installer tutorial