delete the supported domain version upper bounds (#23237)

### Description
<!-- Describe your changes. -->

This PR changes the range of ONNX versions supported by CANN graph
inference to no upper limit (the previous version supports between 8 and
15), because the CANN version is further upgraded to support some
developers' requirements for higher ONNX versions.
### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
This commit is contained in:
Xinpeng Dou 2025-02-01 10:21:41 +08:00 committed by GitHub
parent bb7f9616e6
commit 267b49353b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,8 +10,7 @@
namespace onnxruntime {
namespace cann {
static int lower_bound = 8; // Supported domain version lower bounds
static int upper_bound = 15; // Supported domain version upper bounds
static int lower_bound = 8; // Supported domain version lower bounds
std::once_flag flag;
@ -62,7 +61,7 @@ std::vector<NodeIndex> SupportONNXModel(const GraphViewer& graph_viewer) {
for (const auto& index : graph_viewer.GetNodesInTopologicalOrder()) {
const auto& node = graph_viewer.GetNode(index);
if (node->Domain() != kOnnxDomain || domain_version < lower_bound || domain_version > upper_bound ||
if (node->Domain() != kOnnxDomain || domain_version < lower_bound ||
!cann_supported_ops.count(node->OpType())) {
unsupported_nodes.push_back(index);
continue;