Skip to content

Commit 833575e

Browse files
authored
Prepare for rel-1.16.0 (#5959)
### Description Prepare for rel-1.16.0 branch cut (planned for 02/26 https://github.com/onnx/onnx/wiki/Logistics-for-ONNX-Release-1.16.0) ### Motivation and Context ONNX 1.16.0 is planned to be released on 3/18 --------- Signed-off-by: Charles Volzka <[email protected]>
1 parent ac862bb commit 833575e

File tree

7 files changed

+9
-6
lines changed

7 files changed

+9
-6
lines changed

docs/Versioning.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ Changes to the semantics of an operator or function MUST be introduced in a new
9494
> step (1).
9595
> 4. Register the new operator in the corresponding `operator_sets`
9696
> header file.
97-
> 5. Add a version adapter to `convert.h` so that the version
98-
> converter can upgrade the old version of the operator to the new
97+
> 5. Add a version adapter to `convert.h` so that the version
98+
> converter can upgrade the old version of the operator to the new
9999
> one. This can be a `CompatibleAdapter` in case operators following
100-
> the old schema are still valid under the new one (which is usually
100+
> the old schema are still valid under the new one (which is usually
101101
> true).
102102
> 6. A version adapter to downgrade the new operator to the older version
103103
> can also be added to `convert.h` but it's not mandatory.
@@ -189,6 +189,7 @@ ONNX version|IR version|Opset version ai.onnx|Opset version ai.onnx.ml|Opset ver
189189
1.14.0|9|19|3|1
190190
1.14.1|9|19|3|1
191191
1.15.0|9|20|4|1
192+
1.16.0|10|21|5|1
192193

193194
A programmatically accessible version of the above table is available [here](../onnx/helper.py). Limited version number
194195
information is also maintained in [version.h](../onnx/common/version.h) and [schema.h](../onnx/defs/schema.h).
Binary file not shown.

onnx/common/version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
namespace ONNX_NAMESPACE {
1010

1111
// Represents the most recent release version. Updated with every release.
12-
constexpr const char* LAST_RELEASE_VERSION = "1.15.0";
12+
constexpr const char* LAST_RELEASE_VERSION = "1.16.0";
1313

1414
} // namespace ONNX_NAMESPACE

onnx/defs/schema.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,7 @@ class OpSchemaRegistry final : public ISchemaRegistry {
11641164
// the max version above in a *release* version of ONNX. But in other
11651165
// versions, the max version may be ahead of the last-release-version.
11661166
last_release_version_map_[ONNX_DOMAIN] = 21;
1167-
last_release_version_map_[AI_ONNX_ML_DOMAIN] = 4;
1167+
last_release_version_map_[AI_ONNX_ML_DOMAIN] = 5;
11681168
last_release_version_map_[AI_ONNX_TRAINING_DOMAIN] = 1;
11691169
last_release_version_map_[AI_ONNX_PREVIEW_TRAINING_DOMAIN] = 1;
11701170
}

onnx/helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
("1.14.0", 9, 19, 3, 1),
7676
("1.14.1", 9, 19, 3, 1),
7777
("1.15.0", 9, 20, 4, 1),
78-
("1.16.0", 9, 20, 5, 1),
78+
("1.16.0", 10, 21, 5, 1),
7979
]
8080

8181
VersionMapType = Dict[Tuple[str, int], int]

onnx/test/helper_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,11 +406,13 @@ def test(opset_versions: List[Tuple[str, int]], ir_version: int) -> None:
406406
test([("", 18)], 8)
407407
test([("", 19)], 9)
408408
test([("", 20)], 9)
409+
test([("", 21)], 10)
409410
# standard opset can be referred to using empty-string or "ai.onnx"
410411
test([("ai.onnx", 9)], 4)
411412
test([("ai.onnx.ml", 2)], 6)
412413
test([("ai.onnx.ml", 3)], 8)
413414
test([("ai.onnx.ml", 4)], 9)
415+
test([("ai.onnx.ml", 5)], 10)
414416
test([("ai.onnx.training", 1)], 7)
415417
# helper should pick *max* IR version required from all opsets specified.
416418
test([("", 10), ("ai.onnx.ml", 2)], 6)

0 commit comments

Comments
 (0)