Hello, Me again
I am attempting to compile the example-portenta-lorawan example with my own model for the Portenta H7, I am getting an error when trying to compile with my model, but everything works when attempting to compile the model in a clean pull of the repo. So whatever is going wrong is something that I am doing.
My image size is 64x64,
Single image recognition,
Grayscale
and using MobileNetV2 0.1
with version 0.13.0 of the Arduino-CLI - arduino-cli Version: 0.13.0 Commit: 693a045
The error I receive is:
/home/kevin/.arduino15/packages/arduino/hardware/mbed/1.3.1/cores/arduino/mbed.h:4:0,
from /tmp/arduino-sketch-45116531070844582DF2F37665C60C4C/sketch/src/edge-impulse-sdk/tensorflow/lite/micro/kernels/../../../../classifier/ei_classifier_config.h:29,
from /tmp/arduino-sketch-45116531070844582DF2F37665C60C4C/sketch/src/edge-impulse-sdk/tensorflow/lite/micro/kernels/add.cpp:2:
./src/edge-impulse-sdk/tensorflow/lite/kernels/internal/quantization_util.h: In function 'tflite::QuantizationParams tflite::ChooseQuantizationParams(double, double, bool)':
/home/kevin/.arduino15/packages/arduino/hardware/mbed/1.3.1/cores/arduino/Arduino.h:77:16: error: expected unqualified-id before '(' token
#define abs(x) ((x)>0?(x):-(x))
^
./src/edge-impulse-sdk/tensorflow/lite/kernels/internal/quantization_util.h:67:12: note: in expansion of macro 'abs'
std::abs(qmin_double) + std::abs(rmin / scale);
^
/home/kevin/.arduino15/packages/arduino/hardware/mbed/1.3.1/cores/arduino/Arduino.h:77:16: error: expected unqualified-id before '(' token
#define abs(x) ((x)>0?(x):-(x))
^
./src/edge-impulse-sdk/tensorflow/lite/kernels/internal/quantization_util.h:67:36: note: in expansion of macro 'abs'
std::abs(qmin_double) + std::abs(rmin / scale);
^
/home/kevin/.arduino15/packages/arduino/hardware/mbed/1.3.1/cores/arduino/Arduino.h:77:16: error: expected unqualified-id before '(' token
#define abs(x) ((x)>0?(x):-(x))
^
./src/edge-impulse-sdk/tensorflow/lite/kernels/internal/quantization_util.h:69:12: note: in expansion of macro 'abs'
std::abs(qmax_double) + std::abs(rmax / scale);
^
/home/kevin/.arduino15/packages/arduino/hardware/mbed/1.3.1/cores/arduino/Arduino.h:77:16: error: expected unqualified-id before '(' token
#define abs(x) ((x)>0?(x):-(x))
^
./src/edge-impulse-sdk/tensorflow/lite/kernels/internal/quantization_util.h:69:36: note: in expansion of macro 'abs'
std::abs(qmax_double) + std::abs(rmax / scale);
^
In file included from /home/kevin/.arduino15/packages/arduino/hardware/mbed/1.3.1/cores/arduino/mbed.h:4:0,
from /tmp/arduino-sketch-45116531070844582DF2F37665C60C4C/sketch/src/edge-impulse-sdk/tensorflow/lite/micro/kernels/../../../../classifier/ei_classifier_config.h:29,
from /tmp/arduino-sketch-45116531070844582DF2F37665C60C4C/sketch/src/edge-impulse-sdk/tensorflow/lite/micro/kernels/conv.cpp:2:
./src/edge-impulse-sdk/tensorflow/lite/kernels/internal/quantization_util.h: In function 'tflite::QuantizationParams tflite::ChooseQuantizationParams(double, double, bool)':
/home/kevin/.arduino15/packages/arduino/hardware/mbed/1.3.1/cores/arduino/Arduino.h:77:16: error: expected unqualified-id before '(' token
#define abs(x) ((x)>0?(x):-(x))
^
./src/edge-impulse-sdk/tensorflow/lite/kernels/internal/quantization_util.h:67:12: note: in expansion of macro 'abs'
std::abs(qmin_double) + std::abs(rmin / scale);
^
/home/kevin/.arduino15/packages/arduino/hardware/mbed/1.3.1/cores/arduino/Arduino.h:77:16: error: expected unqualified-id before '(' token
#define abs(x) ((x)>0?(x):-(x))
^
./src/edge-impulse-sdk/tensorflow/lite/kernels/internal/quantization_util.h:67:36: note: in expansion of macro 'abs'
std::abs(qmin_double) + std::abs(rmin / scale);
^
/home/kevin/.arduino15/packages/arduino/hardware/mbed/1.3.1/cores/arduino/Arduino.h:77:16: error: expected unqualified-id before '(' token
#define abs(x) ((x)>0?(x):-(x))
^
./src/edge-impulse-sdk/tensorflow/lite/kernels/internal/quantization_util.h:69:12: note: in expansion of macro 'abs'
std::abs(qmax_double) + std::abs(rmax / scale);
^
/home/kevin/.arduino15/packages/arduino/hardware/mbed/1.3.1/cores/arduino/Arduino.h:77:16: error: expected unqualified-id before '(' token
#define abs(x) ((x)>0?(x):-(x))
^
./src/edge-impulse-sdk/tensorflow/lite/kernels/internal/quantization_util.h:69:36: note: in expansion of macro 'abs'
std::abs(qmax_double) + std::abs(rmax / scale);
^
In file included from /home/kevin/.arduino15/packages/arduino/hardware/mbed/1.3.1/cores/arduino/mbed.h:4:0,
from /tmp/arduino-sketch-45116531070844582DF2F37665C60C4C/sketch/src/edge-impulse-sdk/tensorflow/lite/micro/kernels/../../../../classifier/ei_classifier_config.h:29,
from /tmp/arduino-sketch-45116531070844582DF2F37665C60C4C/sketch/src/edge-impulse-sdk/tensorflow/lite/micro/kernels/depthwise_conv.cpp:2:
./src/edge-impulse-sdk/tensorflow/lite/kernels/internal/quantization_util.h: In function 'tflite::QuantizationParams tflite::ChooseQuantizationParams(double, double, bool)':
/home/kevin/.arduino15/packages/arduino/hardware/mbed/1.3.1/cores/arduino/Arduino.h:77:16: error: expected unqualified-id before '(' token
#define abs(x) ((x)>0?(x):-(x))
^
./src/edge-impulse-sdk/tensorflow/lite/kernels/internal/quantization_util.h:67:12: note: in expansion of macro 'abs'
std::abs(qmin_double) + std::abs(rmin / scale);
^
/home/kevin/.arduino15/packages/arduino/hardware/mbed/1.3.1/cores/arduino/Arduino.h:77:16: error: expected unqualified-id before '(' token
#define abs(x) ((x)>0?(x):-(x))
^
./src/edge-impulse-sdk/tensorflow/lite/kernels/internal/quantization_util.h:67:36: note: in expansion of macro 'abs'
std::abs(qmin_double) + std::abs(rmin / scale);
^
/home/kevin/.arduino15/packages/arduino/hardware/mbed/1.3.1/cores/arduino/Arduino.h:77:16: error: expected unqualified-id before '(' token
#define abs(x) ((x)>0?(x):-(x))
^
./src/edge-impulse-sdk/tensorflow/lite/kernels/internal/quantization_util.h:69:12: note: in expansion of macro 'abs'
std::abs(qmax_double) + std::abs(rmax / scale);
^
/home/kevin/.arduino15/packages/arduino/hardware/mbed/1.3.1/cores/arduino/Arduino.h:77:16: error: expected unqualified-id before '(' token
#define abs(x) ((x)>0?(x):-(x))
^
./src/edge-impulse-sdk/tensorflow/lite/kernels/internal/quantization_util.h:69:36: note: in expansion of macro 'abs'
std::abs(qmax_double) + std::abs(rmax / scale);
^
In file included from /home/kevin/.arduino15/packages/arduino/hardware/mbed/1.3.1/cores/arduino/mbed.h:4:0,
from /tmp/arduino-sketch-45116531070844582DF2F37665C60C4C/sketch/src/edge-impulse-sdk/tensorflow/lite/micro/kernels/../../../../classifier/ei_classifier_config.h:29,
from /tmp/arduino-sketch-45116531070844582DF2F37665C60C4C/sketch/src/edge-impulse-sdk/tensorflow/lite/micro/kernels/fully_connected.cpp:2:
./src/edge-impulse-sdk/tensorflow/lite/kernels/internal/quantization_util.h: In function 'tflite::QuantizationParams tflite::ChooseQuantizationParams(double, double, bool)':
/home/kevin/.arduino15/packages/arduino/hardware/mbed/1.3.1/cores/arduino/Arduino.h:77:16: error: expected unqualified-id before '(' token
#define abs(x) ((x)>0?(x):-(x))
^
./src/edge-impulse-sdk/tensorflow/lite/kernels/internal/quantization_util.h:67:12: note: in expansion of macro 'abs'
std::abs(qmin_double) + std::abs(rmin / scale);
^
/home/kevin/.arduino15/packages/arduino/hardware/mbed/1.3.1/cores/arduino/Arduino.h:77:16: error: expected unqualified-id before '(' token
#define abs(x) ((x)>0?(x):-(x))
^
./src/edge-impulse-sdk/tensorflow/lite/kernels/internal/quantization_util.h:67:36: note: in expansion of macro 'abs'
std::abs(qmin_double) + std::abs(rmin / scale);
^
/home/kevin/.arduino15/packages/arduino/hardware/mbed/1.3.1/cores/arduino/Arduino.h:77:16: error: expected unqualified-id before '(' token
#define abs(x) ((x)>0?(x):-(x))
^
./src/edge-impulse-sdk/tensorflow/lite/kernels/internal/quantization_util.h:69:12: note: in expansion of macro 'abs'
std::abs(qmax_double) + std::abs(rmax / scale);
^
/home/kevin/.arduino15/packages/arduino/hardware/mbed/1.3.1/cores/arduino/Arduino.h:77:16: error: expected unqualified-id before '(' token
#define abs(x) ((x)>0?(x):-(x))
^
./src/edge-impulse-sdk/tensorflow/lite/kernels/internal/quantization_util.h:69:36: note: in expansion of macro 'abs'
std::abs(qmax_double) + std::abs(rmax / scale);
^
In file included from /home/kevin/.arduino15/packages/arduino/hardware/mbed/1.3.1/cores/arduino/mbed.h:4:0,
from /tmp/arduino-sketch-45116531070844582DF2F37665C60C4C/sketch/src/edge-impulse-sdk/tensorflow/lite/micro/kernels/../../../../classifier/ei_classifier_config.h:29,
from /tmp/arduino-sketch-45116531070844582DF2F37665C60C4C/sketch/src/edge-impulse-sdk/tensorflow/lite/micro/kernels/mul.cpp:2:
./src/edge-impulse-sdk/tensorflow/lite/kernels/internal/quantization_util.h: In function 'tflite::QuantizationParams tflite::ChooseQuantizationParams(double, double, bool)':
/home/kevin/.arduino15/packages/arduino/hardware/mbed/1.3.1/cores/arduino/Arduino.h:77:16: error: expected unqualified-id before '(' token
#define abs(x) ((x)>0?(x):-(x))
^
./src/edge-impulse-sdk/tensorflow/lite/kernels/internal/quantization_util.h:67:12: note: in expansion of macro 'abs'
std::abs(qmin_double) + std::abs(rmin / scale);
^
/home/kevin/.arduino15/packages/arduino/hardware/mbed/1.3.1/cores/arduino/Arduino.h:77:16: error: expected unqualified-id before '(' token
#define abs(x) ((x)>0?(x):-(x))
^
./src/edge-impulse-sdk/tensorflow/lite/kernels/internal/quantization_util.h:67:36: note: in expansion of macro 'abs'
std::abs(qmin_double) + std::abs(rmin / scale);
^
/home/kevin/.arduino15/packages/arduino/hardware/mbed/1.3.1/cores/arduino/Arduino.h:77:16: error: expected unqualified-id before '(' token
#define abs(x) ((x)>0?(x):-(x))
^
./src/edge-impulse-sdk/tensorflow/lite/kernels/internal/quantization_util.h:69:12: note: in expansion of macro 'abs'
std::abs(qmax_double) + std::abs(rmax / scale);
^
/home/kevin/.arduino15/packages/arduino/hardware/mbed/1.3.1/cores/arduino/Arduino.h:77:16: error: expected unqualified-id before '(' token
#define abs(x) ((x)>0?(x):-(x))
^
./src/edge-impulse-sdk/tensorflow/lite/kernels/internal/quantization_util.h:69:36: note: in expansion of macro 'abs'
std::abs(qmax_double) + std::abs(rmax / scale);
^
In file included from /home/kevin/.arduino15/packages/arduino/hardware/mbed/1.3.1/cores/arduino/mbed.h:4:0,
from /tmp/arduino-sketch-45116531070844582DF2F37665C60C4C/sketch/src/edge-impulse-sdk/tensorflow/lite/micro/kernels/../../../../classifier/ei_classifier_config.h:29,
from /tmp/arduino-sketch-45116531070844582DF2F37665C60C4C/sketch/src/edge-impulse-sdk/tensorflow/lite/micro/kernels/pooling.cpp:2:
./src/edge-impulse-sdk/tensorflow/lite/kernels/internal/quantization_util.h: In function 'tflite::QuantizationParams tflite::ChooseQuantizationParams(double, double, bool)':
/home/kevin/.arduino15/packages/arduino/hardware/mbed/1.3.1/cores/arduino/Arduino.h:77:16: error: expected unqualified-id before '(' token
#define abs(x) ((x)>0?(x):-(x))
^
./src/edge-impulse-sdk/tensorflow/lite/kernels/internal/quantization_util.h:67:12: note: in expansion of macro 'abs'
std::abs(qmin_double) + std::abs(rmin / scale);
^
/home/kevin/.arduino15/packages/arduino/hardware/mbed/1.3.1/cores/arduino/Arduino.h:77:16: error: expected unqualified-id before '(' token
#define abs(x) ((x)>0?(x):-(x))
^
./src/edge-impulse-sdk/tensorflow/lite/kernels/internal/quantization_util.h:67:36: note: in expansion of macro 'abs'
std::abs(qmin_double) + std::abs(rmin / scale);
^
/home/kevin/.arduino15/packages/arduino/hardware/mbed/1.3.1/cores/arduino/Arduino.h:77:16: error: expected unqualified-id before '(' token
#define abs(x) ((x)>0?(x):-(x))
^
./src/edge-impulse-sdk/tensorflow/lite/kernels/internal/quantization_util.h:69:12: note: in expansion of macro 'abs'
std::abs(qmax_double) + std::abs(rmax / scale);
^
/home/kevin/.arduino15/packages/arduino/hardware/mbed/1.3.1/cores/arduino/Arduino.h:77:16: error: expected unqualified-id before '(' token
#define abs(x) ((x)>0?(x):-(x))
^
./src/edge-impulse-sdk/tensorflow/lite/kernels/internal/quantization_util.h:69:36: note: in expansion of macro 'abs'
std::abs(qmax_double) + std::abs(rmax / scale);
^
Still building...
Error during build: exit status 1
Is this an error with the model settings I am producing? Did I forget something???
Thank you so very much!
-Kevin