Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
irexyc committed Sep 5, 2022
1 parent 09bd6a9 commit aae3ee5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions docs/en/01-how-to-build/macos-arm64.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DPYTHON_EXECUTABLE=`which python` \
-DCMAKE_INSTALL_PREFIX=install \
-DDISABLE_SVE=ON
make -j$(nproc) && make install
-DDISABLE_SVE=ON # low version like 1.8.0 of pytorch need DISABLE_SVE option
make -j4 && make install
export Torch_DIR=$(pwd)/install/share/cmake/Torch
</code></pre>
</td>
Expand All @@ -113,7 +113,7 @@ cd /the/root/path/of/MMDeploy
export MMDEPLOY_DIR=$(pwd)
```

#### Build Model Converter
### Build Model Converter

- **Core ML**

Expand All @@ -125,12 +125,12 @@ export MMDEPLOY_DIR=$(pwd)
cd ${MMDEPLOY_DIR}
mkdir -p build && cd build
cmake -DMMDEPLOY_TARGET_BACKENDS=torchscript -DTorch_DIR=${Torch_DIR} ..
make -j$(nproc) && make install
make -j4 && make install
```

Please check [cmake build option](cmake_option.md).

#### Install Model Converter
### Install Model Converter

```bash
cd ${MMDEPLOY_DIR}
Expand Down Expand Up @@ -160,5 +160,5 @@ The following shows an example of building an SDK using Core ML as the inference
-DMMDEPLOY_TARGET_BACKENDS=coreml \
-DTorch_DIR=${Torch_DIR}

make -j$(nproc) && make install
make -j4 && make install
```
2 changes: 1 addition & 1 deletion docs/en/05-supported-backends/coreml.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DPYTHON_EXECUTABLE=`which python` \
-DCMAKE_INSTALL_PREFIX=install \
-DDISABLE_SVE=ON # low version of pytorch need this option
-DDISABLE_SVE=ON # low version like 1.8.0 of pytorch need this option
make install
```

Expand Down
8 changes: 4 additions & 4 deletions docs/zh_cn/01-how-to-build/macos-arm64.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DPYTHON_EXECUTABLE=`which python` \
-DCMAKE_INSTALL_PREFIX=install \
-DDISABLE_SVE=ON
make -j$(nproc) && make install
-DDISABLE_SVE=ON # low version like 1.8.0 of pytorch need DISABLE_SVE option
make -j4 && make install
export Torch_DIR=$(pwd)/install/share/cmake/Torch
</code></pre>
</td>
Expand Down Expand Up @@ -124,7 +124,7 @@ export MMDEPLOY_DIR=$(pwd)
cd ${MMDEPLOY_DIR}
mkdir -p build && cd build
cmake -DMMDEPLOY_TARGET_BACKENDS=torchscript -DTorch_DIR=${Torch_DIR} ..
make -j$(nproc) && make install
make -j4 && make install
```

参考 [cmake 选项说明](cmake_option.md)
Expand Down Expand Up @@ -158,5 +158,5 @@ pip install -e .
-DMMDEPLOY_TARGET_BACKENDS=coreml \
-DTorch_DIR=${Torch_DIR}

make -j$(nproc) && make install
make -j4 && make install
```
2 changes: 1 addition & 1 deletion docs/zh_cn/05-supported-backends/coreml.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DPYTHON_EXECUTABLE=`which python` \
-DCMAKE_INSTALL_PREFIX=install \
-DDISABLE_SVE=ON # 低版本需要加上这个参数
-DDISABLE_SVE=ON # 低版本比如1.8.0需要加上这个参数
make install
```

Expand Down

0 comments on commit aae3ee5

Please sign in to comment.