当前位置:网站首页>AttributeError: module ‘torch._ C‘ has no attribute ‘_ cuda_ setDevice‘
AttributeError: module ‘torch._ C‘ has no attribute ‘_ cuda_ setDevice‘
2022-07-07 04:58:00 【Said the shepherdess】
stay Jetson Run on one PyTorch Reasoning program , After installing the basic environment , according to CUDA Version installed PyTorch.
CUDA Version is 11.4:
And then through PyTorch Official website Get installation command line :
After successful installation , When running the inference program, there is Error:
test CUDA, Found not available :
At first I suspected PyTorch Of CUDA Version of the problem , So we upgraded to 11.6, The problem remains .
The later positioning process :
(1) JetPack And PyTorch Compatibility problem , Reference link PyTorch for Jetson - version 1.11 now available - Jetson Nano - NVIDIA Developer Forums
I tried to download the following file , But the prompt during installation is similar to Platform Mismatch .
torch-1.12.0a0+2c916ef.nv22.3-cp38-cp38-linux_aarch64.whl
(2) Python Version of the problem : All materials mentioned that at present Jetson Only supported on Python3.6, And what we pretend is Python3.8. However, this step has not been verified , Later, it was located in the (3) After three reasons, the problem was solved directly .
(3) Ultimate solution
Finally, I found the web page :PyTorch for Jetson Platform
This page gives JetPack Version and PyTorch Version correspondence :
our JetPack It uses 5.0.1, Follow the table above , You should use 1.13 Of PyTorch edition , What we have been installing before is 1.12.
adopt This link Found a suitable for Jetson Of PyTorch1.13 Version download address :https://developer.download.nvidia.cn/compute/redist/jp/v50/pytorch/
Download the required version and install , then , The problem was solved !
边栏推荐
- 食堂用户菜品关系系统(C语言课设)
- 01 machine learning related regulations
- Terms used in the Web3 community
- Appium practice | make the test faster, more stable and more reliable (I): slice test
- Web3 社区中使用的术语
- Flask project uses flask socketio exception: typeerror: function() argument 1 must be code, not str
- JS variable case
- sscanf,sscanf_ S and its related usage "suggested collection"
- Pointer and array are input in function to realize reverse order output
- ServiceMesh主要解决的三大痛点
猜你喜欢
为什么很多人对技术债务产生误解
Operand of null-aware operation ‘!‘ has type ‘SchedulerBinding‘ which excludes null.
Read of shell internal value command
Markdown编辑器
Introduction to namespace Basics
Chapter 9 Yunji datacanvas was rated as 36 krypton "the hard core technology enterprise most concerned by investors"
A simple and beautiful regression table is produced in one line of code~
MySQL数据库(基础篇)
DFS和BFS概念及实践+acwing 842 排列数字(dfs) +acwing 844. 走迷宫(bfs)
namespace基础介绍
随机推荐
Ansible reports an error: "MSG": "invalid/incorrect password: permission denied, please try again“
Time complexity & space complexity
Station B boss used my world to create convolutional neural network, Lecun forwarding! Burst the liver for 6 months, playing more than one million
Chapter 9 Yunji datacanvas company has been ranked top 3 in China's machine learning platform market
A simple and beautiful regression table is produced in one line of code~
C语言中函数指针与指针函数
Can I specify a path in an attribute to map a property in my class to a child property in my JSON?
Canteen user dish relationship system (C language course design)
Ansible overview and module explanation (you just passed today, but yesterday came to your face)
Analyse approfondie de kubebuilder
AttributeError: module ‘torch._C‘ has no attribute ‘_cuda_setDevice‘
JDBC link Oracle reference code
Oracle -- 视图与序列
关于01背包个人的一些理解
架构实战训练营|课后作业|模块 6
mpf2_ Linear programming_ CAPM_ sharpe_ Arbitrage Pricin_ Inversion Gauss Jordan_ Statsmodel_ Pulp_ pLU_ Cholesky_ QR_ Jacobi
DFS和BFS概念及实践+acwing 842 排列数字(dfs) +acwing 844. 走迷宫(bfs)
谈谈讲清楚这件事的重要性
Organize five stages of actual attack and defense drill
Poor math students who once dropped out of school won the fields award this year