| 61 | constexpr int kOutputTensor = 0; |
| 62 | |
| 63 | void* Init(TfLiteContext* context, const char* buffer, size_t length) { |
| 64 | auto* op_data = new OpData(); |
| 65 | op_data->float_weights_time_initialized = false; |
| 66 | // Note: only needs 4 scratch tensors when is_hybrid_op, only 1 otherwise. |
| 67 | context->AddTensors(context, /*tensors_to_add=*/4, |
| 68 | &op_data->scratch_tensor_index); |
| 69 | return op_data; |
| 70 | } |
| 71 | |
| 72 | void Free(TfLiteContext* context, void* buffer) { |
| 73 | delete reinterpret_cast<OpData*>(buffer); |
nothing calls this directly
no test coverage detected