当前位置:网站首页>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 .
边栏推荐
- Luogu deep foundation part 1 Introduction to language Chapter 7 functions and structures
- [sg function] 2021 Niuke winter vacation training camp 6 h. winter messenger 2
- pivot ROP Emporium
- Blue Bridge Cup Guoxin Changtian MCU -- program download (III)
- Unique in China! Alibaba cloud container service enters the Forrester leader quadrant
- Bluebridge cup Guoxin Changtian single chip microcomputer -- hardware environment (I)
- Niuke winter vacation training camp 4 g (enumeration optimization, Euler power reduction)
- The difference between SRAM and DRAM
- Summary of basic knowledge of exception handling
- AST (Abstract Syntax Tree)
猜你喜欢
Summary of basic knowledge of exception handling
Programming language (2)
Buuctf, web:[geek challenge 2019] buyflag
[secretly kill little partner pytorch20 days] - [day3] - [example of text data modeling process]
Correlation
Blue Bridge Cup Guoxin Changtian single chip microcomputer -- led lamp module (V)
How PHP gets all method names of objects
Exclusive interview with the person in charge of openkruise: to what extent has cloud native application automation developed now?
6.0 kernel driver character driver
Functions and differences between static and Const
随机推荐
Blue Bridge Cup Guoxin Changtian single chip microcomputer -- led lamp module (V)
4. Data splitting of Flink real-time project
How to switch between dual graphics cards of notebook computer
Are the top ten securities companies safe to open accounts and register? Is there any risk?
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
[template summary] - binary search tree BST - Basics
Programming language (2)
pivot ROP Emporium
油猴插件
Leetcode problem solving - 235 Nearest common ancestor of binary search tree
Can you draw with turtle?
Team collaborative combat penetration tool CS artifact cobalt strike
Dynamic research and future planning analysis report of China's urban water supply industry Ⓝ 2022 ~ 2028
A little understanding of GSLB (global server load balance) technology
Why use pycharm to run the use case successfully but cannot exit?
Supply and demand situation and market scale calculation report of China's portable energy storage power PES industry Ⓛ 2022 ~ 2028
[actual combat record] record the whole process of the server being attacked (redis vulnerability)
DOM light switch case
How PHP adds two numbers
Preliminary analysis of smart microwave radar module