获取PyTorch源码失败的解决办法
问题现象描述
获取PyTorch源码时提示unexpected disconnect while reading sideband packet。详细信息如下:
Cloning into 'pytorch'... remote: Enumerating objects: 13382, done. remote: Counting objects: 100% (13382/13382), done. remote: Compressing objects: 100% (11353/11353), done. error: RPC failed; curl 18 transfer closed with outstanding read data remaining error: 1504 bytes of body are still expected fetch-pack: unexpected disconnect while reading sideband packet fatal: early EOF fatal: fetch-pack: invalid index-pack output
关键过程、根本原因分析
网络质量不佳导致代码下载失败。
结论、解决方案及效果
重新执行获取源码命令。
git clone -b v2.1.2 https://github.com/pytorch/pytorch.git --depth 1
父主题: 故障排除