Я клонирую Keil5 в качестве примера проектов tenorflow-lite для микропроцессоров . Когда я открываю проект softmax_test и собираю его, там выводятся многочисленные ошибки, которые не реально c исправить по одной.
Вот ошибки :
*** Using Compiler '', folder: 'D:\Keil_v5\ARM\ARMCC\bin\'
Rebuild target 'softmax_test'
compiling debug_log_numbers.cc...
.\tensorflow/lite/experimental/micro/debug_log_numbers.h(22): error: #20: identifier "int32_t" is undefined
void DebugLogInt32(int32_t i);
.\tensorflow/lite/experimental/micro/debug_log_numbers.h(23): error: #20: identifier "uint32_t" is undefined
void DebugLogUInt32(uint32_t i);
.\tensorflow/lite/experimental/micro/debug_log_numbers.h(24): error: #20: identifier "uint32_t" is undefined
void DebugLogHex(uint32_t i);
tensorflow/lite/experimental/micro/debug_log_numbers.cc(61): error: #20: identifier "uint32_t" is undefined
char* FastUInt32ToBufferLeft(uint32_t i, char* buffer, int base) {
tensorflow/lite/experimental/micro/debug_log_numbers.cc(61): error: #18: expected a ")"
char* FastUInt32ToBufferLeft(uint32_t i, char* buffer, int base) {
tensorflow/lite/experimental/micro/debug_log_numbers.cc(61): error: #65: expected a ";"
char* FastUInt32ToBufferLeft(uint32_t i, char* buffer, int base) {
tensorflow/lite/experimental/micro/debug_log_numbers.cc(143): warning: #12-D: parsing restarts here after previous syntax error
const int32_t scale_shifts_size = 13;
tensorflow/lite/experimental/micro/debug_log_numbers.cc(144): error: #20: identifier "int8_t" is undefined
const int8_t scale_shifts[13] = {3, 4, 8, 11, 13, 14, 17,
tensorflow/lite/experimental/micro/debug_log_numbers.cc(146): error: #757: "uint32_t" is not a type name
uint32_t scaled_fraction = fraction;
tensorflow/lite/experimental/micro/debug_log_numbers.cc(146): error: #20: identifier "fraction" is undefined
…………
…………
tensorflow/lite/kernels/kernel_util.cc(51): warning: #177-D: variable "scale" was declared but never referenced
const auto scale = output->params.scale;
tensorflow/lite/kernels/kernel_util.cc(52): warning: #177-D: variable "zero_point" was declared but never referenced
const auto zero_point = output->params.zero_point;
tensorflow/lite/kernels/kernel_util.cc(134): error: #135: namespace "std" has no member "unique_ptr"
std::unique_ptr<TfLiteIntArray, void (*)(TfLiteIntArray*)> shape(
tensorflow/lite/kernels/kernel_util.cc(134): error: #254: type name is not allowed
std::unique_ptr<TfLiteIntArray, void (*)(TfLiteIntArray*)> shape(
tensorflow/lite/kernels/kernel_util.cc(134): error: #29: expected an expression
std::unique_ptr<TfLiteIntArray, void (*)(TfLiteIntArray*)> shape(
tensorflow/lite/kernels/kernel_util.cc(134): error: #109: expression preceding parentheses of apparent call must have (pointer-to-) function type
std::unique_ptr<TfLiteIntArray, void (*)(TfLiteIntArray*)> shape(
tensorflow/lite/kernels/kernel_util.cc(134): error: #254: type name is not allowed
std::unique_ptr<TfLiteIntArray, void (*)(TfLiteIntArray*)> shape(
tensorflow/lite/kernels/kernel_util.cc(134): error: #29: expected an expression
std::unique_ptr<TfLiteIntArray, void (*)(TfLiteIntArray*)> shape(
tensorflow/lite/kernels/kernel_util.cc(134): error: #20: identifier "shape" is undefined
std::unique_ptr<TfLiteIntArray, void (*)(TfLiteIntArray*)> shape(
tensorflow/lite/kernels/kernel_util.cc: 2 warnings, 26 errors
compiling retarget_io.c...
".\Objects\softmax_test.axf" - **212 Error(s)**, 9 Warning(s).
Target not created.
Build Time Elapsed: 00:00:03