当前位置:网站首页>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 .
边栏推荐
- [dynamic planning] counting garlic customers: the log of garlic King (the longest increasing public subsequence)
- Leetcode: a single element in an ordered array
- How to store null value on the disk of yyds dry inventory?
- 2022 G3 boiler water treatment registration examination and G3 boiler water treatment examination papers
- Go Technology Daily (2022-02-13) - Summary of experience in database storage selection
- What is the content of the securities practice examination?
- Codeforces Round #768 (Div. 1)(A-C)
- Label coco format data and format data in the upper left corner and lower right corner are mutually converted
- [automation operation and maintenance novice village] flask-2 certification
- Compréhension de la technologie gslb (Global Server load balance)
猜你喜欢

Team collaborative combat penetration tool CS artifact cobalt strike

How can enterprises and developers take advantage of the explosion of cloud native landing?

2 spark environment setup local
![Buuctf, web:[geek challenge 2019] buyflag](/img/02/d3add04f8145621bff35d46b82ba53.jpg)
Buuctf, web:[geek challenge 2019] buyflag

string

6.0 kernel driver character driver

UC Berkeley proposes a multitask framework slip

Unique in China! Alibaba cloud container service enters the Forrester leader quadrant

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

Why use pycharm to run the use case successfully but cannot exit?
随机推荐
js demo 計算本年度還剩下多少天
China's TPMS industry demand forecast and future development trend analysis report Ⓐ 2022 ~ 2028
A little understanding of GSLB (global server load balance) technology
The latest analysis of crane driver (limited to bridge crane) in 2022 and the test questions and analysis of crane driver (limited to bridge crane)
Investment analysis and prospect trend prediction report of China's boron nitride industry Ⓨ 2022 ~ 2028
DR-NAS26-Qualcomm-Atheros-AR9582-2T-2R-MIMO-802.11-N-5GHz-high-power-Mini-PCIe-Wi-Fi-Module
Pooling idea: string constant pool, thread pool, database connection pool
Exclusive interview with the person in charge of openkruise: to what extent has cloud native application automation developed now?
Code in keil5 -- use the code formatting tool astyle (plug-in)
Programming language (1)
Luogu deep foundation part 1 Introduction to language Chapter 6 string and file operation
Collection | pytoch common loss function disassembly
Why use pycharm to run the use case successfully but cannot exit?
Miscellaneous things that don't miss the right business
China's coal industry investment strategic planning future production and marketing demand forecast report Ⓘ 2022 ~ 2028
Cognitive fallacy: what is dimensional curse
How to store null value on the disk of yyds dry inventory?
Farmersworld farmers world, no faith, how to talk about success?
The difference between SRAM and DRAM
Why should enterprises do more application activities?