| 110 | } |
| 111 | |
| 112 | void* 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 | |
| 121 | void Free(TfLiteContext* context, void* buffer) { |
| 122 | eigen_support::DecrementUsageCounter(context); |
nothing calls this directly
no test coverage detected