Skip to content

Commit 714585a

Browse files
committed
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle2ONNX into fix_assign_value_op_bug
2 parents bf83de9 + 4ca0809 commit 714585a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ paddle2onnx --model_dir saved_inference_model \
7474
如你对导出的 ONNX 模型有优化的需求,推荐使用 `onnx-simplifier`,也可使用如下命令对模型进行优化
7575

7676
```
77-
python -m paddle2onnx.optimize --input_model model.onnx --output_model new_model.onnx
77+
pip install onnxslim
78+
onnxslim model.onnx slim.onnx
7879
```
7980

8081
# 5 代码贡献

README_en.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ If you need to adjust ONNX models, please refer to [ONNX related tools](./tools/
7171

7272
If you have optimization needs for the exported ONNX model, we recommend using `onnx-simplifier`. You can also optimize the model using the following command.
7373

74+
```
75+
pip install onnxslim
76+
onnxslim model.onnx slim.onnx
77+
```
78+
7479
# 5 Code Contribution
7580

7681
A thriving ecosystem requires everyone's collaborative efforts. Developers can refer to the [Paddle2ONNX Contribution Guide](./docs/zh/Paddle2ONNX_Development_Guide.md) to contribute code to Paddle2ONNX.

0 commit comments

Comments
 (0)