Black Lives Matter - Action and Equality. ... Adafruit joins the Stop Hate for Profit campaign.
0

Adafruit bluefruit nRF52 tensorflow lite support
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Adafruit bluefruit nRF52 tensorflow lite support

by yhy12313 on Sun Nov 10, 2019 11:55 pm

Hi,

I am currently using Adafruit Bluefruit nRF52 board with arduino interface to develop a machine learning application. I used tensorflow lite to do the classification task. The problem right now is the error during the compiling. I posted the github link where you can find all the details of the error and the project. https://github.com/yang12313/tensorflow_lite_nRF52.git
a github bug report link is here: https://github.com/adafruit/Adafruit_nR ... issues/388.

Best,

YHY

yhy12313
 
Posts: 4
Joined: Sun Nov 10, 2019 11:45 pm

Re: Adafruit bluefruit nRF52 tensorflow lite support

by yhy12313 on Fri Nov 15, 2019 11:04 am

UPP

yhy12313
 
Posts: 4
Joined: Sun Nov 10, 2019 11:45 pm

Re: Adafruit bluefruit nRF52 tensorflow lite support

by adafruit_support_mike on Sat Nov 16, 2019 4:15 am

Post the simplest code that demonstrates the error you're getting (between CODE tags please) along with the exact text of any error messages you're getting (again, between CODE tags).

adafruit_support_mike
 
Posts: 61107
Joined: Thu Feb 11, 2010 2:51 pm

Re: Adafruit bluefruit nRF52 tensorflow lite support

by yhy12313 on Thu Nov 21, 2019 7:54 pm

The code is here:
Code: Select all | TOGGLE FULL SIZE
#include <SparkFunLSM6DS3.h>
#include "model.h"
#include <I2C.h>
#include <Wire.h>

#include <iostream>
#include <bluefruit.h>

#include <TensorFlowLite.h>
#include <tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h>
#include <tensorflow/lite/experimental/micro/micro_error_reporter.h>
#include <tensorflow/lite/experimental/micro/micro_interpreter.h>
#include <tensorflow/lite/schema/schema_generated.h>
#include <tensorflow/lite/version.h>


const int numSamples = 90;
int samplesRead = numSamples;
tflite::MicroErrorReporter tflErrorReporter;
tflite::ops::micro::AllOpsResolver tflOpsResolver;

tflite::ErrorReporter* error_reporter = nullptr;
const tflite::Model* tflModel = nullptr;
tflite::MicroInterpreter* tflInterpreter = nullptr;
TfLiteTensor* tflInputTensor = nullptr;
TfLiteTensor* tflOutputTensor = nullptr;

constexpr int tensorArenaSize = 8 * 1024;
byte tensorArena[tensorArenaSize];

const char* GESTURES[] = {
  "walking",
  "circling",
  "rest",
  "waving"
};
#define NUM_GESTURES (sizeof(GESTURES) / sizeof(GESTURES[0]));

LSM6DS3 myIMU;
int minVal=265;
int maxVal=402;

int pushButton = 2;

int Pin5 = A4; //analog pin 5
// int flexSensorPin6 = A6; //analog pin 6
int buttonState = 0;


/* IMU data */
int16_t ax, ay, az;
int16_t gx, gy, gz;
int16_t tempRaw;
float accX, accY, accZ;
float gyroX, gyroY, gyroZ;
float smooth_ax, smooth_ay, smooth_az;
float smooth_gx, smooth_gy, smooth_gz;


float gyroXangle, gyroYangle; // Angle calculate using the gyro only
float compAngleX, compAngleY; // Calculated angle using a complementary filter
float kalAngleX, kalAngleY; // Calculated angle using a Kalman filter

uint32_t timer;
uint8_t i2cData[14]; // Buffer for I2C data

// TODO: Make calibration routine
const uint8_t IMUAddress = 0x6B; // AD0 is logic low on the PCB
const uint16_t I2C_TIMEOUT = 1000; // Used to check for errors in I2C communication

uint8_t i2cWrite(uint8_t registerAddress, uint8_t data, bool sendStop) {
  return i2cWrite(registerAddress, &data, 1, sendStop); // Returns 0 on success
}

uint8_t i2cWrite(uint8_t registerAddress, uint8_t *data, uint8_t length, bool sendStop) {
  Wire.beginTransmission(IMUAddress);
  Wire.write(registerAddress);
  Wire.write(data, length);
  uint8_t rcode = Wire.endTransmission(sendStop); // Returns 0 on success
  if (rcode) {
    Serial.print(F("i2cWrite failed: "));
    Serial.println(rcode);
  }
  return rcode; // See: http://arduino.cc/en/Reference/WireEndTransmission
}

uint8_t i2cRead(uint8_t registerAddress, uint8_t *data, uint8_t nbytes) {
  uint32_t timeOutTimer;
  Wire.beginTransmission(IMUAddress);
  Wire.write(registerAddress);
  uint8_t rcode = Wire.endTransmission(false); // Don't release the bus
 
  if (rcode) {
    Serial.print(F("i2cRead failed: "));
    Serial.println(rcode);
    return rcode; // See: http://arduino.cc/en/Reference/WireEndTransmission
  }

  Wire.requestFrom(IMUAddress, nbytes, (uint8_t)true); // Send a repeated start and then release the bus after reading
  for (uint8_t i = 0; i < nbytes; i++) {
    if (Wire.available())
      data[i] = Wire.read();
    else {
      timeOutTimer = micros();
      while (((micros() - timeOutTimer) < I2C_TIMEOUT) && !Wire.available());
      if (Wire.available())
        data[i] = Wire.read();
      else {
        Serial.println(F("i2cRead timeout"));
        return 5; // This error value is not already taken by endTransmission
      }
    }
  }
  return 0; // Success
}


