mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
* update * try fix rocm pipeline * avoid already isntalled error * ignore python3.10 since build fails * fix * try setting user * try again * try again * try again * fix script * disable inference docs generation * try print device id * fix name qual * try again * try again * try again * provider_options * add device verify * rty again * try again * try aggain * print video/render gid * try again * run as root * try again with uid, gid * cleanup * run as root * temp fix * add /bin/bash Co-authored-by: Changming Sun <chasun@microsoft.com>
25 lines
685 B
Bash
Executable file
25 lines
685 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# This script must be executed from this folder.
|
|
|
|
# $1 python path
|
|
# $2 source folder
|
|
# $3 build folder
|
|
# $4 build config
|
|
|
|
# Fail the document generation if anything goes wrong in the process
|
|
set -e -x
|
|
|
|
# Install doc generation tools
|
|
$1/python -m pip install -r $2/docs/python/requirements.txt
|
|
|
|
# Fake onnxruntime installation
|
|
export PYTHONPATH=$3/$4:$PYTHONPATH
|
|
|
|
# Remove old docs
|
|
rm -rf $3/docs/
|
|
|
|
# Training doc
|
|
$1/python -m sphinx -j1 -v -T -b html -d $3/docs/training/_doctrees/html $2/docs/python/training $3/docs/training/html
|
|
$1/python -u $2/tools/doc/rename_folders.py $3/docs/training/html
|
|
# (cd $3/docs/training/html && zip -r $3/docs/python_training_doc.zip .)
|