tmoreau89 commented on a change in pull request #4698: [Runtime] EdgeTPU
runtime for Coral Boards
URL: https://github.com/apache/incubator-tvm/pull/4698#discussion_r367197362
##########
File path: src/runtime/contrib/tflite/tflite_runtime.cc
##########
@@ -92,20 +91,23 @@ DataType TfLiteDType2TVMDType(TfLiteType dtype) {
}
}
-
void TFLiteRuntime::Init(const std::string& tflite_model_bytes,
TVMContext ctx) {
const char* buffer = tflite_model_bytes.c_str();
size_t buffer_size = tflite_model_bytes.size();
std::unique_ptr<tflite::FlatBufferModel> model =
tflite::FlatBufferModel::BuildFromBuffer(buffer, buffer_size);
tflite::ops::builtin::BuiltinOpResolver resolver;
- tflite::InterpreterBuilder(*model, resolver)(&interpreter_);
- ctx_ = ctx;
-}
+ // Build interpreter
+ if (tflite::InterpreterBuilder(*model, resolver)(&interpreter_) !=
kTfLiteOk) {
Review comment:
thanks for the suggestion, this should be fixed by now
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services