{ 1, 1, 1, 1 }, INFERENCE_TENSOR_SHAPE_NCHW, INFERENCE_TENSOR_DATA_TYPE_FLOAT32, 1
};
- for (auto idx = 0; idx < input_tensor_shape.size(); ++idx) {
+ for (size_t idx = 0; idx < input_tensor_shape.size(); ++idx) {
input_tensor_info.size *= input_tensor_shape[idx];
input_tensor_info.shape[idx] = input_tensor_shape[idx];
}
// NNTrainer needs revered tensor order so make sure to reverse the tensor order.
reverse(input_tensor_info.shape.begin(), input_tensor_info.shape.end());
- for (auto shape_idx = 0; shape_idx < input_tensor_info.shape.size(); ++shape_idx) {
+ for (size_t shape_idx = 0; shape_idx < input_tensor_info.shape.size(); ++shape_idx) {
input_shape_str += to_string(input_tensor_info.shape[shape_idx]);
if (shape_idx < input_tensor_info.shape.size() - 1)
input_shape_str += ":";
if (ret)
throw InvalidOperation("Fail to remove internal model file.");
}
-}
\ No newline at end of file
+}
ASSERT_EQ(ret, MEDIA_VISION_ERROR_NONE);
ret = mv_face_recognition_inference(handle, mv_source);
- if (ret != MEDIA_VISION_ERROR_NO_DATA)
+ if (ret != MEDIA_VISION_ERROR_NO_DATA) {
ASSERT_EQ(ret, MEDIA_VISION_ERROR_NONE);
+ }
ret = mv_destroy_source(mv_source);
ASSERT_EQ(ret, MEDIA_VISION_ERROR_NONE);