| 148 | }; |
| 149 | |
| 150 | void* Init(TfLiteContext* context, const char* buffer, size_t length) { |
| 151 | auto* scratch_tensor_index = new int; |
| 152 | context->AddTensors(context, kNumTemporaryTensors, scratch_tensor_index); |
| 153 | return scratch_tensor_index; |
| 154 | } |
| 155 | |
| 156 | void Free(TfLiteContext* context, void* buffer) { |
| 157 | delete reinterpret_cast<int*>(buffer); |
nothing calls this directly
no test coverage detected