From 3ab3d5bee1d799d379c5426921d4a8b1b33c9001 Mon Sep 17 00:00:00 2001 From: Guoyu Wang Date: Mon, 31 Jan 2022 11:10:43 -0800 Subject: [PATCH] fix a minor bug in my previous merge --- .../nnapi/nnapi_builtin/builders/op_support_checker.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/onnxruntime/core/providers/nnapi/nnapi_builtin/builders/op_support_checker.cc b/onnxruntime/core/providers/nnapi/nnapi_builtin/builders/op_support_checker.cc index d29235c898bb7..3857de16f30ea 100644 --- a/onnxruntime/core/providers/nnapi/nnapi_builtin/builders/op_support_checker.cc +++ b/onnxruntime/core/providers/nnapi/nnapi_builtin/builders/op_support_checker.cc @@ -1198,8 +1198,6 @@ int UnaryOpSupportChecker::GetMinSupportedOpSet(const NodeUnit& node_unit) const if (!HasValidQuantizationZeroPoints(initializers, node_unit, {0}, false /* is_input */)) return false; - return false; - // NNAPI requires the scale be 1.f/256 and zero point to be 0 // See https://android.googlesource.com/platform/frameworks/ml/+/refs/heads/android10-c2f2-release/nn/common/operations/Activation.cpp#180 float output_scale = 0.0f;