From f4e559fb7277b10190604a90e872e944deafe3f7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=98=A4=ED=98=95=EC=84=9D/On-Device=20Lab=28SR=29/Staff?= =?utf8?q?=20Engineer/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Thu, 22 Aug 2019 10:47:33 +0900 Subject: [PATCH] Fix build fail by signed integer compare with unsigned (#6804) Fix build fail by type change of num_elements() to unsigned Signed-off-by: Hyeongseok Oh --- runtimes/neurun/backend/acl_cl/KernelGenerator.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtimes/neurun/backend/acl_cl/KernelGenerator.cc b/runtimes/neurun/backend/acl_cl/KernelGenerator.cc index 7c98131..923f503 100644 --- a/runtimes/neurun/backend/acl_cl/KernelGenerator.cc +++ b/runtimes/neurun/backend/acl_cl/KernelGenerator.cc @@ -445,7 +445,8 @@ void KernelGenerator::visit(const model::operation::FullyConnectedNode &node) const auto feature_size = _ctx.at(input_index).shape().num_elements(); UNUSED_RELEASE(feature_size); - assert(feature_size == batch_size * input_size); + assert((batch_size * input_size) >= 0); + assert(feature_size == static_cast(batch_size * input_size)); // for reshaping needs_reshape = true; -- 2.7.4