arduino / arduino/ArduinoTensorFlowLiteTutorials

no matching function for call to tflite::MicroInterpreter

Đang mở
#36 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Jupyter Notebook
Star
270
Fork
122
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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*)'

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Lệnh gọi bị lỗi nằm trong IMU_Classifier/IMU_Classifier.ino tại setup(), và các hàm dựng có sẵn được liệt kê trong src/tensorflow/lite/micro/micro_interpreter.h. Hãy bắt đầu bằng cách so sánh lệnh gọi đó với các chữ ký hàm dựng đã khai báo và biên dịch sketch; công việc được xem là hoàn tất khi lỗi hàm dựng được giải quyết và sketch xây dựng thành công.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
arduino, cpp
Lĩnh vực
embedded-iot, machine-learning
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.