diff options
author | 2018-05-21 07:00:53 -0700 | |
---|---|---|
committer | 2018-05-21 07:03:18 -0700 | |
commit | 158528e2bf1131abc4571e5e31b38e4dfb9199d4 (patch) | |
tree | 4c1776f857f0a0b5eefa2823b26651d7978607bd /tensorflow/contrib/lite/kernels/slice.cc | |
parent | 6b374e903a1ecc27ddf1c4dcb29a4cd8366ccd8b (diff) |
Enhance error reporting.
PiperOrigin-RevId: 197390052
Diffstat (limited to 'tensorflow/contrib/lite/kernels/slice.cc')
-rw-r--r-- | tensorflow/contrib/lite/kernels/slice.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tensorflow/contrib/lite/kernels/slice.cc b/tensorflow/contrib/lite/kernels/slice.cc index b28934e2f7..6a20e802a9 100644 --- a/tensorflow/contrib/lite/kernels/slice.cc +++ b/tensorflow/contrib/lite/kernels/slice.cc @@ -85,7 +85,8 @@ TfLiteStatus ResizeOutputShape(TfLiteContext* context, TF_LITE_ENSURE_STATUS(CalculateOutputShapeVector<int64_t>( context, input, begin, size, &output_shape_vector)); } else { - context->ReportError(context, "Type is currently not supported by Slice."); + context->ReportError( + context, "Type %d is currently not supported by Slice.", begin->type); return kTfLiteError; } @@ -148,7 +149,8 @@ TfLiteStatus Eval(TfLiteContext* context, TfLiteNode* node) { GetBeginAndSizeVectors<int64_t>(NumDimensions(input), begin, size, &begins, &sizes); } else { - context->ReportError(context, "Type is currently not supported by Slice."); + context->ReportError( + context, "Type %d is currently not supported by Slice.", begin->type); return kTfLiteError; } @@ -179,8 +181,8 @@ TfLiteStatus Eval(TfLiteContext* context, TfLiteNode* node) { TF_LITE_SLICE(bool); break; default: - context->ReportError(context, - "Type is currently not supported by Slice."); + context->ReportError( + context, "Type %d is currently not supported by Slice.", input->type); return kTfLiteError; } #undef TF_LITE_SLICE |