| 18 | namespace flex { |
| 19 | |
| 20 | TfLiteStatus ConvertStatus(TfLiteContext* context, |
| 21 | const tensorflow::Status& status) { |
| 22 | if (!status.ok()) { |
| 23 | context->ReportError(context, "%s", status.error_message().c_str()); |
| 24 | return kTfLiteError; |
| 25 | } |
| 26 | return kTfLiteOk; |
| 27 | } |
| 28 | |
| 29 | TfLiteStatus CopyShapeAndType(TfLiteContext* context, |
| 30 | const tensorflow::Tensor& src, |