5cbd3f29e3
CodeQL / Analyze (actions) (push) Waiting to run
CodeQL / Analyze (cpp) (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run
Copilot Setup Steps / copilot-setup-steps (push) Waiting to run
Generate and publish ONNX docs / build (push) Waiting to run
Generate and publish ONNX docs / deploy (push) Blocked by required conditions
Scorecard supply-chain security / Scorecard analysis (push) Waiting to run
Fuzz / Run fuzz harnesses (${{ github.event_name == 'schedule' && 'nightly' || 'smoke' }}) (push) Has been cancelled
Create Releases / call-mac (push) Has been cancelled
Create Releases / call-linux (push) Has been cancelled
Create Releases / call-sdist (push) Has been cancelled
Create Releases / call-win (push) Has been cancelled
Create Releases / call-pyodide (push) Has been cancelled
Windows_No_Exception_CI / build (x64, 3.10) (push) Has been cancelled
Check URLs / build (push) Has been cancelled
Create Releases / Attest CI build artifacts (push) Has been cancelled
Create Releases / Check for Publish release build to pypi (push) Has been cancelled
Create Releases / Check for Publish preview build to test.pypi-weekly (push) Has been cancelled
Create Releases / Publish preview build to test.pypi-weekly (push) Has been cancelled
Create Releases / Check for Publish release build to test.pypi (rc-candidates) (push) Has been cancelled
Create Releases / Publish release build to test.pypi (push) Has been cancelled
Create Releases / Check for Publish preview build to pypi-weekly (push) Has been cancelled
Create Releases / Publish preview build to pypi-weekly (push) Has been cancelled
Create Releases / Publish release build to pypi (push) Has been cancelled
Create Releases / test source distribution (push) Has been cancelled
clang-tidy / clang-tidy (push) Has been cancelled
Lint / Validate SBOM (push) Has been cancelled
Lint / Enforce style (push) Has been cancelled
CI / Test windows-2022, 3.14, External, debug=0, unity_build=0, onnx_ml=1, autogen=0 (push) Has been cancelled
CI / Test windows-latest, 3.10, Internal, debug=0, unity_build=0, onnx_ml=1, autogen=0 (push) Has been cancelled
CI / Test windows-latest, 3.14, Internal, debug=0, unity_build=0, onnx_ml=1, autogen=0 (push) Has been cancelled
CI / Test windows-latest, 3.14t, Internal, debug=0, unity_build=0, onnx_ml=1, autogen=0 (push) Has been cancelled
CI / Test ubuntu-24.04, 3.14, Internal, debug=1, unity_build=0, onnx_ml=1, autogen=0 (push) Has been cancelled
CI / Test ubuntu-24.04, 3.14, External, debug=0, unity_build=1, onnx_ml=1, autogen=1 (push) Has been cancelled
CI / Test ubuntu-24.04, 3.14, External, debug=0, unity_build=0, onnx_ml=0, autogen=0 (push) Has been cancelled
CI / Test macos-latest, 3.10, Internal, debug=0, unity_build=0, onnx_ml=1, autogen=0 (push) Has been cancelled
CI / Test macos-latest, 3.14, Internal, debug=0, unity_build=0, onnx_ml=1, autogen=0 (push) Has been cancelled
CI / Test macos-latest, 3.14t, Internal, debug=0, unity_build=0, onnx_ml=1, autogen=0 (push) Has been cancelled
CI / Test ubuntu-24.04, 3.14, External, debug=0, unity_build=0, onnx_ml=1, autogen=0 (push) Has been cancelled
CI / Test ubuntu-24.04, 3.10, Internal, debug=0, unity_build=0, onnx_ml=1, autogen=0 (push) Has been cancelled
CI / Test ubuntu-24.04, 3.14, Internal, debug=0, unity_build=0, onnx_ml=1, autogen=0 (push) Has been cancelled
CI / Test ubuntu-24.04, 3.14t, Internal, debug=0, unity_build=0, onnx_ml=1, autogen=0 (push) Has been cancelled
Pixi CI / Install and lint (ubuntu-24.04-arm) (push) Has been cancelled
Pixi CI / Install and lint (windows-2022) (push) Has been cancelled
Pixi CI / Xcode generator build (push) Has been cancelled
Pixi CI / Install and test (macos-latest, default) (push) Has been cancelled
Pixi CI / Install and test (ubuntu-24.04-arm, default) (push) Has been cancelled
Pixi CI / Install and test (ubuntu-latest, default) (push) Has been cancelled
Pixi CI / Install and test (windows-2022, default) (push) Has been cancelled
Pixi CI / Install and test (macos-latest, oldies) (push) Has been cancelled
Pixi CI / Install and test (ubuntu-24.04-arm, oldies) (push) Has been cancelled
Pixi CI / Install and test (ubuntu-latest, oldies) (push) Has been cancelled
Pixi CI / Install and test (windows-2022, oldies) (push) Has been cancelled
108 lines
2.6 KiB
Python
108 lines
2.6 KiB
Python
# Copyright (c) ONNX Project Contributors
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
from __future__ import annotations
|
|
|
|
import os
|
|
import sys
|
|
import warnings
|
|
|
|
import onnx
|
|
|
|
sys.path.append(os.path.abspath(os.path.dirname(__file__)))
|
|
|
|
|
|
# -- Project information -----------------------------------------------------
|
|
|
|
author = "ONNX"
|
|
copyright = "2024" # noqa: A001
|
|
project = "ONNX"
|
|
release = onnx.__version__
|
|
version = onnx.__version__
|
|
|
|
# define the latest opset to document,
|
|
# this is meant to avoid documenting opset not released yet
|
|
max_opset = onnx.helper.VERSION_TABLE[-1][2]
|
|
|
|
# define the latest opset to document for every opset
|
|
_opsets = [t for t in onnx.helper.VERSION_TABLE if t[2] == max_opset][-1]
|
|
max_opsets = {
|
|
"": max_opset,
|
|
"ai.onnx.ml": _opsets[3],
|
|
"ai.onnx.training": _opsets[4],
|
|
}
|
|
|
|
# -- General configuration ---------------------------------------------------
|
|
|
|
extensions = [
|
|
"myst_parser",
|
|
"onnx_sphinx",
|
|
"sphinx_copybutton",
|
|
"sphinx_exec_code",
|
|
"sphinx_tabs.tabs",
|
|
"sphinx.ext.autodoc",
|
|
"sphinx.ext.autosummary",
|
|
"sphinx.ext.coverage",
|
|
"sphinx.ext.doctest",
|
|
"sphinx.ext.githubpages",
|
|
"sphinx.ext.graphviz",
|
|
"sphinx.ext.ifconfig",
|
|
"sphinx.ext.intersphinx",
|
|
"sphinx.ext.mathjax",
|
|
"sphinx.ext.napoleon",
|
|
"sphinx.ext.viewcode",
|
|
]
|
|
|
|
myst_enable_extensions = [
|
|
"amsmath",
|
|
"attrs_inline",
|
|
"colon_fence",
|
|
"deflist",
|
|
"dollarmath",
|
|
"fieldlist",
|
|
"html_admonition",
|
|
"html_image",
|
|
"linkify",
|
|
"replacements",
|
|
"smartquotes",
|
|
"strikethrough",
|
|
"substitution",
|
|
"tasklist",
|
|
]
|
|
|
|
coverage_show_missing_items = True
|
|
exclude_patterns = []
|
|
graphviz_output_format = "svg"
|
|
html_css_files = ["css/custom.css"]
|
|
html_favicon = "onnx-favicon.png"
|
|
html_sidebars = {}
|
|
html_static_path = ["_static"]
|
|
html_theme = "furo"
|
|
language = "en"
|
|
mathdef_link_only = True
|
|
master_doc = "index"
|
|
onnx_doc_folder = os.path.join(os.path.abspath(os.path.dirname(__file__)), "operators")
|
|
pygments_style = "default"
|
|
source_suffix = [".rst", ".md"]
|
|
templates_path = ["_templates"]
|
|
|
|
html_context = {
|
|
"default_mode": "auto", # auto: the documentation theme will follow the system default that you have set (light or dark)
|
|
}
|
|
|
|
html_theme_options = {
|
|
"light_logo": "onnx-horizontal-color.png",
|
|
"dark_logo": "onnx-horizontal-white.png",
|
|
}
|
|
|
|
intersphinx_mapping = {
|
|
"numpy": ("https://numpy.org/doc/stable/", None),
|
|
"python": (f"https://docs.python.org/{sys.version_info.major}/", None),
|
|
"scipy": ("https://docs.scipy.org/doc/scipy/", None),
|
|
"torch": ("https://pytorch.org/docs/stable/", None),
|
|
}
|
|
|
|
warnings.filterwarnings("ignore", category=FutureWarning)
|