Skip to content

Commit

Permalink
Prepare for rel-1.17.0 (#6281)
Browse files Browse the repository at this point in the history
### Description
Prepare for rel-1.17.0 branch cut (planned for 08/06
[https://github.com/onnx/onnx/wiki/Logistics-for-ONNX-Release-1.17.0](https://github.com/onnx/onnx/wiki/Logistics-for-ONNX-Release-1.17.0))

### Motivation and Context
ONNX 1.17.0 is planned to be released on 08/20

---------

Signed-off-by: roborags <roborags80@gmail.com>
  • Loading branch information
roborags authored Aug 20, 2024
1 parent cb54169 commit 4392c2c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/Versioning.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ ONNX version|IR version|Opset version ai.onnx|Opset version ai.onnx.ml|Opset ver
1.14.1|9|19|3|1
1.15.0|9|20|4|1
1.16.0|10|21|5|1
1.17.0|10|22|5|1

A programmatically accessible version of the above table is available [here](../onnx/helper.py). Limited version number
information is also maintained in [version.h](../onnx/common/version.h) and [schema.h](../onnx/defs/schema.h).
Expand Down
2 changes: 1 addition & 1 deletion onnx/common/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
namespace ONNX_NAMESPACE {

// Represents the most recent release version. Updated with every release.
constexpr const char* LAST_RELEASE_VERSION = "1.16.2";
constexpr const char* LAST_RELEASE_VERSION = "1.17.0";

} // namespace ONNX_NAMESPACE
4 changes: 2 additions & 2 deletions onnx/defs/schema.h
Original file line number Diff line number Diff line change
Expand Up @@ -1210,7 +1210,7 @@ class OpSchemaRegistry final : public ISchemaRegistry {
// operator schema on specific domain. Update the lowest version when it's
// determined to remove too old version history.
map_[ONNX_DOMAIN] = std::make_pair(1, 22);
map_[AI_ONNX_ML_DOMAIN] = std::make_pair(1, 6);
map_[AI_ONNX_ML_DOMAIN] = std::make_pair(1, 5);
map_[AI_ONNX_TRAINING_DOMAIN] = std::make_pair(1, 1);
// ONNX's preview domain contains operators subject to change, so
// versining is not meaningful and that domain should have only one
Expand All @@ -1220,7 +1220,7 @@ class OpSchemaRegistry final : public ISchemaRegistry {
// the max version above in a *release* version of ONNX. But in other
// versions, the max version may be ahead of the last-release-version.
last_release_version_map_[ONNX_DOMAIN] = 22;
last_release_version_map_[AI_ONNX_ML_DOMAIN] = 6;
last_release_version_map_[AI_ONNX_ML_DOMAIN] = 5;
last_release_version_map_[AI_ONNX_TRAINING_DOMAIN] = 1;
last_release_version_map_[AI_ONNX_PREVIEW_TRAINING_DOMAIN] = 1;
}
Expand Down
2 changes: 1 addition & 1 deletion onnx/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
("1.14.1", 9, 19, 3, 1),
("1.15.0", 9, 20, 4, 1),
("1.16.0", 10, 21, 5, 1),
("1.17.0", 10, 22, 6, 1),
("1.17.0", 10, 22, 5, 1),
]

VersionMapType = Dict[Tuple[str, int], int]
Expand Down
1 change: 1 addition & 0 deletions onnx/test/helper_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ def test(opset_versions: list[tuple[str, int]], ir_version: int) -> None:
test([("", 19)], 9)
test([("", 20)], 9)
test([("", 21)], 10)
test([("", 22)], 10)
# standard opset can be referred to using empty-string or "ai.onnx"
test([("ai.onnx", 9)], 4)
test([("ai.onnx.ml", 2)], 6)
Expand Down

0 comments on commit 4392c2c

Please sign in to comment.