Files
FastDeploy/third_party/onnx/tools/update_doc.sh
Jason 6343b0db47 [Build] Support build with source code of Paddle2ONNX (#1559)
* Add notes for tensors

* Optimize some apis

* move some warnings

* Support build with Paddle2ONNX

* Add protobuf support

* Fix compile on mac

* add clearn package script

* Add paddle2onnx code

* remove submodule

* Add onnx ocde

* remove softlink

* add onnx code

* fix error

* Add cmake file

* fix patchelf

* update paddle2onnx

* Delete .gitmodules

---------

Co-authored-by: PaddleCI <paddle_ci@example.com>
Co-authored-by: pangyoki <pangyoki@126.com>
Co-authored-by: jiangjiajun <jiangjiajun@baidu.lcom>
2023-03-17 10:03:22 +08:00

35 lines
765 B
Bash
Executable File

#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# export ONNX_ML=0, # if you need to disable ONNX_ML
python_exist=`command -v python`
if [ -z $python_exist ]; then
echo "No python is found, please set it in your environment."
exit 1
fi
if [ ! -f "onnx/defs/gen_doc.py" ]; then
echo "Please run this script in the ONNX root folder."
exit 1
fi
set -e
echo -e "===> recompile onnx"
python setup.py develop --user
echo -e "\n===> regenerate test data from node test"
python onnx/backend/test/cmd_tools.py generate-data
echo -e "\n===> regenerate stats of test data"
python onnx/backend/test/stat_coverage.py
echo -e "\n===> regenerate the docs"
python onnx/defs/gen_doc.py
ONNX_ML=0 python onnx/defs/gen_doc.py
echo -e "\n===> the update is done!"