当前位置:网站首页>源码编译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
解决
边栏推荐
- 如何安装office2010安装包?office2010安装包安装到电脑上的方法
- How to debug UDP port
- ODOO开发教程之图表
- Double type nullpointexception in Flink flow calculation
- 网安学习-内网安全1
- Conv2d of torch
- 传奇开区网站如何添加流量统计代码
- 【2022新生学习】第三周要点
- 玩家访问网站自动弹窗加QQ群方法以及详细代码
- How to make the characters in the photos laugh? HMS core video editing service one click smile function makes people smile more naturally
猜你喜欢

How to add traffic statistics codes to the legendary Development Zone website

AUTOSAR从入门到精通100讲(七十八)-AUTOSAR-DEM模块

WPS insert hyperlink cannot be opened. What should I do if I prompt "unable to open the specified file"!

使用Jstack、Jconsole和jvisualvm进行死锁分析

Pivot table of odoo development tutorial

ODOO开发教程之透视表

Use annotation test in idea

Diagram of odoo development tutorial

Apache POI实现Excel导入读取数据和写入数据并导出

Jackson parsing JSON detailed tutorial
随机推荐
JDBC statement + resultset introduction
如何安装office2010安装包?office2010安装包安装到电脑上的方法
Learn the first program of database
VirtualBox has expanded the capacity of virtual hard disk (without modifying the original data)
[config] configure array parameters
tmux随笔
The representation of time series analysis: is the era of learning coming?
优炫数据库启动失败,报网络错误
Introduction of JDBC preparestatement+ database connection pool
How to solve the problem of configuring the progress every time Office2010 is opened?
Open the tutorial of adding and modifying automatically playing music on the open zone website
【2022新生学习】第三周要点
Cache penetration, cache breakdown, cache avalanche and Solutions
What servers are needed to build mobile app
How does word view document modification traces? How word views document modification traces
JS daily question (12)
WPS insert hyperlink cannot be opened. What should I do if I prompt "unable to open the specified file"!
2021-10-23
Network Security Learning - Intranet Security 1
The method and detailed code of automatically pop-up and QQ group when players visit the website