Skip to content

Commit

Permalink
Use opset value instead of inferring based on the number of number in…
Browse files Browse the repository at this point in the history
…puts because for Resize opset 13 and above the number of inputs is 1 to 4.
  • Loading branch information
satyajandhyala committed Dec 29, 2023
1 parent 780fc36 commit aaba09b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onnxruntime/core/providers/cpu/tensor/upsamplebase.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class UpsampleBase {
}

auto input_count = info.GetInputCount();
if (input_count == 1) { // opset < 10
if (opset < 10) {
ORT_THROW_IF_ERROR(info.GetAttrs<float>("scales", scales_));
ORT_THROW_IF_ERROR(ScalesValidation(scales_, mode_));
scales_cached_ = true;
Expand Down

0 comments on commit aaba09b

Please sign in to comment.