当前位置:网站首页>源码编译pytorch坑
源码编译pytorch坑
2022-07-29 05:07:00 【要求不用太高】
目录
- 源码编译pytorch坑
- git clone拉取问题
- 编译报错:../caffe2/contrib/aten/aten_op.h:1:52: fatal error: caffe2/caffe2/contrib/aten/gen_aten_op.h: No such file or directory #include "caffe2/caffe2/contrib/aten/gen_aten_op.h"
- Aborted (core dumped)
- 编译成功后运行报错:RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
源码编译pytorch坑
nimble是一个对pytorch进行修改的神经网络加速包,本篇文章记录下配置nimble环境遇到的一些问题,可供以后回忆参考。
git clone拉取问题
国内访问github很慢,而且由于需要递归拉去子模块:
git clone --recursive https://github.com/snuspl/nimble
经常fatal或者拉去失败,目前觉得原因是由于网络问题,解决方法就是不停的在项目目录中执行如下命令:
git submodule update --init --recursive
然后等执行编译脚本的时候根据报错提示前往第三方库中拉取对应的仓库到文件夹中
编译报错:…/caffe2/contrib/aten/aten_op.h:1:52: fatal error: caffe2/caffe2/contrib/aten/gen_aten_op.h: No such file or directory #include “caffe2/caffe2/contrib/aten/gen_aten_op.h”
在pytorch的github的issue页面搜索得知,需要在编译时添加USE_NINJA=OFF选项,并且如果之前已经编过一遍,最好将build目录删掉重新编译
Aborted (core dumped)
torchvision等库最好也从源码安装,才不会报错,此时我进行了从头编译与安装才没问题
编译成功后运行报错:RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
进入终端,查看numpy版本号
pip show numpy
更新numpy
pip install -U numpy
解决
边栏推荐
- How to debug UDP port
- DataSourceClosedException: dataSource already closed at Mon Oct 25 16:55:48 CST 2021
- 时间序列分析的表示学习时代来了?
- How to add traffic statistics codes to the legendary Development Zone website
- The difference between the two ways of thread implementation - simple summary
- 深度学习刷SOTA的一堆trick
- Unity Metaverse(三)、Protobuf & Socket 实现多人在线
- 三层项目的架构分析及构造方法的参数名称注入
- Open source Huizhi creates the future | the openeuler sub forum of 2022 open atom global open source summit was successfully held
- JS daily question (12)
猜你喜欢

scikit-learn——机器学习应用开发的步骤和理解

What if excel is stuck and not saved? The solution of Excel not saved but stuck

Self join and joint query of MySQL

How to install Office2010 installation package? How to install Office2010 installation package on computer

Force deduction ----- sort odd and even subscripts respectively

Introduction of JDBC preparestatement+ database connection pool

What if the office prompts that the system configuration cannot run?

Glory 2023 push, push code ambubk

荣耀2023内推,内推码ambubk

The difference between the two ways of thread implementation - simple summary
随机推荐
Self join and joint query of MySQL
浅谈AspectJ框架
JS daily question (10)
传奇如何一台服务器配置多个版本微端更新
Original code, inverse code, complement code
基于注解的三层项目的改造及添加包扫描的方式
About the configuration and use of thymeleaf
Mysql的自连接和联合查询
MySQL time calculation function
Reply from the Secretary of jindawei: the company is optimistic about the market prospect of NMN products and has launched a series of products
[untitled]
MySQL定时调用预置函数完成数据更新
ODOO开发教程之图表
[untitled]
Big silent event Google browser has no title
优炫数据库启动失败,报网络错误
Huawei ilearning AI mathematics foundation course notes
Let you understand several common traffic exposure schemes in kubernetes cluster
Word如何查看文档修改痕迹?Word查看文档修改痕迹的方法
传奇服务端如何添加地图