Skip to content

Commit 2306b4a

Browse files
[OVEP] Fix for upsample optype (#761)
1 parent 9c7a151 commit 2306b4a

File tree

1 file changed

+0
-8
lines changed
  • onnxruntime/core/providers/openvino/ov_versions

1 file changed

+0
-8
lines changed

onnxruntime/core/providers/openvino/ov_versions/data_ops.cc

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -469,15 +469,7 @@ void DataOps::populate_op_mode_supported() {
469469
}
470470
}
471471

472-
// check for input dimensions
473472
const auto& x_arg = node->InputDefs()[0];
474-
auto shape = x_arg->Shape();
475-
if (shape != nullptr) {
476-
// input tensor rank cannot be of one dimension
477-
if (shape->dim_size() == 1 || shape->dim_size() == 4) {
478-
return true;
479-
}
480-
}
481473
// x_arg supports only float, int8 and float16 type
482474
if ((x_arg->TypeAsProto()->tensor_type().elem_type() ==
483475
ONNX_NAMESPACE::TensorProto_DataType::TensorProto_DataType_FLOAT) ||

0 commit comments

Comments
 (0)