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

Function Init

tensorflow/lite/kernels/conv.cc:112–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112void* Init(TfLiteContext* context, const char* buffer, size_t length) {
113 // This is a builtin op, so we don't use the contents in 'buffer', if any.
114 // Instead, we allocate a new object to use as scratch space for im2col, and
115 // to carry information from Prepare() to Eval().
116 auto* data = new OpData;
117 eigen_support::IncrementUsageCounter(context);
118 return data;
119}
120
121void Free(TfLiteContext* context, void* buffer) {
122 eigen_support::DecrementUsageCounter(context);

Callers

nothing calls this directly

Calls 1

IncrementUsageCounterFunction · 0.85

Tested by

no test coverage detected