mirror of
https://github.com/zebrajr/tensorflow.git
synced 2025-12-07 00:20:20 +01:00
Use TF_LITE_KERNEL_LOG instead of report_error
PiperOrigin-RevId: 383535580 Change-Id: I83186751d13dcb27515831743563f61d0ff2fdf2
This commit is contained in:
parent
985de0ce26
commit
55acb46ee7
|
|
@ -76,7 +76,7 @@ TfLiteStatus ResizeOutputTensors(TfLiteContext* context, TfLiteNode* node,
|
|||
} else if (size_splits->type == kTfLiteInt64) {
|
||||
GetSizeSplitsVector<int64_t>(size_splits, &size_splits_vector);
|
||||
} else {
|
||||
context->ReportError(context, "size_splits only support type int32|int64.");
|
||||
TF_LITE_KERNEL_LOG(context, "size_splits only support type int32|int64.");
|
||||
return kTfLiteError;
|
||||
}
|
||||
|
||||
|
|
@ -88,8 +88,9 @@ TfLiteStatus ResizeOutputTensors(TfLiteContext* context, TfLiteNode* node,
|
|||
if (minus_one_index == -1) {
|
||||
minus_one_index = i;
|
||||
} else {
|
||||
context->ReportError(context,
|
||||
"The size_splits contains more than one -1.");
|
||||
TF_LITE_KERNEL_LOG(context,
|
||||
"The size_splits contains more than one -1.");
|
||||
return kTfLiteError;
|
||||
}
|
||||
} else {
|
||||
size_splits_sum += size_splits_vector.at(i);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user