当前位置:网站首页>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 !
边栏推荐
- [practice leads to truth] is the introduction of import and require really the same as what is said on the Internet
- Organize five stages of actual attack and defense drill
- JS variable
- 日常工作中程序员最讨厌哪些工作事项?
- 如何设计 API 接口,实现统一格式返回?
- Canteen user dish relationship system (C language course design)
- Analyse approfondie de kubebuilder
- In depth analysis of kubebuilder
- sscanf,sscanf_ S and its related usage "suggested collection"
- Basic idea of counting and sorting
猜你喜欢

Ansible中的inventory主机清单(预祝你我有数不尽的鲜花和浪漫)

Ansible概述和模块解释(你刚走过了今天,而扑面而来的却是昨天)

Monitoring cannot be started after Oracle modifies the computer name

指针与数组在函数中输入实现逆序输出

Markdown editor

JS variable plus

窗口可不是什么便宜的东西

Error: No named parameter with the name ‘foregroundColor‘

JDBC link Oracle reference code

Common Oracle SQL statements
随机推荐
acwing 843. N-queen problem
JS variable
How to design API interface and realize unified format return?
日常工作中程序员最讨厌哪些工作事项?
Markdown editor
File upload vulnerability summary
九章云极DataCanvas公司获评36氪「最受投资人关注的硬核科技企业」
STM32F103 realize IAP online upgrade application
5G VoNR+之IMS Data Channel概念
The worse the AI performance, the higher the bonus? Doctor of New York University offered a reward for the task of making the big model perform poorly
Ansible中的inventory主機清單(預祝你我有數不盡的鮮花和浪漫)
Station B boss used my world to create convolutional neural network, Lecun forwarding! Burst the liver for 6 months, playing more than one million
mpf2_ Linear programming_ CAPM_ sharpe_ Arbitrage Pricin_ Inversion Gauss Jordan_ Statsmodel_ Pulp_ pLU_ Cholesky_ QR_ Jacobi
Acl2022 | decomposed meta learning small sample named entity recognition
窗口可不是什么便宜的东西
What about the collapse of win11 playing pubg? Solution to win11 Jedi survival crash
Run the command once per second in Bash- Run command every second in Bash?
Chapter 9 Yunji datacanvas company won the highest honor of the "fifth digital finance innovation competition"!
Ansible中的inventory主机清单(预祝你我有数不尽的鲜花和浪漫)
JS input and output