Skip to content

Commit 1828eb5

Browse files
Merge remote-tracking branch 'qonnxmain/main' into refactor/type-hints
2 parents 8c88d8b + 19b058a commit 1828eb5

28 files changed

+766
-99
lines changed

.github/workflows/docs.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
python-version: ['3.10']
1919

2020
steps:
21-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v4
2222
- name: Set up Python ${{ matrix.python-version }}
23-
uses: actions/setup-python@v2
23+
uses: actions/setup-python@v4
2424
with:
2525
python-version: ${{ matrix.python-version }}
2626
- name: Install dependencies

.readthedocs.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ build:
99
os: ubuntu-22.04
1010
tools:
1111
python: "3.10"
12+
apt_packages:
13+
- cmake # Install CMake system-wide
1214

1315
# Build documentation in the docs/ directory with Sphinx
1416
sphinx:

docs/changelog.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
.. _changes:
1+
========================
2+
Release Notes
3+
========================
4+
5+
.. changelog::
6+
:pypi: https://pypi.org/project/qonnx/

docs/conf.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,17 @@
7272
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx', 'sphinx.ext.todo',
7373
'sphinx.ext.autosummary', 'sphinx.ext.coverage', #'sphinx.ext.viewcode',
7474
'sphinx.ext.doctest', 'sphinx.ext.ifconfig', 'sphinx.ext.mathjax',
75-
'sphinx.ext.napoleon']
75+
'sphinx.ext.napoleon', 'myst_parser', 'sphinx_github_changelog']
7676

7777
# Add any paths that contain templates here, relative to this directory.
7878
templates_path = ['_templates']
7979

8080
# The suffix of source filenames.
81-
source_suffix = '.rst'
81+
source_suffix = {
82+
'.rst': 'restructuredtext',
83+
'.txt': 'restructuredtext',
84+
'.md': 'markdown',
85+
}
8286

8387
# The encoding of source files.
8488
# source_encoding = 'utf-8-sig'
@@ -88,7 +92,7 @@
8892

8993
# General information about the project.
9094
project = u'qonnx'
91-
copyright = u'2021-2022 QONNX Contributors'
95+
copyright = u'2021-2026 QONNX Contributors'
9296

9397
# The version info for the project you're documenting, acts as replacement for
9498
# |version| and |release|, also used in various other places throughout the
@@ -99,6 +103,8 @@
99103
# The full version, including alpha/beta/rc tags.
100104
release = '' # Is set by calling `setup.py docs`
101105

106+
sphinx_github_changelog_token = os.environ.get("GITHUB_TOKEN")
107+
102108
# The language for content autogenerated by Sphinx. Refer to documentation
103109
# for a list of supported languages.
104110
# language = None

docs/index.rst

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
QONNX
33
======
44

5-
.. note:: **QONNX** is currently under active development. APIs will likely change.
5+
..
6+
note:: **QONNX** is currently under active development. APIs will likely change.
67
7-
QONNX (Quantized ONNX) introduces three new custom operators -- `Quant <docs/qonnx-custom-ops/quant_op.md>`_, `BipolarQuant <docs/qonnx-custom-ops/bipolar_quant_op.md>`_ and `Trunc <docs/qonnx-custom-ops/trunc_op.md>`_ -- in order to represent arbitrary-precision uniform quantization in ONNX. This enables:
8+
QONNX (Quantized ONNX) introduces four new custom operators -- `IntQuant`_, `BipolarQuant`_, `FloatQuant`_, and `Trunc`_
9+
-- in order to represent arbitrary-precision uniform quantization in ONNX. This enables:
810

9-
* Representation of binary, ternary, 3-bit, 4-bit, 6-bit or any other quantization.
11+
* Representation of binary, ternary, 3-bit, 4-bit, 6-bit or any other quantization, or quantized floating-point values.
1012

1113
* Quantization is an operator itself, and can be applied to any parameter or layer input.
1214

@@ -33,11 +35,13 @@ Quickstart
3335
Operator definitions
3436
+++++++++++++++++++++
3537

36-
* `Quant <docs/qonnx-custom-ops/quant_op.md>`_ for 2-to-arbitrary-bit quantization, with scaling and zero-point
38+
* `IntQuant`_ for 2-to-arbitrary-bit quantization, with scaling and zero-point
3739

38-
* `BipolarQuant <docs/qonnx-custom-ops/bipolar_quant_op.md>`_ for 1-bit (bipolar) quantization, with scaling and zero-point
40+
* `BipolarQuant`_ for 1-bit (bipolar) quantization, with scaling and zero-point
3941

40-
* `Trunc <docs/qonnx-custom-ops/trunc_op.md>`_ for truncating to a specified number of bits, with scaling and zero-point
42+
* `FloatQuant`_ for arbitrary-precision-float-quantized values
43+
44+
* `Trunc`_ for truncating to a specified number of bits, with scaling and zero-point
4145

4246
Installation
4347
+++++++++++++
@@ -90,11 +94,19 @@ QONNX also uses GitHub actions to run the full test suite on PRs.
9094

9195
ONNX-Based Compiler Infrastructure <overview>
9296
Tutorials <tutorials>
97+
qonnx-custom-ops/overview
9398
API <api/modules>
9499
License <license>
95100
Contributors <authors>
101+
Read Me <readme_link>
102+
Release Notes <changelog>
96103
Index <genindex>
97104

98105

99106
* :ref:`modindex`
100107
* :ref:`search`
108+
109+
.. _IntQuant: qonnx-custom-ops/intquant_v1.html
110+
.. _BipolarQuant: qonnx-custom-ops/bipolarquant_v1.html
111+
.. _FloatQuant: qonnx-custom-ops/floatquant_v1.html
112+
.. _Trunc: qonnx-custom-ops/trunc_v2.html

docs/license.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
License
55
========
66

7-
.. include:: ../LICENSE
7+
.. literalinclude:: ../LICENSE

docs/qonnx-custom-ops/overview.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ It is manually updated, since QONNX custom operators are relatively few in numbe
77

88
|**Operator**|**Since version**||
99
|-|-|-|
10-
|<a href="bipolarquant_v1.md">BipolarQuant</a>|<a href="bipolarquant_v1.md">1</a>|
11-
|<a href="floatquant_v1.md">FloatQuant</a>|<a href="floatquant_v1.md">1</a>|
12-
|<a href="intquant_v1.md">IntQuant</a>|<a href="intquant_v1.md">1</a>|
13-
|<a href="trunc_v2.md">Trunc</a>|<a href="trunc_v2.md">2</a>, <a href="trunc_v1.md">1</a>|
10+
|[BipolarQuant](bipolarquant_v1.md) | [1](bipolarquant_v1.md)||
11+
|[FloatQuant](floatquant_v1.md) | [1](floatquant_v1.md)||
12+
|[IntQuant](intquant_v1.md) | [1](intquant_v1.md)||
13+
|[Trunc](trunc_v2.md) | [2](trunc_v2.md), [1](trunc_v1.md)||

docs/readme.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.

docs/readme_link.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```{include} ../README.md
2+
:relative-docs: docs/
3+
```

0 commit comments

Comments
 (0)