当前位置:网站首页>源码编译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
解决
边栏推荐
- Diagram of odoo development tutorial
- Big silent event Google browser has no title
- Deep learning brush a bunch of tricks of SOTA
- JDBC statement + resultset introduction
- The difference between the two ways of thread implementation - simple summary
- What if excel is stuck and not saved? The solution of Excel not saved but stuck
- 学习数据库的第一个程序
- A little knowledge about management
- 时间序列分析的表示学习时代来了?
- Solve the warning prompt of MySQL mapping file
猜你喜欢

Learn the first program of database

Mysql的自连接和联合查询

【文件下载】Easyexcel快速上手

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

How does excel filter out the content you want? Excel table filtering content tutorial

Unity metaverse (III), protobuf & socket realize multi person online

How is the entered query SQL statement executed?

How does WPS take quick screenshots? WPS quick screenshot method

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

How to set row height and column width in excel? The method of setting row height and column width in Excel
随机推荐
[wechat applet] swiper slides the page, and the left and right sides of the slider show part of the front and back, showing part of the front and back
"Invisible Bridge" built in the free trade economy: domestic products and Chinese AI power
What if excel is stuck and not saved? The solution of Excel not saved but stuck
Solve the warning prompt of MySQL mapping file
虚拟偶像的歌声原来是这样生成的!
Reply from the Secretary of jindawei: the company is optimistic about the market prospect of NMN products and has launched a series of products
scikit-learn——机器学习应用开发的步骤和理解
Huawei ilearning AI mathematics foundation course notes
< El table column> place multiple pictures
Unity metaverse (III), protobuf & socket realize multi person online
Mysql多对多关系,分组拼接把多个数据查询到一条数据上
Spark的算子操作列表
Open the tutorial of adding and modifying automatically playing music on the open zone website
Deadlock to be resolved
JS daily question (12)
Simple user-defined authentication interface rules
The person who goes to and from work on time and never wants to work overtime has been promoted in front of me
Unity Metaverse(三)、Protobuf & Socket 实现多人在线
Raspberry pie 4B + Intel neural computing stick (stick2) +yolov5 feasibility study report
[wechat applet -- solve the alignment problem of the last line of display:flex. (discontinuous arrangement will be divided into two sides)]