pytorch/tools/onnx/gen_diagnostics.sh
BowenBao 8f4edf1e1d [ONNX] Initial version of diagnostics infrastructure. (#85107)
This PR introduces a general Python diagnostics infrastructure powered by SARIF,
and the exporter diagnostics module that builds on top of it.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/85107
Approved by: https://github.com/abock, https://github.com/justinchuby
2022-09-30 07:47:26 +00:00

17 lines
456 B
Bash
Executable File

#!/bin/bash
# Run this script inside its folder to generate PyTorch ONNX Export Diagnostic rules
# for C++, Python and documentations.
# The rules are defined in torch/onnx/_internal/diagnostics/rules.yaml.
set -e -x
ROOT="${PWD}/../../"
pushd "$ROOT"
(
python -m tools.onnx.gen_diagnostics \
torch/onnx/_internal/diagnostics/rules.yaml \
torch/onnx/_internal/diagnostics \
torch/csrc/onnx/diagnostics/generated \
torch/docs/source
)
popd