From 6a0ddfbad1af3f1fe62bc7e309dfc0920f415e35 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=9C=A4=ED=98=84=EC=8B=9D/On-Device=20Lab=28SR=29/Princip?= =?utf8?q?al=20Engineer/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Tue, 18 Dec 2018 15:07:55 +0900 Subject: [PATCH] [enco] Comparing Featureshape using operator "!=" (#2708) Code were modified to use newly defined operator "!=" of FeatureShape. Signed-off-by: Hyun Sik Yoon --- contrib/enco/core/src/IRValidator.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/contrib/enco/core/src/IRValidator.cpp b/contrib/enco/core/src/IRValidator.cpp index 319d6b0..1337b88 100644 --- a/contrib/enco/core/src/IRValidator.cpp +++ b/contrib/enco/core/src/IRValidator.cpp @@ -73,16 +73,7 @@ bool validate_output_shape(Code *code) auto actual_shape = eval_out->shape(); - if (actual_shape.width() != expected_shape.width()) - return false; - - if (actual_shape.height() != expected_shape.height()) - return false; - - if (actual_shape.depth() != expected_shape.depth()) - return false; - - if (actual_shape.batch() != expected_shape.batch()) + if (actual_shape != expected_shape) return false; } } -- 2.7.4