Skip to content

Commit

Permalink
Update onnxruntime/core/optimizer/transpose_optimization/onnx_transpo…
Browse files Browse the repository at this point in the history
…se_optimization.cc

Co-authored-by: Scott McKay <[email protected]>
  • Loading branch information
adrianlizarraga and skottmckay authored Aug 17, 2023
1 parent ff8b861 commit 532f11e
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1193,7 +1193,12 @@ bool TransposeQuantizeDequantizeAxis(const api::GraphRef& graph, const std::vect

constexpr bool HandleQuantizeDequantizeAxis(const api::GraphRef& graph, const std::vector<int64_t>& perm,
api::NodeRef& node, int64_t opset) {
if (opset >= 13) {
if (opset < 13) {
// no `axis` value until opset 13
return true;
}

return TransposeQuantizeDequantizeAxis(graph, perm, node);;
return TransposeQuantizeDequantizeAxis(graph, perm, node);
}

Expand Down

0 comments on commit 532f11e

Please sign in to comment.