MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Init

Function Init

tensorflow/lite/kernels/svdf.cc:63–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61constexpr int kOutputTensor = 0;
62
63void* 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
72void Free(TfLiteContext* context, void* buffer) {
73 delete reinterpret_cast<OpData*>(buffer);

Callers

nothing calls this directly

Calls 1

AddTensorsMethod · 0.45

Tested by

no test coverage detected