当前位置:网站首页>源码编译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
解决
边栏推荐
- 三层项目的架构分析及构造方法的参数名称注入
- JS (foreach) return cannot end the function solution
- How to add traffic statistics codes to the legendary Development Zone website
- tmux随笔
- Mapper agent development
- NumPy基础
- WPS insert hyperlink cannot be opened. What should I do if I prompt "unable to open the specified file"!
- 那个准时上下班,从不愿意加班加点的人,在我前面升职了...
- Rolabelimg to data format data
- 力扣------对奇偶下标分别排序
猜你喜欢
随机推荐
How to monitor micro web services
关于servlet中实现网站的页面跳转
Google GTEST event mechanism
office2010每次打开都要配置进度怎么解决?
学习数据库的第一个程序
WPS如何进行快速截屏?WPS快速截屏的方法
WPS insert hyperlink cannot be opened. What should I do if I prompt "unable to open the specified file"!
Conv1d of torch
[config] configure array parameters
传奇服务端如何添加地图
Open source Huizhi creates the future | the openeuler sub forum of 2022 open atom global open source summit was successfully held
开源汇智创未来 | 2022开放原子全球开源峰会 openEuler 分论坛圆满召开
Google gtest事件机制
2021-10-23
The method and detailed code of automatically pop-up and QQ group when players visit the website
MySQL regularly calls preset functions to complete data update
Open the tutorial of adding and modifying automatically playing music on the open zone website
scikit-learn——机器学习应用开发的步骤和理解
P2181 diagonal
< El table column> place multiple pictures