From 998d0c88b9d058a9fbcd9df719b95e8225126bff Mon Sep 17 00:00:00 2001 From: weli10 Date: Mon, 12 Jul 2021 20:13:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96readme=E4=B8=AD=E5=91=BD?= =?UTF-8?q?=E4=BB=A4=E6=89=A7=E8=A1=8C=E7=9B=AE=E5=BD=95=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.zh.md | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/README.zh.md b/README.zh.md index 2540f292d6c..134cdb7add3 100644 --- a/README.zh.md +++ b/README.zh.md @@ -38,37 +38,40 @@ pip3 install -r requirements.txt ## 获取原生PyTorch源代码和third_party代码 -git clone -b v1.5.0 --depth=1 https://github.com/pytorch/pytorch.git +在当前仓库根目录pytorch/下获取原生PyTorch的源代码 -进入到pytorch目录下 +```sh +git clone -b v1.5.0 --depth=1 https://github.com/pytorch/pytorch.git +``` -获取PyTorch被动依赖代码(获取时间较长,请耐心等待)。 +进入到pytorch/pytorch/目录下, 获取PyTorch被动依赖代码(获取时间较长,请耐心等待)。 +```sh git submodule sync - git submodule update --init --recursive +``` -完成没有报错之后就生成了PyTorch及其依赖的三方代码 +完成且没有报错之后就生成了PyTorch及其依赖的三方代码 ## 生成适配昇腾AI处理器的PyTorch代码。 -进入到scripts目录,执行 +进入到pytorch/scripts目录,执行 ```sh bash gen.sh ``` -会在当前根目录下pytorch目录中生成npu适配全量代码 +会在pytorch/pytorch/目录中生成npu适配全量代码 ## 编译torch的二进制包 -进入到pytorch目录,执行 +进入到pytorch/pytorch/目录,执行 ```sh bash build.sh ``` -生成的二进制包在当前的dist目录下 +生成的二进制包在pytorch/pytorch/dist/目录下 # 安装 -- Gitee