From: jijoong.moon Date: Mon, 20 Mar 2023 22:28:23 +0000 (+0900) Subject: [ Trivial ] add more error infor X-Git-Tag: accepted/tizen/unified/20230425.130129~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=46738bf1f55df5bdccd44f6334e762e454b25970;p=platform%2Fcore%2Fml%2Fnntrainer.git [ Trivial ] add more error infor add more error infor when tflite and input dim mismatch. **Self evaluation:** 1. Build test: [X]Passed [ ]Failed [ ]Skipped 2. Run test: [X]Passed [ ]Failed [ ]Skipped Signed-off-by: jijoong.moon --- diff --git a/nntrainer/layers/tflite_layer.cpp b/nntrainer/layers/tflite_layer.cpp index 7189107..ca694df 100644 --- a/nntrainer/layers/tflite_layer.cpp +++ b/nntrainer/layers/tflite_layer.cpp @@ -110,7 +110,8 @@ void TfLiteLayer::finalize(InitLayerContext &context) { for (size_t idx = 0; idx < dims.size(); idx++) { NNTR_THROW_IF(dims[idx] != input_dims[idx], std::invalid_argument) - << "Input dimensions mismatch"; + << "Input dimensions mismatch -> " << idx << ":" << dims[idx] << " " + << input_dims[idx]; } std::vector output_dims;