解决编译caffe2遇到的坑

首先我们要从源码克隆caffe2的库:

git clone --recursive https://github.com/caffe2/caffe2.git

执行下载过程会报这样的错:

Cloning into 'third_party/eigen'...
fatal: could not read Username for 'https://github.com': No such device or address
fatal: clone of 'https://github.com/RLovelett/eigen.git' into submodule path 'third_party/eigen' failed

这是因为这个github网址找不到,打开网页,果然404.

解决方法如下:

cd third_party

git clone https://github.com/eigenteam/eigen-git-mirror

mv eigen-git-mirro eigen

cd ..

git submodule update --init --recursive

继续上次报错点继续下载

然后你会发现又报了一个错:

Submodule path 'third_party/zstd': checked out 'aec56a52fbab207fc639a1937d1e708a282edca8'
Unable to checkout 'f3c627d517968c20e8269ead1d90cd3a6c199356' in submodule path 'third_party/aten'

因为到目前为止,facebook已将caffe2集成在pytorch里,https://github.com/pytorch/pytorch

根据安装教程链接

conda install -c caffe2 caffe2-cuda9.0-cudnn7

安装成功

转载于:https://www.cnblogs.com/ygh1229/p/9282777.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值