mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
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:
parent
bb7f9616e6
commit
267b49353b
1 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue