Skip to content

no matching function for call to tflite::MicroInterpreter #36

Description

@minnyqiu

In file included from /Users/ballball/Documents/Arduino/libraries/Arduino_TensorFlowLite/src/tensorflow/lite/micro/micro_error_reporter.h:19:0,
from /Users/ballball/Documents/Arduino/gesture/IMU_Classifier/IMU_Classifier.ino:25:
/Users/ballball/Documents/Arduino/libraries/Arduino_TensorFlowLite/src/tensorflow/lite/experimental/micro/compatibility.h:29:0: warning: "TF_LITE_REMOVE_VIRTUAL_DELETE" redefined
#define TF_LITE_REMOVE_VIRTUAL_DELETE

In file included from /Users/ballball/Documents/Arduino/libraries/Arduino_TensorFlowLite/src/tensorflow/lite/micro/all_ops_resolver.h:18:0,
from /Users/ballball/Documents/Arduino/gesture/IMU_Classifier/IMU_Classifier.ino:24:
/Users/ballball/Documents/Arduino/libraries/Arduino_TensorFlowLite/src/tensorflow/lite/micro/compatibility.h:26:0: note: this is the location of the previous definition
#define TF_LITE_REMOVE_VIRTUAL_DELETE \

/Users/ballball/Documents/Arduino/gesture/IMU_Classifier/IMU_Classifier.ino: In function 'void setup()':
/Users/ballball/Documents/Arduino/gesture/IMU_Classifier/IMU_Classifier.ino:91:122: error: no matching function for call to 'tflite::MicroInterpreter::MicroInterpreter(const tflite::Model*&, tflite::AllOpsResolver&, byte [8192], const int&, tflite::MicroErrorReporter*)'
tflInterpreter = new tflite::MicroInterpreter(tflModel, tflOpsResolver, tensorArena, tensorArenaSize, &tflErrorReporter);
^
In file included from /Users/ballball/Documents/Arduino/gesture/IMU_Classifier/IMU_Classifier.ino:26:0:
/Users/ballball/Documents/Arduino/libraries/Arduino_TensorFlowLite/src/tensorflow/lite/micro/micro_interpreter.h:60:3: note: candidate: tflite::MicroInterpreter::MicroInterpreter(const tflite::Model*, const tflite::MicroOpResolver&, tflite::MicroAllocator*, tflite::MicroResourceVariables*, tflite::MicroProfilerInterface*)
MicroInterpreter(const Model* model, const MicroOpResolver& op_resolver,
^~~~~~~~~~~~~~~~
/Users/ballball/Documents/Arduino/libraries/Arduino_TensorFlowLite/src/tensorflow/lite/micro/micro_interpreter.h:60:3: note: no known conversion for argument 3 from 'byte [8192] {aka unsigned char [8192]}' to 'tflite::MicroAllocator*'
/Users/ballball/Documents/Arduino/libraries/Arduino_TensorFlowLite/src/tensorflow/lite/micro/micro_interpreter.h:50:3: note: candidate: tflite::MicroInterpreter::MicroInterpreter(const tflite::Model*, const tflite::MicroOpResolver&, uint8_t*, size_t, tflite::MicroResourceVariables*, tflite::MicroProfilerInterface*)
MicroInterpreter(const Model* model, const MicroOpResolver& op_resolver,
^~~~~~~~~~~~~~~~
/Users/ballball/Documents/Arduino/libraries/Arduino_TensorFlowLite/src/tensorflow/lite/micro/micro_interpreter.h:50:3: note: no known conversion for argument 5 from 'tflite::MicroErrorReporter*' to 'tflite::MicroResourceVariables*'
/Users/ballball/Documents/Arduino/libraries/Arduino_TensorFlowLite/src/tensorflow/lite/micro/micro_interpreter.h:40:7: note: candidate: constexpr tflite::MicroInterpreter::MicroInterpreter(const tflite::MicroInterpreter&)
class MicroInterpreter {
^~~~~~~~~~~~~~~~
/Users/ballball/Documents/Arduino/libraries/Arduino_TensorFlowLite/src/tensorflow/lite/micro/micro_interpreter.h:40:7: note: candidate expects 1 argument, 5 provided
/Users/ballball/Documents/Arduino/gesture/IMU_Classifier/IMU_Classifier.ino: In function 'void loop()':
/Users/ballball/Documents/Arduino/gesture/IMU_Classifier/IMU_Classifier.ino:152:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < NUM_GESTURES; i++) {

exit status 1

Compilation error: no matching function for call to 'tflite::MicroInterpreter::MicroInterpreter(const tflite::Model*&, tflite::AllOpsResolver&, byte [8192], const int&, tflite::MicroErrorReporter*)'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions