| 101 | }; |
| 102 | |
| 103 | void* Init(TfLiteContext* context, const char* buffer, size_t length) { |
| 104 | auto* op_data = new OpData(); |
| 105 | context->AddTensors(context, kNumTemporaryTensors, |
| 106 | &op_data->scratch_tensor_index); |
| 107 | return op_data; |
| 108 | } |
| 109 | |
| 110 | void Free(TfLiteContext* context, void* buffer) { |
| 111 | delete reinterpret_cast<OpData*>(buffer); |
nothing calls this directly
no test coverage detected