[enco] Comparing Featureshape using operator "!=" (#2708)
author윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 <hyunsik.yoon@samsung.com>
Tue, 18 Dec 2018 06:07:55 +0000 (15:07 +0900)
committer박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Tue, 18 Dec 2018 06:07:55 +0000 (15:07 +0900)
Code were modified to use newly defined operator "!=" of FeatureShape.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
contrib/enco/core/src/IRValidator.cpp

index 319d6b0..1337b88 100644 (file)
@@ -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;
     }
   }