File: update_doc.sh

package info (click to toggle)
onnx 1.20.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 62,544 kB
  • sloc: python: 77,643; cpp: 60,445; sh: 52; makefile: 51; javascript: 1
file content (35 lines) | stat: -rwxr-xr-x 775 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash

# Copyright (c) ONNX Project Contributors

# 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

echo -e "\n===> the update is done!"