Entry point for C node plugin API to report an error.
| 878 | |
| 879 | // Entry point for C node plugin API to report an error. |
| 880 | void Subgraph::ReportError(const char* format, ...) { |
| 881 | va_list args; |
| 882 | va_start(args, format); |
| 883 | auto* f = static_cast<Subgraph*>(context_.impl_); |
| 884 | // Note here that context->impl_ is recovering the this pointer for an |
| 885 | // instance of Subgraph to call into the member function ReportErrorImpl |
| 886 | // (this function is static). |
| 887 | f->ReportErrorImpl(format, args); |
| 888 | va_end(args); |
| 889 | } |
| 890 | |
| 891 | TfLiteStatus Subgraph::AddTensors(int tensors_to_add, |
| 892 | int* first_new_tensor_index) { |