Categories
Misc

Tflite does not recognize FlatButterModel

Hi.

I took this code from TensorFlow’s own website:

std::unique_ptr<tflite::FlatBufferModel> model = tflite::FlatBufferModel::BuildFromFile("hand_landmark.tflite"); 

But `FlatBufferModel` has a red underline and the error prompt reads:

No member named 'FlatBufferModel' in namespace 'tflite' 

These are my imports:

#include <iostream> #include "src/VideoProcessing.h" #include <cstdio> #include "/home/me/tensorflow_src/tensorflow/lite/interpreter.h" #include "/home/me/tensorflow_src/tensorflow/lite/kernels/register.h" #include "/home/me/tensorflow_src/tensorflow/lite/model.h" #include "/home/me/tensorflow_src/tensorflow/lite/optional_debug_tools.h" 

submitted by /u/janissary2016
[visit reddit] [comments]

Leave a Reply

Your email address will not be published.