void setup() {
  // put your setup code here, to run once:
  Serial.begin(38400);
  myIMU.begin();
  pinMode(Pin5, INPUT);
  #if ARDUINO >= 157
    Wire.setClock(400000UL); // Set I2C frequency to 400kHz
    #else
      TWBR = ((F_CPU / 400000UL) - 16) / 2; // Set I2C frequency to 400kHz
  #endif
  // IMU Configuration
  //Over-ride default settings if desired
  myIMU.settings.gyroEnabled = 1;  //Can be 0 or 1
  myIMU.settings.gyroRange = 245;   //Max deg/s.  Can be: 125, 245, 500, 1000, 2000
  myIMU.settings.gyroSampleRate = 833;   //Hz.  Can be: 13, 26, 52, 104, 208, 416, 833, 1666
  myIMU.settings.gyroBandWidth = 50;  //Hz.  Can be: 50, 100, 200, 400;
  myIMU.settings.gyroFifoEnabled = 1;  //Set to include gyro in FIFO
  myIMU.settings.gyroFifoDecimation = 1;  //set 1 for on /1

  myIMU.settings.accelEnabled = 1;
  myIMU.settings.accelRange = 4;      //Max G force readable.  Can be: 2, 4, 8, 16
  myIMU.settings.accelSampleRate = 833;  //Hz.  Can be: 13, 26, 52, 104, 208, 416, 833, 1666, 3332, 6664, 13330
  myIMU.settings.accelBandWidth = 200;  //Hz.  Can be: 50, 100, 200, 400;
  myIMU.settings.accelFifoEnabled = 1;  //Set to include accelerometer in the FIFO
  myIMU.settings.accelFifoDecimation = 1;  //set 1 for on /1
  myIMU.settings.tempEnabled = 0;

  //Non-basic mode settings
  myIMU.settings.commMode = 1;

  //FIFO control settings
  myIMU.settings.fifoThreshold = 100;  //Can be 0 to 4096 (16 bit bytes)
  myIMU.settings.fifoSampleRate = 50;  //Hz.  Can be: 10, 25, 50, 100, 200, 400, 800, 1600, 3300, 6600
  myIMU.settings.fifoModeWord = 6;  //FIFO mode.
  //FIFO mode.  Can be:
  //  0 (Bypass mode, FIFO off)
  //  1 (Stop when full)
  //  3 (Continuous during trigger)
  //  4 (Bypass until trigger)
  //  6 (Continous mode)
  static tflite::MicroErrorReporter micro_error_reporter;  // NOLINT
  error_reporter = &micro_error_reporter;



  // To do list!!!!!!!!!!!!!!!!!
  i2cData[0] = 7; // Set the sample rate to 1000Hz - 8kHz/(7+1) = 1000Hz
  i2cData[1] = 0x00; // Disable FSYNC and set 260 Hz Acc filtering, 256 Hz Gyro filtering, 8 KHz sampling
  i2cData[2] = 0x00; // Set Gyro Full Scale Range to ±250deg/s
  i2cData[3] = 0x00; // Set Accelerometer Full Scale Range to ±2g

  // while(i2cWrite(CTRL1_XL,LSM6DS3_ACC_GYRO_ODR_XL_1660Hz,true));
 
  // while (i2cWrite(0x19, i2cData, 4, false)); // Write to all four registers at once
  // while (i2cWrite(0x6B, 0x01, true)); // PLL with X axis gyroscope reference and disable sleep mode
  // while (i2cWrite(0x6b,))
  while (i2cRead(LSM6DS3_ACC_GYRO_WHO_AM_I_REG, i2cData, 1));
  if (i2cData[0] != 0x69) { // Read "WHO_AM_I" register
    Serial.print(F("Error reading sensor"));
    while (1);
  }

  delay(100); // Wait for sensor to stabilize

  /* Set kalman and gyro starting angle */
  while (i2cRead(0X28, i2cData, 6));
  accX = (int16_t)((i2cData[0] << 8) | i2cData[1]);
  accY = (int16_t)((i2cData[2] << 8) | i2cData[3]);
  accZ = (int16_t)((i2cData[4] << 8) | i2cData[5]);

  // Source: http://www.freescale.com/files/sensors/doc/app_note/AN3461.pdf eq. 25 and eq. 26
  // atan2 outputs the value of -π to π (radians) - see http://en.wikipedia.org/wiki/Atan2
  // It is then converted from radians to degrees
#ifdef RESTRICT_PITCH // Eq. 25 and 26
  double roll  = atan2(accY, accZ) * RAD_TO_DEG;
  double pitch = atan(-accX / sqrt(accY * accY + accZ * accZ)) * RAD_TO_DEG;
#else // Eq. 28 and 29
  double roll  = atan(accY / sqrt(accX * accX + accZ * accZ)) * RAD_TO_DEG;
  double pitch = atan2(-accX, accZ) * RAD_TO_DEG;
#endif

//  kalmanX.setAngle(roll); // Set starting angle
//  kalmanY.setAngle(pitch);
  gyroXangle = roll;
  gyroYangle = pitch;
  compAngleX = roll;
  compAngleY = pitch;

  timer = micros();

  tflModel = tflite::GetModel(model);
//  if (tflModel->version() != TFLITE_SCHEMA_VERSION) {
//    error_reporter->Report(
//        "Model provided is schema version %d not equal "
//        "to supported version %d.",
////        tflModel->version(), TFLITE_SCHEMA_VERSION);
//    return;
//  }
  tflInterpreter = new tflite::MicroInterpreter(tflModel, tflOpsResolver, tensorArena, tensorArenaSize, &tflErrorReporter);
  tflInterpreter->AllocateTensors();
  tflInputTensor = tflInterpreter->input(0);
  tflOutputTensor = tflInterpreter->output(0);

}

void loop() {
  // put your main code here, to run repeatedly:
  float aX, aY, aZ, gX, gY, gZ;

  while(samplesRead == numSamples){
//    if(myIMU.accelerationAvailable()){
//      myIMU.readAcceleration(aX, aY, aZ);
//      float aSum = fabs(aX) + fabs(aY) + fabs(aZ);

//      if(aSum >= accelerationThreshold){
//        samplesRead = 0;
//        break;
//      }
//    }
  }

  while(samplesRead < numSamples){
//    // check if new acceleration AND gyroscope data is available
//    aX =  myIMU.readFloatAccelX();
//    aY =  myIMU.readFloatAccelY();
//    aZ =  myIMU.readFloatAccelZ();
//    gX =  myIMU.readFloatGyroX();
//    gY =  myIMU.readFloatGyroY();
//    gZ =  myIMU.readFloatGyroZ();
//    tflInputTensor->data.f[samplesRead * 6 + 0] = aX;
//    tflInputTensor->data.f[samplesRead * 6 + 1] = aY;
//    tflInputTensor->data.f[samplesRead * 6 + 2] = aZ;
//    tflInputTensor->data.f[samplesRead * 6 + 3] = gX;
//    tflInputTensor->data.f[samplesRead * 6 + 4] = gY;
//    tflInputTensor->data.f[samplesRead * 6 + 5] = gZ;
//    samplesRead++;
//    if (samplesRead == numSamples) {
//      // Run inferencing
//      TfLiteStatus invokeStatus = tflInterpreter->Invoke();
//      if (invokeStatus != kTfLiteOk) {
//        Serial.println("Invoke failed!");
//
//      }
//      for (int i = 0; i < NUM_GESTURES; i++) {
//        Serial.print(GESTURES[i]);
//        Serial.print(": ");
//        Serial.println(tflOutputTensor->data.f[i], 6);
//      }
//      Serial.println();
  }
}


and the error message is a bit long:
Code: Select all | TOGGLE FULL SIZE
Arduino: 1.8.9 (Windows 10), Board: "Adafruit Bluefruit Feather nRF52832, 0.2.12 SoftDevice s132 6.1.1, Level 0 (Release)"

In file included from c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\char_traits.h:39:0,

                 from c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\ios:40,

                 from c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\ostream:38,

                 from c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\iostream:39,

                 from D:\Phenoma\Gesture Detection\Gesture-Recognition-master\adafruit\sketch_nov08a\sketch_nov08a.ino:16:

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\stl_algobase.h:243:56: error: macro "min" passed 3 arguments, but takes just 2

     min(const _Tp& __a, const _Tp& __b, _Compare __comp)

                                                        ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\stl_algobase.h:265:56: error: macro "max" passed 3 arguments, but takes just 2

     max(const _Tp& __a, const _Tp& __b, _Compare __comp)

                                                        ^

In file included from c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\stl_algo.h:60:0,

                 from c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\algorithm:62,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/third_party/flatbuffers/include/flatbuffers/base.h:45,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/third_party/flatbuffers/include/flatbuffers/flatbuffers.h:20,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/schema/schema_generated.h:21,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/core/api/op_resolver.h:20,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/experimental/micro/micro_mutable_op_resolver.h:18,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h:16,

                 from D:\Phenoma\Gesture Detection\Gesture-Recognition-master\adafruit\sketch_nov08a\sketch_nov08a.ino:21:

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\algorithmfwd.h:375:41: error: macro "max" passed 3 arguments, but takes just 2

     max(const _Tp&, const _Tp&, _Compare);

                                         ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\algorithmfwd.h:388:41: error: macro "min" passed 3 arguments, but takes just 2

     min(const _Tp&, const _Tp&, _Compare);

                                         ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\algorithmfwd.h:416:30: error: macro "min" requires 2 arguments, but only 1 given

     min(initializer_list<_Tp>);

                              ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\algorithmfwd.h:426:30: error: macro "max" requires 2 arguments, but only 1 given

     max(initializer_list<_Tp>);

                              ^

In file included from c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\uniform_int_dist.h:35:0,

                 from c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\stl_algo.h:66,

                 from c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\algorithm:62,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/third_party/flatbuffers/include/flatbuffers/base.h:45,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/third_party/flatbuffers/include/flatbuffers/flatbuffers.h:20,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/schema/schema_generated.h:21,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/core/api/op_resolver.h:20,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/experimental/micro/micro_mutable_op_resolver.h:18,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h:16,

                 from D:\Phenoma\Gesture Detection\Gesture-Recognition-master\adafruit\sketch_nov08a\sketch_nov08a.ino:21:

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:317:11: error: macro "min" requires 2 arguments, but only 1 given

       min() _GLIBCXX_USE_NOEXCEPT { return _Tp(); }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:321:11: error: macro "max" requires 2 arguments, but only 1 given

       max() _GLIBCXX_USE_NOEXCEPT { return _Tp(); }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:388:11: error: macro "min" requires 2 arguments, but only 1 given

       min() _GLIBCXX_USE_NOEXCEPT { return false; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:391:11: error: macro "max" requires 2 arguments, but only 1 given

       max() _GLIBCXX_USE_NOEXCEPT { return true; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:395:38: error: macro "min" requires 2 arguments, but only 1 given

       lowest() noexcept { return min(); }

                                      ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:457:11: error: macro "min" requires 2 arguments, but only 1 given

       min() _GLIBCXX_USE_NOEXCEPT { return __glibcxx_min(char); }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:460:11: error: macro "max" requires 2 arguments, but only 1 given

       max() _GLIBCXX_USE_NOEXCEPT { return __glibcxx_max(char); }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:464:38: error: macro "min" requires 2 arguments, but only 1 given

       lowest() noexcept { return min(); }

                                      ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:524:11: error: macro "min" requires 2 arguments, but only 1 given

       min() _GLIBCXX_USE_NOEXCEPT { return -__SCHAR_MAX__ - 1; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:527:11: error: macro "max" requires 2 arguments, but only 1 given

       max() _GLIBCXX_USE_NOEXCEPT { return __SCHAR_MAX__; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:531:38: error: macro "min" requires 2 arguments, but only 1 given

       lowest() noexcept { return min(); }

                                      ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:594:11: error: macro "min" requires 2 arguments, but only 1 given

       min() _GLIBCXX_USE_NOEXCEPT { return 0; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:597:11: error: macro "max" requires 2 arguments, but only 1 given

       max() _GLIBCXX_USE_NOEXCEPT { return __SCHAR_MAX__ * 2U + 1; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:601:38: error: macro "min" requires 2 arguments, but only 1 given

       lowest() noexcept { return min(); }

                                      ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:667:11: error: macro "min" requires 2 arguments, but only 1 given

       min() _GLIBCXX_USE_NOEXCEPT { return __glibcxx_min (wchar_t); }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:670:11: error: macro "max" requires 2 arguments, but only 1 given

       max() _GLIBCXX_USE_NOEXCEPT { return __glibcxx_max (wchar_t); }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:674:38: error: macro "min" requires 2 arguments, but only 1 given

       lowest() noexcept { return min(); }

                                      ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:736:11: error: macro "min" requires 2 arguments, but only 1 given

       min() noexcept { return __glibcxx_min (char16_t); }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:739:11: error: macro "max" requires 2 arguments, but only 1 given

       max() noexcept { return __glibcxx_max (char16_t); }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:742:38: error: macro "min" requires 2 arguments, but only 1 given

       lowest() noexcept { return min(); }

                                      ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:797:11: error: macro "min" requires 2 arguments, but only 1 given

       min() noexcept { return __glibcxx_min (char32_t); }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:800:11: error: macro "max" requires 2 arguments, but only 1 given

       max() noexcept { return __glibcxx_max (char32_t); }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:803:38: error: macro "min" requires 2 arguments, but only 1 given

       lowest() noexcept { return min(); }

                                      ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:859:11: error: macro "min" requires 2 arguments, but only 1 given

       min() _GLIBCXX_USE_NOEXCEPT { return -__SHRT_MAX__ - 1; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:862:11: error: macro "max" requires 2 arguments, but only 1 given

       max() _GLIBCXX_USE_NOEXCEPT { return __SHRT_MAX__; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:866:38: error: macro "min" requires 2 arguments, but only 1 given

       lowest() noexcept { return min(); }

                                      ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:926:11: error: macro "min" requires 2 arguments, but only 1 given

       min() _GLIBCXX_USE_NOEXCEPT { return 0; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:929:11: error: macro "max" requires 2 arguments, but only 1 given

       max() _GLIBCXX_USE_NOEXCEPT { return __SHRT_MAX__ * 2U + 1; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:933:38: error: macro "min" requires 2 arguments, but only 1 given

       lowest() noexcept { return min(); }

                                      ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:999:11: error: macro "min" requires 2 arguments, but only 1 given

       min() _GLIBCXX_USE_NOEXCEPT { return -__INT_MAX__ - 1; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1002:11: error: macro "max" requires 2 arguments, but only 1 given

       max() _GLIBCXX_USE_NOEXCEPT { return __INT_MAX__; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1006:38: error: macro "min" requires 2 arguments, but only 1 given

       lowest() noexcept { return min(); }

                                      ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1066:11: error: macro "min" requires 2 arguments, but only 1 given

       min() _GLIBCXX_USE_NOEXCEPT { return 0; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1069:11: error: macro "max" requires 2 arguments, but only 1 given

       max() _GLIBCXX_USE_NOEXCEPT { return __INT_MAX__ * 2U + 1; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1073:38: error: macro "min" requires 2 arguments, but only 1 given

       lowest() noexcept { return min(); }

                                      ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1138:11: error: macro "min" requires 2 arguments, but only 1 given

       min() _GLIBCXX_USE_NOEXCEPT { return -__LONG_MAX__ - 1; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1141:11: error: macro "max" requires 2 arguments, but only 1 given

       max() _GLIBCXX_USE_NOEXCEPT { return __LONG_MAX__; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1145:38: error: macro "min" requires 2 arguments, but only 1 given

       lowest() noexcept { return min(); }

                                      ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1205:11: error: macro "min" requires 2 arguments, but only 1 given

       min() _GLIBCXX_USE_NOEXCEPT { return 0; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1208:11: error: macro "max" requires 2 arguments, but only 1 given

       max() _GLIBCXX_USE_NOEXCEPT { return __LONG_MAX__ * 2UL + 1; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1212:38: error: macro "min" requires 2 arguments, but only 1 given

       lowest() noexcept { return min(); }

                                      ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1278:11: error: macro "min" requires 2 arguments, but only 1 given

       min() _GLIBCXX_USE_NOEXCEPT { return -__LONG_LONG_MAX__ - 1; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1281:11: error: macro "max" requires 2 arguments, but only 1 given

       max() _GLIBCXX_USE_NOEXCEPT { return __LONG_LONG_MAX__; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1285:38: error: macro "min" requires 2 arguments, but only 1 given

       lowest() noexcept { return min(); }

                                      ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1348:11: error: macro "min" requires 2 arguments, but only 1 given

       min() _GLIBCXX_USE_NOEXCEPT { return 0; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1351:11: error: macro "max" requires 2 arguments, but only 1 given

       max() _GLIBCXX_USE_NOEXCEPT { return __LONG_LONG_MAX__ * 2ULL + 1; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1355:38: error: macro "min" requires 2 arguments, but only 1 given

       lowest() noexcept { return min(); }

                                      ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1599:11: error: macro "min" requires 2 arguments, but only 1 given

       min() _GLIBCXX_USE_NOEXCEPT { return __FLT_MIN__; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1602:11: error: macro "max" requires 2 arguments, but only 1 given

       max() _GLIBCXX_USE_NOEXCEPT { return __FLT_MAX__; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1674:11: error: macro "min" requires 2 arguments, but only 1 given

       min() _GLIBCXX_USE_NOEXCEPT { return __DBL_MIN__; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1677:11: error: macro "max" requires 2 arguments, but only 1 given

       max() _GLIBCXX_USE_NOEXCEPT { return __DBL_MAX__; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1749:11: error: macro "min" requires 2 arguments, but only 1 given

       min() _GLIBCXX_USE_NOEXCEPT { return __LDBL_MIN__; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1752:11: error: macro "max" requires 2 arguments, but only 1 given

       max() _GLIBCXX_USE_NOEXCEPT { return __LDBL_MAX__; }

           ^

In file included from c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\stl_algo.h:66:0,

                 from c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\algorithm:62,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/third_party/flatbuffers/include/flatbuffers/base.h:45,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/third_party/flatbuffers/include/flatbuffers/flatbuffers.h:20,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/schema/schema_generated.h:21,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/core/api/op_resolver.h:20,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/experimental/micro/micro_mutable_op_resolver.h:18,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h:16,

                 from D:\Phenoma\Gesture Detection\Gesture-Recognition-master\adafruit\sketch_nov08a\sketch_nov08a.ino:21:

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\uniform_int_dist.h:76:56: error: macro "max" requires 2 arguments, but only 1 given

      _IntType __b = std::numeric_limits<_IntType>::max())

                                                        ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\uniform_int_dist.h:109:57: error: macro "max" requires 2 arguments, but only 1 given

       _IntType __b = std::numeric_limits<_IntType>::max())

                                                         ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\uniform_int_dist.h:153:11: error: macro "min" requires 2 arguments, but only 1 given

       min() const

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\uniform_int_dist.h:160:11: error: macro "max" requires 2 arguments, but only 1 given

       max() const

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\uniform_int_dist.h:231:40: error: macro "min" requires 2 arguments, but only 1 given

  const __uctype __urngmin = __urng.min();

                                        ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\uniform_int_dist.h:232:40: error: macro "max" requires 2 arguments, but only 1 given

  const __uctype __urngmax = __urng.max();

                                        ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\uniform_int_dist.h:300:40: error: macro "min" requires 2 arguments, but only 1 given

  const __uctype __urngmin = __urng.min();

                                        ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\uniform_int_dist.h:301:40: error: macro "max" requires 2 arguments, but only 1 given

  const __uctype __urngmax = __urng.max();

                                        ^

In file included from c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\algorithm:62:0,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/third_party/flatbuffers/include/flatbuffers/base.h:45,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/third_party/flatbuffers/include/flatbuffers/flatbuffers.h:20,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/schema/schema_generated.h:21,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/core/api/op_resolver.h:20,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/experimental/micro/micro_mutable_op_resolver.h:18,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h:16,

                 from D:\Phenoma\Gesture Detection\Gesture-Recognition-master\adafruit\sketch_nov08a\sketch_nov08a.ino:21:

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\stl_algo.h:3450:34: error: macro "min" requires 2 arguments, but only 1 given

     min(initializer_list<_Tp> __l)

                                  ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\stl_algo.h:3462:34: error: macro "max" requires 2 arguments, but only 1 given

     max(initializer_list<_Tp> __l)

                                  ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\stl_algo.h:3815:45: error: macro "max" requires 2 arguments, but only 1 given

       const __uc_type __urngrange = __g.max() - __g.min();

                                             ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\stl_algo.h:3815:57: error: macro "min" requires 2 arguments, but only 1 given

       const __uc_type __urngrange = __g.max() - __g.min();

                                                         ^

In file included from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/core/api/op_resolver.h:20:0,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/experimental/micro/micro_mutable_op_resolver.h:18,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h:16,

                 from D:\Phenoma\Gesture Detection\Gesture-Recognition-master\adafruit\sketch_nov08a\sketch_nov08a.ino:21:

C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/schema/schema_generated.h:2717:41: error: macro "min" requires 2 arguments, but only 1 given

   const flatbuffers::Vector<float> *min() const {

                                         ^

C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/schema/schema_generated.h:2720:41: error: macro "max" requires 2 arguments, but only 1 given

   const flatbuffers::Vector<float> *max() const {

                                         ^

C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/schema/schema_generated.h:2745:38: error: macro "min" requires 2 arguments, but only 1 given

            verifier.VerifyVector(min()) &&

                                      ^

C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/schema/schema_generated.h:2747:38: error: macro "max" requires 2 arguments, but only 1 given

            verifier.VerifyVector(max()) &&

                                      ^

C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/schema/schema_generated.h:6760:17: error: macro "min" requires 2 arguments, but only 1 given

       : min(0.0f),

                 ^

C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/schema/schema_generated.h:6761:17: error: macro "max" requires 2 arguments, but only 1 given

         max(0.0f),

                 ^

C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/schema/schema_generated.h:6775:13: error: macro "min" requires 2 arguments, but only 1 given

   float min() const {

             ^

C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/schema/schema_generated.h:6778:13: error: macro "max" requires 2 arguments, but only 1 given

   float max() const {

             ^

C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/schema/schema_generated.h:9626:19: error: macro "min" requires 2 arguments, but only 1 given

   { auto _e = min(); if (_e) { _o->min.resize(_e->size()); for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) { _o->min[_i] = _e->Get(_i); } } };

                   ^

C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/schema/schema_generated.h:9627:19: error: macro "max" requires 2 arguments, but only 1 given

   { auto _e = max(); if (_e) { _o->max.resize(_e->size()); for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) { _o->max[_i] = _e->Get(_i); } } };

                   ^

C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/schema/schema_generated.h:11470:19: error: macro "min" requires 2 arguments, but only 1 given

   { auto _e = min(); _o->min = _e; };

                   ^

C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/schema/schema_generated.h:11471:19: error: macro "max" requires 2 arguments, but only 1 given

   { auto _e = max(); _o->max = _e; };

                   ^

exit status 1
Error compiling for board Adafruit Bluefruit Feather nRF52832.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.


yhy12313
 
Posts: 4
Joined: Sun Nov 10, 2019 11:45 pm

Re: Adafruit bluefruit nRF52 tensorflow lite support

by yhy12313 on Fri Nov 22, 2019 1:34 pm

Hi,

I tried the adafruit tensorflow lite example "Magic wand" but it has the same error as the last post. Also, I tried the "Hello World " sketchbook and it gave the same error again. I guess the problem comes from the lack support of tensorflow lite in adafruit bluefruit.
Since the adafruit Bluefruit is a very good platform to develop BLE solution. I highly recommend the support team to add tensorflow lite support on bluefruit.

The error code is attached here:
Code: Select all | TOGGLE FULL SIZE
Arduino: 1.8.9 (Windows 10), Board: "Adafruit Bluefruit Feather nRF52832, 0.2.12 SoftDevice s132 6.1.1, Level 0 (Release)"

In file included from c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\char_traits.h:39:0,

                 from c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\string:40,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/third_party/flatbuffers/include/flatbuffers/base.h:41,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/third_party/flatbuffers/include/flatbuffers/flatbuffers.h:20,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/schema/schema_generated.h:21,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/core/api/op_resolver.h:20,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/experimental/micro/micro_mutable_op_resolver.h:18,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h:16,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\examples\hello_world\hello_world.ino:23:

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\stl_algobase.h:243:56: error: macro "min" passed 3 arguments, but takes just 2

     min(const _Tp& __a, const _Tp& __b, _Compare __comp)

                                                        ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\stl_algobase.h:265:56: error: macro "max" passed 3 arguments, but takes just 2

     max(const _Tp& __a, const _Tp& __b, _Compare __comp)

                                                        ^

In file included from c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\stl_algo.h:60:0,

                 from c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\algorithm:62,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/third_party/flatbuffers/include/flatbuffers/base.h:45,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/third_party/flatbuffers/include/flatbuffers/flatbuffers.h:20,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/schema/schema_generated.h:21,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/core/api/op_resolver.h:20,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/experimental/micro/micro_mutable_op_resolver.h:18,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h:16,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\examples\hello_world\hello_world.ino:23:

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\algorithmfwd.h:375:41: error: macro "max" passed 3 arguments, but takes just 2

     max(const _Tp&, const _Tp&, _Compare);

                                         ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\algorithmfwd.h:388:41: error: macro "min" passed 3 arguments, but takes just 2

     min(const _Tp&, const _Tp&, _Compare);

                                         ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\algorithmfwd.h:416:30: error: macro "min" requires 2 arguments, but only 1 given

     min(initializer_list<_Tp>);

                              ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\algorithmfwd.h:426:30: error: macro "max" requires 2 arguments, but only 1 given

     max(initializer_list<_Tp>);

                              ^

In file included from c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\uniform_int_dist.h:35:0,

                 from c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\stl_algo.h:66,

                 from c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\algorithm:62,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/third_party/flatbuffers/include/flatbuffers/base.h:45,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/third_party/flatbuffers/include/flatbuffers/flatbuffers.h:20,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/schema/schema_generated.h:21,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/core/api/op_resolver.h:20,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/experimental/micro/micro_mutable_op_resolver.h:18,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h:16,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\examples\hello_world\hello_world.ino:23:

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:317:11: error: macro "min" requires 2 arguments, but only 1 given

       min() _GLIBCXX_USE_NOEXCEPT { return _Tp(); }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:321:11: error: macro "max" requires 2 arguments, but only 1 given

       max() _GLIBCXX_USE_NOEXCEPT { return _Tp(); }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:388:11: error: macro "min" requires 2 arguments, but only 1 given

       min() _GLIBCXX_USE_NOEXCEPT { return false; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:391:11: error: macro "max" requires 2 arguments, but only 1 given

       max() _GLIBCXX_USE_NOEXCEPT { return true; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:395:38: error: macro "min" requires 2 arguments, but only 1 given

       lowest() noexcept { return min(); }

                                      ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:457:11: error: macro "min" requires 2 arguments, but only 1 given

       min() _GLIBCXX_USE_NOEXCEPT { return __glibcxx_min(char); }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:460:11: error: macro "max" requires 2 arguments, but only 1 given

       max() _GLIBCXX_USE_NOEXCEPT { return __glibcxx_max(char); }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:464:38: error: macro "min" requires 2 arguments, but only 1 given

       lowest() noexcept { return min(); }

                                      ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:524:11: error: macro "min" requires 2 arguments, but only 1 given

       min() _GLIBCXX_USE_NOEXCEPT { return -__SCHAR_MAX__ - 1; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:527:11: error: macro "max" requires 2 arguments, but only 1 given

       max() _GLIBCXX_USE_NOEXCEPT { return __SCHAR_MAX__; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:531:38: error: macro "min" requires 2 arguments, but only 1 given

       lowest() noexcept { return min(); }

                                      ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:594:11: error: macro "min" requires 2 arguments, but only 1 given

       min() _GLIBCXX_USE_NOEXCEPT { return 0; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:597:11: error: macro "max" requires 2 arguments, but only 1 given

       max() _GLIBCXX_USE_NOEXCEPT { return __SCHAR_MAX__ * 2U + 1; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:601:38: error: macro "min" requires 2 arguments, but only 1 given

       lowest() noexcept { return min(); }

                                      ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:667:11: error: macro "min" requires 2 arguments, but only 1 given

       min() _GLIBCXX_USE_NOEXCEPT { return __glibcxx_min (wchar_t); }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:670:11: error: macro "max" requires 2 arguments, but only 1 given

       max() _GLIBCXX_USE_NOEXCEPT { return __glibcxx_max (wchar_t); }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:674:38: error: macro "min" requires 2 arguments, but only 1 given

       lowest() noexcept { return min(); }

                                      ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:736:11: error: macro "min" requires 2 arguments, but only 1 given

       min() noexcept { return __glibcxx_min (char16_t); }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:739:11: error: macro "max" requires 2 arguments, but only 1 given

       max() noexcept { return __glibcxx_max (char16_t); }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:742:38: error: macro "min" requires 2 arguments, but only 1 given

       lowest() noexcept { return min(); }

                                      ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:797:11: error: macro "min" requires 2 arguments, but only 1 given

       min() noexcept { return __glibcxx_min (char32_t); }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:800:11: error: macro "max" requires 2 arguments, but only 1 given

       max() noexcept { return __glibcxx_max (char32_t); }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:803:38: error: macro "min" requires 2 arguments, but only 1 given

       lowest() noexcept { return min(); }

                                      ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:859:11: error: macro "min" requires 2 arguments, but only 1 given

       min() _GLIBCXX_USE_NOEXCEPT { return -__SHRT_MAX__ - 1; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:862:11: error: macro "max" requires 2 arguments, but only 1 given

       max() _GLIBCXX_USE_NOEXCEPT { return __SHRT_MAX__; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:866:38: error: macro "min" requires 2 arguments, but only 1 given

       lowest() noexcept { return min(); }

                                      ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:926:11: error: macro "min" requires 2 arguments, but only 1 given

       min() _GLIBCXX_USE_NOEXCEPT { return 0; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:929:11: error: macro "max" requires 2 arguments, but only 1 given

       max() _GLIBCXX_USE_NOEXCEPT { return __SHRT_MAX__ * 2U + 1; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:933:38: error: macro "min" requires 2 arguments, but only 1 given

       lowest() noexcept { return min(); }

                                      ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:999:11: error: macro "min" requires 2 arguments, but only 1 given

       min() _GLIBCXX_USE_NOEXCEPT { return -__INT_MAX__ - 1; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1002:11: error: macro "max" requires 2 arguments, but only 1 given

       max() _GLIBCXX_USE_NOEXCEPT { return __INT_MAX__; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1006:38: error: macro "min" requires 2 arguments, but only 1 given

       lowest() noexcept { return min(); }

                                      ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1066:11: error: macro "min" requires 2 arguments, but only 1 given

       min() _GLIBCXX_USE_NOEXCEPT { return 0; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1069:11: error: macro "max" requires 2 arguments, but only 1 given

       max() _GLIBCXX_USE_NOEXCEPT { return __INT_MAX__ * 2U + 1; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1073:38: error: macro "min" requires 2 arguments, but only 1 given

       lowest() noexcept { return min(); }

                                      ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1138:11: error: macro "min" requires 2 arguments, but only 1 given

       min() _GLIBCXX_USE_NOEXCEPT { return -__LONG_MAX__ - 1; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1141:11: error: macro "max" requires 2 arguments, but only 1 given

       max() _GLIBCXX_USE_NOEXCEPT { return __LONG_MAX__; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1145:38: error: macro "min" requires 2 arguments, but only 1 given

       lowest() noexcept { return min(); }

                                      ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1205:11: error: macro "min" requires 2 arguments, but only 1 given

       min() _GLIBCXX_USE_NOEXCEPT { return 0; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1208:11: error: macro "max" requires 2 arguments, but only 1 given

       max() _GLIBCXX_USE_NOEXCEPT { return __LONG_MAX__ * 2UL + 1; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1212:38: error: macro "min" requires 2 arguments, but only 1 given

       lowest() noexcept { return min(); }

                                      ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1278:11: error: macro "min" requires 2 arguments, but only 1 given

       min() _GLIBCXX_USE_NOEXCEPT { return -__LONG_LONG_MAX__ - 1; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1281:11: error: macro "max" requires 2 arguments, but only 1 given

       max() _GLIBCXX_USE_NOEXCEPT { return __LONG_LONG_MAX__; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1285:38: error: macro "min" requires 2 arguments, but only 1 given

       lowest() noexcept { return min(); }

                                      ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1348:11: error: macro "min" requires 2 arguments, but only 1 given

       min() _GLIBCXX_USE_NOEXCEPT { return 0; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1351:11: error: macro "max" requires 2 arguments, but only 1 given

       max() _GLIBCXX_USE_NOEXCEPT { return __LONG_LONG_MAX__ * 2ULL + 1; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1355:38: error: macro "min" requires 2 arguments, but only 1 given

       lowest() noexcept { return min(); }

                                      ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1599:11: error: macro "min" requires 2 arguments, but only 1 given

       min() _GLIBCXX_USE_NOEXCEPT { return __FLT_MIN__; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1602:11: error: macro "max" requires 2 arguments, but only 1 given

       max() _GLIBCXX_USE_NOEXCEPT { return __FLT_MAX__; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1674:11: error: macro "min" requires 2 arguments, but only 1 given

       min() _GLIBCXX_USE_NOEXCEPT { return __DBL_MIN__; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1677:11: error: macro "max" requires 2 arguments, but only 1 given

       max() _GLIBCXX_USE_NOEXCEPT { return __DBL_MAX__; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1749:11: error: macro "min" requires 2 arguments, but only 1 given

       min() _GLIBCXX_USE_NOEXCEPT { return __LDBL_MIN__; }

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\limits:1752:11: error: macro "max" requires 2 arguments, but only 1 given

       max() _GLIBCXX_USE_NOEXCEPT { return __LDBL_MAX__; }

           ^

In file included from c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\stl_algo.h:66:0,

                 from c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\algorithm:62,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/third_party/flatbuffers/include/flatbuffers/base.h:45,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/third_party/flatbuffers/include/flatbuffers/flatbuffers.h:20,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/schema/schema_generated.h:21,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/core/api/op_resolver.h:20,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/experimental/micro/micro_mutable_op_resolver.h:18,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h:16,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\examples\hello_world\hello_world.ino:23:

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\uniform_int_dist.h:76:56: error: macro "max" requires 2 arguments, but only 1 given

      _IntType __b = std::numeric_limits<_IntType>::max())

                                                        ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\uniform_int_dist.h:109:57: error: macro "max" requires 2 arguments, but only 1 given

       _IntType __b = std::numeric_limits<_IntType>::max())

                                                         ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\uniform_int_dist.h:153:11: error: macro "min" requires 2 arguments, but only 1 given

       min() const

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\uniform_int_dist.h:160:11: error: macro "max" requires 2 arguments, but only 1 given

       max() const

           ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\uniform_int_dist.h:231:40: error: macro "min" requires 2 arguments, but only 1 given

  const __uctype __urngmin = __urng.min();

                                        ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\uniform_int_dist.h:232:40: error: macro "max" requires 2 arguments, but only 1 given

  const __uctype __urngmax = __urng.max();

                                        ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\uniform_int_dist.h:300:40: error: macro "min" requires 2 arguments, but only 1 given

  const __uctype __urngmin = __urng.min();

                                        ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\uniform_int_dist.h:301:40: error: macro "max" requires 2 arguments, but only 1 given

  const __uctype __urngmax = __urng.max();

                                        ^

In file included from c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\algorithm:62:0,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/third_party/flatbuffers/include/flatbuffers/base.h:45,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/third_party/flatbuffers/include/flatbuffers/flatbuffers.h:20,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/schema/schema_generated.h:21,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/core/api/op_resolver.h:20,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/experimental/micro/micro_mutable_op_resolver.h:18,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h:16,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\examples\hello_world\hello_world.ino:23:

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\stl_algo.h:3450:34: error: macro "min" requires 2 arguments, but only 1 given

     min(initializer_list<_Tp> __l)

                                  ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\stl_algo.h:3462:34: error: macro "max" requires 2 arguments, but only 1 given

     max(initializer_list<_Tp> __l)

                                  ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\stl_algo.h:3815:45: error: macro "max" requires 2 arguments, but only 1 given

       const __uc_type __urngrange = __g.max() - __g.min();

                                             ^

c:\users\neoya\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\stl_algo.h:3815:57: error: macro "min" requires 2 arguments, but only 1 given

       const __uc_type __urngrange = __g.max() - __g.min();

                                                         ^

In file included from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/core/api/op_resolver.h:20:0,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/experimental/micro/micro_mutable_op_resolver.h:18,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h:16,

                 from C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\examples\hello_world\hello_world.ino:23:

C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/schema/schema_generated.h:2717:41: error: macro "min" requires 2 arguments, but only 1 given

   const flatbuffers::Vector<float> *min() const {

                                         ^

C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/schema/schema_generated.h:2720:41: error: macro "max" requires 2 arguments, but only 1 given

   const flatbuffers::Vector<float> *max() const {

                                         ^

C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/schema/schema_generated.h:2745:38: error: macro "min" requires 2 arguments, but only 1 given

            verifier.VerifyVector(min()) &&

                                      ^

C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/schema/schema_generated.h:2747:38: error: macro "max" requires 2 arguments, but only 1 given

            verifier.VerifyVector(max()) &&

                                      ^

C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/schema/schema_generated.h:6760:17: error: macro "min" requires 2 arguments, but only 1 given

       : min(0.0f),

                 ^

C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/schema/schema_generated.h:6761:17: error: macro "max" requires 2 arguments, but only 1 given

         max(0.0f),

                 ^

C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/schema/schema_generated.h:6775:13: error: macro "min" requires 2 arguments, but only 1 given

   float min() const {

             ^

C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/schema/schema_generated.h:6778:13: error: macro "max" requires 2 arguments, but only 1 given

   float max() const {

             ^

C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/schema/schema_generated.h:9626:19: error: macro "min" requires 2 arguments, but only 1 given

   { auto _e = min(); if (_e) { _o->min.resize(_e->size()); for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) { _o->min[_i] = _e->Get(_i); } } };

                   ^

C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/schema/schema_generated.h:9627:19: error: macro "max" requires 2 arguments, but only 1 given

   { auto _e = max(); if (_e) { _o->max.resize(_e->size()); for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) { _o->max[_i] = _e->Get(_i); } } };

                   ^

C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/schema/schema_generated.h:11470:19: error: macro "min" requires 2 arguments, but only 1 given

   { auto _e = min(); _o->min = _e; };

                   ^

C:\Users\neoya\Documents\Arduino\libraries\Arduino_TensorFlowLite\src/tensorflow/lite/schema/schema_generated.h:11471:19: error: macro "max" requires 2 arguments, but only 1 given

   { auto _e = max(); _o->max = _e; };

                   ^

exit status 1
Error compiling for board Adafruit Bluefruit Feather nRF52832.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.


yhy12313
 
Posts: 4
Joined: Sun Nov 10, 2019 11:45 pm

Please be positive and constructive with your questions and comments.