[moco-tf] changing int to uint32_t (#6902)
author윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 <hyunsik.yoon@samsung.com>
Mon, 26 Aug 2019 01:38:56 +0000 (10:38 +0900)
committer박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 <saehie.park@samsung.com>
Mon, 26 Aug 2019 01:38:56 +0000 (10:38 +0900)
changing int to uint32_t to make the type of lhs and rhs of comparison

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
compiler/moco-tf/src/LogHelper.cpp

index a487d17..e7b1bb7 100644 (file)
@@ -36,7 +36,7 @@ std::ostream &operator<<(std::ostream &os, const loco::FilterShape &filter_shape
 std::ostream &operator<<(std::ostream &os, const loco::TensorShape &tensor_shape)
 {
   os << "[";
-  for (int r = 0; r < tensor_shape.rank(); ++r)
+  for (uint32_t r = 0; r < tensor_shape.rank(); ++r)
   {
     if (r)
       os << ",";