| 2699 | } |
| 2700 | |
| 2701 | TfLiteStatus NNAPIDelegateKernel::Prepare(TfLiteContext* context, |
| 2702 | TfLiteNode* node) { |
| 2703 | if (!nn_compilation_) { |
| 2704 | // Compilation failed earlier, return error. |
| 2705 | return kTfLiteError; |
| 2706 | } |
| 2707 | return kTfLiteOk; |
| 2708 | } |
| 2709 | |
| 2710 | TfLiteStatus NNAPIDelegateKernel::Invoke(TfLiteContext* context, |
| 2711 | TfLiteNode* node) { |