Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/runtime/contrib/edgetpu/edgetpu_runtime.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <string>

#include "../tflite/tflite_runtime.h"
#include "edgetpu.h"

namespace tvm {
namespace runtime {
Expand All @@ -43,6 +44,14 @@ namespace runtime {
*/
class EdgeTPURuntime : public TFLiteRuntime {
public:
/*!
* \brief Destructor of EdgeTPURuntime.
*
* NOTE: tflite::Interpreter member should be destruct before the EdgeTpuContext member
* destruction. If the order is reverse, occurs SEGV in the destructor of tflite::Interpreter.
*/
~EdgeTPURuntime() { interpreter_.reset(); }

/*!
* \return The type key of the executor.
*/
Expand Down