当前位置:网站首页>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 !
边栏推荐
- 组织实战攻防演练的5个阶段
- jvm是什么?jvm调优有哪些目的?
- 全国气象数据/降雨量分布数据/太阳辐射数据/NPP净初级生产力数据/植被覆盖度数据
- ServiceMesh主要解决的三大痛点
- Some understandings about 01 backpacker
- A line of R code draws the population pyramid
- Vscode automatically adds a semicolon and jumps to the next line
- PLC Analog output analog output FB analog2nda (Mitsubishi FX3U)
- 装饰器基础学习02
- 食堂用户菜品关系系统(C语言课设)
猜你喜欢
【实践出真理】import和require的引入方式真的和网上说的一样吗
Tree map: tree view - draw covid-19 array diagram
Ansible overview and module explanation (you just passed today, but yesterday came to your face)
Oracle -- 视图与序列
Win11 control panel shortcut key win11 multiple methods to open the control panel
U++4 接口 学习笔记
Markdown编辑器
Lessons and thoughts of the first SQL injection
A row of code r shows the table of Cox regression model
acwing 843. N-queen problem
随机推荐
MySQL数据库(基础篇)
leetcode 53. Maximum Subarray 最大子数组和(中等)
【Android Kotlin协程】利用CoroutineContext实现网络请求失败后重试逻辑
Thread和Runnable创建线程的方式对比
A simple and beautiful regression table is produced in one line of code~
Vscode automatically adds a semicolon and jumps to the next line
Chapter 9 Yunji datacanvas company has been ranked top 3 in China's machine learning platform market
Monitoring cannot be started after Oracle modifies the computer name
What work items do programmers hate most in their daily work?
5G VoNR+之IMS Data Channel概念
Pointer and array are input in function to realize reverse order output
JS variable case output user name
Tree map: tree view - draw covid-19 array diagram
Operand of null-aware operation ‘!‘ has type ‘SchedulerBinding‘ which excludes null.
acwing 843. N-queen problem
史上最全学习率调整策略lr_scheduler
【數模】Matlab allcycles()函數的源代碼(2021a之前版本沒有)
Acl2022 | decomposed meta learning small sample named entity recognition
Common Oracle SQL statements
当 Knative 遇见 WebAssembly