| 852 | } |
| 853 | |
| 854 | TfLiteStatus Subgraph::ResizeTensor(TfLiteContext* context, |
| 855 | TfLiteTensor* tensor, |
| 856 | TfLiteIntArray* new_size) { |
| 857 | // Note here that context->impl_ is recovering the this pointer for an |
| 858 | // instance of Interpreter to call into the member function ResizeTensorImpl |
| 859 | // (this function is static). |
| 860 | return static_cast<Subgraph*>(context->impl_) |
| 861 | ->ResizeTensorImpl(tensor, new_size); |
| 862 | } |
| 863 | |
| 864 | void Subgraph::ReportErrorImpl(const char* format, va_list args) { |
| 865 | error_reporter_->Report(format, args); |