mirror of
https://github.com/vee1e/tflite-micro.git
synced 2026-09-02 10:17:54 +00:00
BUG=b/239225101 In the current Python interpreter, we do Py_DECREF(model_) in the body destructor of InterpreterWrapper, which will be called first before member variables' destructors. This causes an issue because destructing the MicroInterpreter (namely FreeSubgraphs) relies on some parts of model_. This means that when the destructor of MicroInterpreter is called, the model may have already been released, causing a segfault. We can bypass this by not using a unique pointer for MicroInterpreter, and simply delete interpreter_ before we call Py_DECREF(model_). BUG=b/238459185 Some error codes are expected, such as cycles_until_run in the circular buffer op. The interpreter wrapper shouldn't throw any exception in Python when invoke returns an error. |
||
|---|---|---|
| .. | ||
| interpreter | ||
| tflite_size | ||