Fix build break on debug build (#1427)
author이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 <chunseok.lee@samsung.com>
Wed, 30 May 2018 07:31:16 +0000 (16:31 +0900)
committer서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 <sangmin7.seo@samsung.com>
Wed, 30 May 2018 07:31:16 +0000 (16:31 +0900)
Fix debug build break for pure acl runtime

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
runtimes/pure_arm_compute/src/compilation.cc

index 0d07d2c..0b580d9 100644 (file)
@@ -313,7 +313,8 @@ void Planner::visit(const ::internal::tflite::op::Add::Node &node)
 
   param.activation = static_cast<FuseCode>(_ctx.at(activation_index).asScala<int32_t>());
 
-  auto stage = [param](const IAllocationContext &ctx, IExecutionBuilder &builder) {
+  auto stage = [param, lhs_shape, rhs_shape](const IAllocationContext &ctx,
+                                             IExecutionBuilder &builder) {
     auto ofm_alloc = ctx.at(::internal::tflite::operand::Index{param.ofm_index});
     auto lhs_alloc = ctx.at(::internal::tflite::operand::Index{param.lhs_index});
     auto rhs_alloc = ctx.at(::internal::tflite::operand::Index{param.rhs_index});
@@ -334,9 +335,9 @@ void Planner::visit(const ::internal::tflite::op::Add::Node &node)
     else
     {
       // NOTE SimpleAritemeticAdditionLayer does not support broadcasting
-      assert(lhs_shape.depth() == rhs_shape.depth());
-      assert(lhs_shape.height() == rhs_shape.height());
-      assert(lhs_shape.width() == rhs_shape.width());
+      assert(lhs_shape.C == rhs_shape.C);
+      assert(lhs_shape.H == rhs_shape.H);
+      assert(lhs_shape.W == rhs_shape.W);
 
       auto l = make_layer<SimpleArithmeticAdditionLayer>();