当前位置:网站首页>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 .
边栏推荐
- Analysis report on the development prospect and investment strategy of global and Chinese modular automation systems Ⓟ 2022 ~ 2027
- Yyds dry goods inventory hands-on teach you to create a jigsaw puzzle using the canvasapi
- Supply and demand situation and market scale calculation report of China's portable energy storage power PES industry Ⓛ 2022 ~ 2028
- 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
- Go Technology Daily (2022-02-13) - Summary of experience in database storage selection
- Introduction to kubernetes
- What is the difference between res.send() and res.end() in the node express framework
- Data consistency between redis and database
- Buuctf, misc: sniffed traffic
- LeetCode 540. A single element in an ordered array
猜你喜欢
![[automation operation and maintenance novice village] flask-2 certification](/img/9a/a9b45e1f41b9b75695dcb06c212a69.jpg)
[automation operation and maintenance novice village] flask-2 certification

Awk getting started to proficient series - awk quick start

A little understanding of GSLB (global server load balance) technology

6.0 kernel driver character driver

Programming language (1)
![Buuctf, web:[geek challenge 2019] buyflag](/img/02/d3add04f8145621bff35d46b82ba53.jpg)
Buuctf, web:[geek challenge 2019] buyflag

Introduction to kubernetes

Mysql database - Advanced SQL statement (I)

QGIS grid processing DEM data reclassification

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
随机推荐
STM32 multi serial port implementation of printf -- Based on cubemx
Tkinter Huarong Road 4x4 tutorial III
Ansible common usage scenarios
[sg function] lightoj Partitioning Game
Label coco format data and format data in the upper left corner and lower right corner are mutually converted
Report on the development status and investment planning trends of China's data center industry Ⓡ 2022 ~ 2028
Miscellaneous things that don't miss the right business
How PHP drives mongodb
BUUCTF,Misc:LSB
Supply and demand situation and market scale calculation report of China's portable energy storage power PES industry Ⓛ 2022 ~ 2028
The 14th five year plan for the construction of Chinese Enterprise Universities and the feasibility study report on investment Ⓓ 2022 ~ 2028
Bluebridge cup Guoxin Changtian single chip microcomputer -- detailed explanation of schematic diagram (IV)
Common problems in multi-threaded learning (I) ArrayList under high concurrency and weird hasmap under concurrency
UC Berkeley proposes a multitask framework slip
This time, thoroughly understand bidirectional data binding 01
What indicators should be paid attention to in current limit monitoring?
The difference between SRAM and DRAM
What is the content of the securities practice examination?
Blue Bridge Cup Guoxin Changtian single chip microcomputer -- software environment (II)
Buuctf, misc: sniffed traffic