Skip to content

Unable to pass the compilation in platformio #3062

@gwangcode

Description

@gwangcode

I try to apply the neural network in ESP32 and then I downloaded the code. I am using the platformio in my coding. However there are many errors to prevent it from being compiled. How to solve it please?

Some errors are as follows:

In file included from lib/tfmicro/tensorflow/lite/kernels/internal/common.cc:16:
lib/tfmicro/tensorflow/lite/kernels/internal/common.h: In function 'int32_t tflite::MultiplyByQuantizedMultiplierSmallerThanOneExp(int32_t, int32_t, int)':
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:317:9: error: 'gemmlowp' has not been declared
317 | using gemmlowp::RoundingDivideByPOT;
| ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:318:9: error: 'gemmlowp' has not been declared
318 | using gemmlowp::SaturatingRoundingDoublingHighMul;
| ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:320:7: error: 'SaturatingRoundingDoublingHighMul' was not declared in this scope
320 | SaturatingRoundingDoublingHighMul(x, quantized_multiplier), -left_shift);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:319:10: error: 'RoundingDivideByPOT' was not declared in this scope
319 | return RoundingDivideByPOT(
| ^~~~~~~~~~~~~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h: In function 'int32_t tflite::MultiplyByQuantizedMultiplierGreaterThanOne(int32_t, int32_t, int)':
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:325:9: error: 'gemmlowp' has not been declared
325 | using gemmlowp::SaturatingRoundingDoublingHighMul;
| ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:326:10: error: 'SaturatingRoundingDoublingHighMul' was not declared in this scope
326 | return SaturatingRoundingDoublingHighMul(x * (1 << left_shift),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h: At global scope:
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:685:1: error: 'gemmlowp' does not name a type
685 | gemmlowp::FixedPoint<tRawType, tIntegerBits> SaturatingAddNonGemmlowp(
| ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:721:1: error: 'gemmlowp' does not name a type
721 | gemmlowp::FixedPoint<tRawType, tIntegerBits> SaturatingSub(
| ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h: In function 'IntegerType tflite::SaturatingRoundingMultiplyByPOTParam(IntegerType, int)':
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:735:16: error: 'gemmlowp' has not been declared
735 | typename gemmlowp::FixedPointRawTypeTraits::ScalarRawType;
| ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:737:7: error: 'gemmlowp' has not been declared
737 | gemmlowp::Dup(std::numeric_limits::min());
| ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:737:32: error: expected primary-expression before '>' token
737 | gemmlowp::Dup(std::numeric_limits::min());
Compiling .pio\build\esp32doit-devkit-v1\libf35\tfmicro\tensorflow\lite\kernels\internal\runtime_shape.cc.o
| ^
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:737:54: error: 'ScalarIntegerType' was not declared in this scope; did you mean 'IntegerType'?
737 | gemmlowp::Dup(std::numeric_limits::min());
| ^~~~~~~~~~~~~~~~~
| IntegerType
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:737:71: error: template argument 1 is invalid
737 | gemmlowp::Dup(std::numeric_limits::min());
| ^
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:739:7: error: 'gemmlowp' has not been declared
739 | gemmlowp::Dup(std::numeric_limits::max());
| ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:739:32: error: expected primary-expression before '>' token
739 | gemmlowp::Dup(std::numeric_limits::max());
| ^
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:745:7: error: 'gemmlowp' has not been declared
745 | gemmlowp::MaskIfGreaterThan(x, gemmlowp::Dup(threshold));
| ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:745:38: error: 'gemmlowp' has not been declared
745 | gemmlowp::MaskIfGreaterThan(x, gemmlowp::Dup(threshold));
| ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:745:63: error: expected primary-expression before '>' token
745 | gemmlowp::MaskIfGreaterThan(x, gemmlowp::Dup(threshold));
| ^
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:747:7: error: 'gemmlowp' has not been declared
747 | gemmlowp::MaskIfLessThan(x, gemmlowp::Dup(-threshold));
| ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:747:35: error: 'gemmlowp' has not been declared
747 | gemmlowp::MaskIfLessThan(x, gemmlowp::Dup(-threshold));
| ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:747:60: error: expected primary-expression before '>' token
747 | gemmlowp::MaskIfLessThan(x, gemmlowp::Dup(-threshold));
| ^
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:749:24: error: 'gemmlowp' has not been declared
749 | IntegerType result = gemmlowp::ShiftLeft(x, exponent);
Compiling .pio\build\esp32doit-devkit-v1\libf35\tfmicro\tensorflow\lite\kernels\internal\tensor_ctypes.cc.o
| ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:750:12: error: 'gemmlowp' has not been declared
750 | result = gemmlowp::SelectUsingMask(positive_mask, max, result);
| ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:751:12: error: 'gemmlowp' has not been declared
751 | result = gemmlowp::SelectUsingMask(negative_mask, min, result);
| ^~~~Compiling .pio\build\esp32doit-devkit-v1\libf35\tfmicro\tensorflow\lite\kernels\internal\tensor_utils.cc.o

lib/tfmicro/tensorflow/lite/kernels/internal/common.h: At global scope:
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:758:1: error: 'gemmlowp' does not name a type
  758 | gemmlowp::FixedPoint<tRawType, tIntegerBits>
      | ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:804:8: error: 'gemmlowp' does not name a type
  804 | inline gemmlowp::FixedPoint<int32_t, OutputIntegerBits>
      |        ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:888:8: error: 'gemmlowp' does not name a type      
  888 | inline gemmlowp::FixedPoint<int32_t, OutputIntegerBits>
      |        ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h: In function 'int32_t tflite::GetReciprocal(int32_t, int, int*)':
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:910:3: error: 'gemmlowp' has not been declared     
  910 |   gemmlowp::FixedPoint<int32_t, 0> shifted_scale =
      |   ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:910:31: error: expected primary-expression before ',' token
  910 |   gemmlowp::FixedPoint<int32_t, 0> shifted_scale =
      |                               ^
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:910:36: error: 'shifted_scale' was not declared in this scope
  910 |   gemmlowp::FixedPoint<int32_t, 0> shifted_scale =
      |                                    ^~~~~~~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:911:7: error: 'gemmlowp' has not been declared
  911 |       gemmlowp::one_over_one_plus_x_for_x_in_0_1(
      |       ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:912:11: error: 'gemmlowp' has not been declared
  912 |           gemmlowp::FixedPoint<int32_t, 0>::FromRaw(shifted_sum_minus_one));
      |           ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:912:39: error: expected primary-expression before ',' token
  912 |           gemmlowp::FixedPoint<int32_t, 0>::FromRaw(shifted_sum_minus_one));
      |                                       ^
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:912:45: error: '::FromRaw' has not been declared   
  912 |           gemmlowp::FixedPoint<int32_t, 0>::FromRaw(shifted_sum_minus_one));
      |                                             ^~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h: In function 'void tflite::GetInvSqrtQuantizedMultiplierExp(int32_t, int, int32_t*, int*)':
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:944:9: error: 'gemmlowp' has not been declared     
  944 |   using gemmlowp::FixedPoint;
      |         ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:945:9: error: 'gemmlowp' has not been declared     
  945 |   using gemmlowp::Rescale;
      |         ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:946:9: error: 'gemmlowp' has not been declared     
  946 |   using gemmlowp::SaturatingRoundingMultiplyByPOT;
      |         ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:949:14: error: 'FixedPoint' does not name a type   
  949 |   using F3 = FixedPoint<int32_t, 3>;
      |              ^~~~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:950:14: error: 'FixedPoint' does not name a type   
  950 |   using F0 = FixedPoint<int32_t, 0>;
      |              ^~~~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:951:9: error: 'F3' does not name a type
  951 |   const F3 fixedpoint_input = F3::FromRaw(input >> 1);
      |         ^~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:952:9: error: 'F3' does not name a type
  952 |   const F3 fixedpoint_half_input =
      |         ^~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:954:9: error: 'F3' does not name a type
  954 |   const F3 fixedpoint_half_three =
      |         ^~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:958:3: error: 'F3' was not declared in this scope
  958 |   F3 x = F3::One();
      |   ^~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:961:11: error: 'F3' does not name a type
  961 |     const F3 x3 = Rescale<3>(x * x * x);
      |           ^~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:962:5: error: 'x' was not declared in this scope   
  962 |     x = Rescale<3>(fixedpoint_half_three * x - fixedpoint_half_input * x3);
      |     ^
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:962:20: error: 'fixedpoint_half_three' was not declared in this scope
  962 |     x = Rescale<3>(fixedpoint_half_three * x - fixedpoint_half_input * x3);
      |                    ^~~~~~~~~~~~~~~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:962:48: error: 'fixedpoint_half_input' was not declared in this scope
  962 |     x = Rescale<3>(fixedpoint_half_three * x - fixedpoint_half_input * x3);
      |                                                ^~~~~~~~~~~~~~~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:962:72: error: 'x3' was not declared in this scope
  962 |     x = Rescale<3>(fixedpoint_half_three * x - fixedpoint_half_input * x3);
      |                                                                        ^~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:962:9: error: 'Rescale' was not declared in this scope
  962 |     x = Rescale<3>(fixedpoint_half_three * x - fixedpoint_half_input * x3);
      |         ^~~~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:964:9: error: 'F0' does not name a type
  964 |   const F0 fixedpoint_half_sqrt_2 =
      |         ^~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:966:3: error: 'x' was not declared in this scope
  966 |   x = x * fixedpoint_half_sqrt_2;
      |   ^
In file included from lib/tfmicro/tensorflow/lite/kernels/internal/reference/comparisons.h:22,
                 from lib/tfmicro/tensorflow/lite/kernels/internal/reference/comparisons.cc:16:
lib/tfmicro/tensorflow/lite/kernels/internal/common.h: In function 'int32_t tflite::MultiplyByQuantizedMultiplierSmallerThanOneExp(int32_t, int32_t, int)':
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:317:9: error: 'gemmlowp' has not been declared     
  317 |   using gemmlowp::RoundingDivideByPOT;
      |         ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:318:9: error: 'gemmlowp' has not been declared     
  318 |   using gemmlowp::SaturatingRoundingDoublingHighMul;
      |         ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:966:11: error: 'fixedpoint_half_sqrt_2' was not declared in this scope
  966 |   x = x * fixedpoint_half_sqrt_2;
      |           ^~~~~~~~~~~~~~~~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.cc: In function 'int32_t tflite::MultiplyByQuantizedMultiplier(int32_t, int32_t, int)':
lib/tfmicro/tensorflow/lite/kernels/internal/common.cc:69:9: error: 'gemmlowp' has not been declared     
   69 |   using gemmlowp::RoundingDivideByPOT;
      |         ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.cc:70:9: error: 'gemmlowp' has not been declared     
   70 |   using gemmlowp::SaturatingRoundingDoublingHighMul;
      |         ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:320:7: error: 'SaturatingRoundingDoublingHighMul' was not declared in this scope
  320 |       SaturatingRoundingDoublingHighMul(x, quantized_multiplier), -left_shift);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.cc:73:30: error: 'SaturatingRoundingDoublingHighMul' was not declared in this scope
   73 |   return RoundingDivideByPOT(SaturatingRoundingDoublingHighMul(
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.cc:73:10: error: 'RoundingDivideByPOT' was not declared in this scope
   73 |   return RoundingDivideByPOT(SaturatingRoundingDoublingHighMul(
      |          ^~~~~~~~~~~~~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:319:10: error: 'RoundingDivideByPOT' was not declared in this scope
  319 |   return RoundingDivideByPOT(
      |          ^~~~~~~~~~~~~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h: In function 'int32_t tflite::MultiplyByQuantizedMultiplierGreaterThanOne(int32_t, int32_t, int)':
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:325:9: error: 'gemmlowp' has not been declared     
  325 |   using gemmlowp::SaturatingRoundingDoublingHighMul;
      |         ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:326:10: error: 'SaturatingRoundingDoublingHighMul' was not declared in this scope
  326 |   return SaturatingRoundingDoublingHighMul(x * (1 << left_shift),
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h: At global scope:
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:685:1: error: 'gemmlowp' does not name a type      
  685 | gemmlowp::FixedPoint<tRawType, tIntegerBits> SaturatingAddNonGemmlowp(
      | ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:721:1: error: 'gemmlowp' does not name a type      
  721 | gemmlowp::FixedPoint<tRawType, tIntegerBits> SaturatingSub(
      | ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h: In function 'IntegerType tflite::SaturatingRoundingMultiplyByPOTParam(IntegerType, int)':
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:735:16: error: 'gemmlowp' has not been declared    
  735 |       typename gemmlowp::FixedPointRawTypeTraits<IntegerType>::ScalarRawType;
      |                ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:737:7: error: 'gemmlowp' has not been declared     
  737 |       gemmlowp::Dup<IntegerType>(std::numeric_limits<ScalarIntegerType>::min());
      |       ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:737:32: error: expected primary-expression before '>' token
  737 |       gemmlowp::Dup<IntegerType>(std::numeric_limits<ScalarIntegerType>::min());
      |                                ^
*** [.pio\build\esp32doit-devkit-v1\libf35\tfmicro\tensorflow\lite\kernels\internal\common.cc.o] Error 1 
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:737:54: error: 'ScalarIntegerType' was not declared in this scope; did you mean 'IntegerType'?
  737 |       gemmlowp::Dup<IntegerType>(std::numeric_limits<ScalarIntegerType>::min());
      |                                                      ^~~~~~~~~~~~~~~~~
      |                                                      IntegerType
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:737:71: error: template argument 1 is invalid      
  737 |       gemmlowp::Dup<IntegerType>(std::numeric_limits<ScalarIntegerType>::min());
      |                                                                       ^
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:739:7: error: 'gemmlowp' has not been declared
  739 |       gemmlowp::Dup<IntegerType>(std::numeric_limits<ScalarIntegerType>::max());
      |       ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:739:32: error: expected primary-expression before '>' token
  739 |       gemmlowp::Dup<IntegerType>(std::numeric_limits<ScalarIntegerType>::max());
      |                                ^
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:745:7: error: 'gemmlowp' has not been declared
  745 |       gemmlowp::MaskIfGreaterThan(x, gemmlowp::Dup<IntegerType>(threshold));
      |       ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:745:38: error: 'gemmlowp' has not been declared
  745 |       gemmlowp::MaskIfGreaterThan(x, gemmlowp::Dup<IntegerType>(threshold));
      |                                      ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:745:63: error: expected primary-expression before '>' token
  745 |       gemmlowp::MaskIfGreaterThan(x, gemmlowp::Dup<IntegerType>(threshold));
      |                                                               ^
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:747:7: error: 'gemmlowp' has not been declared     
  747 |       gemmlowp::MaskIfLessThan(x, gemmlowp::Dup<IntegerType>(-threshold));
      |       ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:747:35: error: 'gemmlowp' has not been declared    
  747 |       gemmlowp::MaskIfLessThan(x, gemmlowp::Dup<IntegerType>(-threshold));
      |                                   ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:747:60: error: expected primary-expression before '>' token
  747 |       gemmlowp::MaskIfLessThan(x, gemmlowp::Dup<IntegerType>(-threshold));
      |                                                            ^
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:749:24: error: 'gemmlowp' has not been declared    
  749 |   IntegerType result = gemmlowp::ShiftLeft(x, exponent);
      |                        ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:750:12: error: 'gemmlowp' has not been declared
  750 |   result = gemmlowp::SelectUsingMask(positive_mask, max, result);
      |            ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:751:12: error: 'gemmlowp' has not been declared    
  751 |   result = gemmlowp::SelectUsingMask(negative_mask, min, result);
      |            ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h: At global scope:
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:758:1: error: 'gemmlowp' does not name a type      
  758 | gemmlowp::FixedPoint<tRawType, tIntegerBits>
      | ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:804:8: error: 'gemmlowp' does not name a type      
  804 | inline gemmlowp::FixedPoint<int32_t, OutputIntegerBits>
      |        ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:888:8: error: 'gemmlowp' does not name a type      
  888 | inline gemmlowp::FixedPoint<int32_t, OutputIntegerBits>
      |        ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h: In function 'int32_t tflite::GetReciprocal(int32_t, int, int*)':
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:910:3: error: 'gemmlowp' has not been declared     
  910 |   gemmlowp::FixedPoint<int32_t, 0> shifted_scale =
      |   ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:910:31: error: expected primary-expression before ',' token
  910 |   gemmlowp::FixedPoint<int32_t, 0> shifted_scale =
      |                               ^
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:910:36: error: 'shifted_scale' was not declared in this scope
  910 |   gemmlowp::FixedPoint<int32_t, 0> shifted_scale =
      |                                    ^~~~~~~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:911:7: error: 'gemmlowp' has not been declared     
  911 |       gemmlowp::one_over_one_plus_x_for_x_in_0_1(
      |       ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:912:11: error: 'gemmlowp' has not been declared    
  912 |           gemmlowp::FixedPoint<int32_t, 0>::FromRaw(shifted_sum_minus_one));
      |           ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:912:39: error: expected primary-expression before ',' token
  912 |           gemmlowp::FixedPoint<int32_t, 0>::FromRaw(shifted_sum_minus_one));
      |                                       ^
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:912:45: error: '::FromRaw' has not been declared   
  912 |           gemmlowp::FixedPoint<int32_t, 0>::FromRaw(shifted_sum_minus_one));
      |                                             ^~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h: In function 'void tflite::GetInvSqrtQuantizedMultiplierExp(int32_t, int, int32_t*, int*)':
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:944:9: error: 'gemmlowp' has not been declared
  944 |   using gemmlowp::FixedPoint;
      |         ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:945:9: error: 'gemmlowp' has not been declared
  945 |   using gemmlowp::Rescale;
      |         ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:946:9: error: 'gemmlowp' has not been declared     
  946 |   using gemmlowp::SaturatingRoundingMultiplyByPOT;
      |         ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:949:14: error: 'FixedPoint' does not name a type   
  949 |   using F3 = FixedPoint<int32_t, 3>;
      |              ^~~~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:950:14: error: 'FixedPoint' does not name a type   
  950 |   using F0 = FixedPoint<int32_t, 0>;
      |              ^~~~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:951:9: error: 'F3' does not name a type
  951 |   const F3 fixedpoint_input = F3::FromRaw(input >> 1);
      |         ^~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:952:9: error: 'F3' does not name a type
  952 |   const F3 fixedpoint_half_input =
      |         ^~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:954:9: error: 'F3' does not name a type
  954 |   const F3 fixedpoint_half_three =
      |         ^~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:958:3: error: 'F3' was not declared in this scope  
  958 |   F3 x = F3::One();
      |   ^~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:961:11: error: 'F3' does not name a type
  961 |     const F3 x3 = Rescale<3>(x * x * x);
      |           ^~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:962:5: error: 'x' was not declared in this scope   
  962 |     x = Rescale<3>(fixedpoint_half_three * x - fixedpoint_half_input * x3);
      |     ^
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:962:20: error: 'fixedpoint_half_three' was not declared in this scope
  962 |     x = Rescale<3>(fixedpoint_half_three * x - fixedpoint_half_input * x3);
      |                    ^~~~~~~~~~~~~~~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:962:48: error: 'fixedpoint_half_input' was not declared in this scope
  962 |     x = Rescale<3>(fixedpoint_half_three * x - fixedpoint_half_input * x3);
      |                                                ^~~~~~~~~~~~~~~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:962:72: error: 'x3' was not declared in this scope 
  962 |     x = Rescale<3>(fixedpoint_half_three * x - fixedpoint_half_input * x3);
      |                                                                        ^~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:962:9: error: 'Rescale' was not declared in this scope
  962 |     x = Rescale<3>(fixedpoint_half_three * x - fixedpoint_half_input * x3);
      |         ^~~~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:964:9: error: 'F0' does not name a type
  964 |   const F0 fixedpoint_half_sqrt_2 =
      |         ^~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:966:3: error: 'x' was not declared in this scope   
  966 |   x = x * fixedpoint_half_sqrt_2;
      |   ^
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:966:11: error: 'fixedpoint_half_sqrt_2' was not declared in this scope
  966 |   x = x * fixedpoint_half_sqrt_2;
      |           ^~~~~~~~~~~~~~~~~~~~~~
*** [.pio\build\esp32doit-devkit-v1\libf35\tfmicro\tensorflow\lite\kernels\internal\reference\comparisons.cc.o] Error 1
In file included from lib/tfmicro/tensorflow/lite/kernels/internal/reference/portable_tensor_utils.cc:23:
lib/tfmicro/tensorflow/lite/kernels/internal/common.h: In function 'int32_t tflite::MultiplyByQuantizedMultiplierSmallerThanOneExp(int32_t, int32_t, int)':
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:317:9: error: 'gemmlowp' has not been declared     
  317 |   using gemmlowp::RoundingDivideByPOT;
      |         ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:318:9: error: 'gemmlowp' has not been declared     
  318 |   using gemmlowp::SaturatingRoundingDoublingHighMul;
      |         ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:320:7: error: 'SaturatingRoundingDoublingHighMul' was not declared in this scope
  320 |       SaturatingRoundingDoublingHighMul(x, quantized_multiplier), -left_shift);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:319:10: error: 'RoundingDivideByPOT' was not declared in this scope
  319 |   return RoundingDivideByPOT(
      |          ^~~~~~~~~~~~~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h: In function 'int32_t tflite::MultiplyByQuantizedMultiplierGreaterThanOne(int32_t, int32_t, int)':
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:325:9: error: 'gemmlowp' has not been declared     
  325 |   using gemmlowp::SaturatingRoundingDoublingHighMul;
      |         ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:326:10: error: 'SaturatingRoundingDoublingHighMul' was not declared in this scope
  326 |   return SaturatingRoundingDoublingHighMul(x * (1 << left_shift),
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h: At global scope:
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:685:1: error: 'gemmlowp' does not name a type      
  685 | gemmlowp::FixedPoint<tRawType, tIntegerBits> SaturatingAddNonGemmlowp(
      | ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:721:1: error: 'gemmlowp' does not name a type
  721 | gemmlowp::FixedPoint<tRawType, tIntegerBits> SaturatingSub(
      | ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h: In function 'IntegerType tflite::SaturatingRoundingMultiplyByPOTParam(IntegerType, int)':
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:735:16: error: 'gemmlowp' has not been declared    
  735 |       typename gemmlowp::FixedPointRawTypeTraits<IntegerType>::ScalarRawType;
      |                ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:737:7: error: 'gemmlowp' has not been declared     
  737 |       gemmlowp::Dup<IntegerType>(std::numeric_limits<ScalarIntegerType>::min());
      |       ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:737:32: error: expected primary-expression before '>' token
  737 |       gemmlowp::Dup<IntegerType>(std::numeric_limits<ScalarIntegerType>::min());
      |                                ^
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:737:54: error: 'ScalarIntegerType' was not declared in this scope; did you mean 'IntegerType'?
  737 |       gemmlowp::Dup<IntegerType>(std::numeric_limits<ScalarIntegerType>::min());
      |                                                      ^~~~~~~~~~~~~~~~~
      |                                                      IntegerType
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:737:71: error: template argument 1 is invalid      
  737 |       gemmlowp::Dup<IntegerType>(std::numeric_limits<ScalarIntegerType>::min());
      |                                                                       ^
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:739:7: error: 'gemmlowp' has not been declared     
  739 |       gemmlowp::Dup<IntegerType>(std::numeric_limits<ScalarIntegerType>::max());
      |       ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:739:32: error: expected primary-expression before '>' token
  739 |       gemmlowp::Dup<IntegerType>(std::numeric_limits<ScalarIntegerType>::max());
      |                                ^
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:745:7: error: 'gemmlowp' has not been declared     
  745 |       gemmlowp::MaskIfGreaterThan(x, gemmlowp::Dup<IntegerType>(threshold));
      |       ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:745:38: error: 'gemmlowp' has not been declared    
  745 |       gemmlowp::MaskIfGreaterThan(x, gemmlowp::Dup<IntegerType>(threshold));
      |                                      ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:745:63: error: expected primary-expression before '>' token
  745 |       gemmlowp::MaskIfGreaterThan(x, gemmlowp::Dup<IntegerType>(threshold));
      |                                                               ^
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:747:7: error: 'gemmlowp' has not been declared     
  747 |       gemmlowp::MaskIfLessThan(x, gemmlowp::Dup<IntegerType>(-threshold));
      |       ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:747:35: error: 'gemmlowp' has not been declared    
  747 |       gemmlowp::MaskIfLessThan(x, gemmlowp::Dup<IntegerType>(-threshold));
      |                                   ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:747:60: error: expected primary-expression before '>' token
  747 |       gemmlowp::MaskIfLessThan(x, gemmlowp::Dup<IntegerType>(-threshold));
      |                                                            ^
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:749:24: error: 'gemmlowp' has not been declared    
  749 |   IntegerType result = gemmlowp::ShiftLeft(x, exponent);
      |                        ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:750:12: error: 'gemmlowp' has not been declared    
  750 |   result = gemmlowp::SelectUsingMask(positive_mask, max, result);
      |            ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:751:12: error: 'gemmlowp' has not been declared    
  751 |   result = gemmlowp::SelectUsingMask(negative_mask, min, result);
      |            ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h: At global scope:
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:758:1: error: 'gemmlowp' does not name a type      
  758 | gemmlowp::FixedPoint<tRawType, tIntegerBits>
      | ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:804:8: error: 'gemmlowp' does not name a type      
  804 | inline gemmlowp::FixedPoint<int32_t, OutputIntegerBits>
      |        ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:888:8: error: 'gemmlowp' does not name a type      
  888 | inline gemmlowp::FixedPoint<int32_t, OutputIntegerBits>
      |        ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h: In function 'int32_t tflite::GetReciprocal(int32_t, int, int*)':
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:910:3: error: 'gemmlowp' has not been declared     
  910 |   gemmlowp::FixedPoint<int32_t, 0> shifted_scale =
      |   ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:910:31: error: expected primary-expression before ',' token
  910 |   gemmlowp::FixedPoint<int32_t, 0> shifted_scale =
      |                               ^
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:910:36: error: 'shifted_scale' was not declared in this scope
  910 |   gemmlowp::FixedPoint<int32_t, 0> shifted_scale =
      |                                    ^~~~~~~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:911:7: error: 'gemmlowp' has not been declared     
  911 |       gemmlowp::one_over_one_plus_x_for_x_in_0_1(
      |       ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:912:11: error: 'gemmlowp' has not been declared
  912 |           gemmlowp::FixedPoint<int32_t, 0>::FromRaw(shifted_sum_minus_one));
      |           ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:912:39: error: expected primary-expression before ',' token
  912 |           gemmlowp::FixedPoint<int32_t, 0>::FromRaw(shifted_sum_minus_one));
      |                                       ^
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:912:45: error: '::FromRaw' has not been declared   
  912 |           gemmlowp::FixedPoint<int32_t, 0>::FromRaw(shifted_sum_minus_one));
      |                                             ^~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h: In function 'void tflite::GetInvSqrtQuantizedMultiplierExp(int32_t, int, int32_t*, int*)':
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:944:9: error: 'gemmlowp' has not been declared
  944 |   using gemmlowp::FixedPoint;
      |         ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:945:9: error: 'gemmlowp' has not been declared     
  945 |   using gemmlowp::Rescale;
      |         ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:946:9: error: 'gemmlowp' has not been declared     
  946 |   using gemmlowp::SaturatingRoundingMultiplyByPOT;
      |         ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:949:14: error: 'FixedPoint' does not name a type   
  949 |   using F3 = FixedPoint<int32_t, 3>;
      |              ^~~~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:950:14: error: 'FixedPoint' does not name a type   
  950 |   using F0 = FixedPoint<int32_t, 0>;
      |              ^~~~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:951:9: error: 'F3' does not name a type
  951 |   const F3 fixedpoint_input = F3::FromRaw(input >> 1);
      |         ^~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:952:9: error: 'F3' does not name a type
  952 |   const F3 fixedpoint_half_input =
      |         ^~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:954:9: error: 'F3' does not name a type
  954 |   const F3 fixedpoint_half_three =
      |         ^~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:958:3: error: 'F3' was not declared in this scope  
  958 |   F3 x = F3::One();
      |   ^~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:961:11: error: 'F3' does not name a type
  961 |     const F3 x3 = Rescale<3>(x * x * x);
      |           ^~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:962:5: error: 'x' was not declared in this scope   
  962 |     x = Rescale<3>(fixedpoint_half_three * x - fixedpoint_half_input * x3);
      |     ^
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:962:20: error: 'fixedpoint_half_three' was not declared in this scope
  962 |     x = Rescale<3>(fixedpoint_half_three * x - fixedpoint_half_input * x3);
      |                    ^~~~~~~~~~~~~~~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:962:48: error: 'fixedpoint_half_input' was not declared in this scope
  962 |     x = Rescale<3>(fixedpoint_half_three * x - fixedpoint_half_input * x3);
      |                                                ^~~~~~~~~~~~~~~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:962:72: error: 'x3' was not declared in this scope 
  962 |     x = Rescale<3>(fixedpoint_half_three * x - fixedpoint_half_input * x3);
      |                                                                        ^~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:962:9: error: 'Rescale' was not declared in this scope
  962 |     x = Rescale<3>(fixedpoint_half_three * x - fixedpoint_half_input * x3);
      |         ^~~~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:964:9: error: 'F0' does not name a type
  964 |   const F0 fixedpoint_half_sqrt_2 =
      |         ^~
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:966:3: error: 'x' was not declared in this scope   
  966 |   x = x * fixedpoint_half_sqrt_2;
      |   ^
lib/tfmicro/tensorflow/lite/kernels/internal/common.h:966:11: error: 'fixedpoint_half_sqrt_2' was not declared in this scope
  966 |   x = x * fixedpoint_half_sqrt_2;
      |           ^~~~~~~~~~~~~~~~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/reference/portable_tensor_utils.cc: In function 'void tflite::tensor_utils::PortableApplySigmoid(const int16_t*, int32_t, int32_t, int16_t*)':
lib/tfmicro/tensorflow/lite/kernels/internal/reference/portable_tensor_utils.cc:566:18: error: 'gemmlowp' does not name a type
  566 |       using F3 = gemmlowp::FixedPoint<std::int16_t, 3>;
      |                  ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/reference/portable_tensor_utils.cc:567:18: error: 'gemmlowp' does not name a type
  567 |       using F0 = gemmlowp::FixedPoint<std::int16_t, 0>;
      |                  ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/reference/portable_tensor_utils.cc:569:7: error: 'F3' was not declared in this scope
  569 |       F3 sigmoid_input = F3::FromRaw(input[index]);
      |       ^~
lib/tfmicro/tensorflow/lite/kernels/internal/reference/portable_tensor_utils.cc:570:7: error: 'F0' was not declared in this scope; did you mean 'y0'?
  570 |       F0 sigmoid_output = gemmlowp::logistic(sigmoid_input);
      |       ^~
      |       y0
lib/tfmicro/tensorflow/lite/kernels/internal/reference/portable_tensor_utils.cc:571:23: error: 'sigmoid_output' was not declared in this scope
  571 |       output[index] = sigmoid_output.raw();
      |                       ^~~~~~~~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/reference/portable_tensor_utils.cc: In function 'void tflite::tensor_utils::PortableApplyTanhImpl(const int16_t*, int32_t, int32_t, int16_t*)':
lib/tfmicro/tensorflow/lite/kernels/internal/reference/portable_tensor_utils.cc:598:14: error: 'gemmlowp' does not name a type
  598 |   using FX = gemmlowp::FixedPoint<std::int16_t, IntegerBits>;
      |              ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/reference/portable_tensor_utils.cc:599:14: error: 'gemmlowp' does not name a type
  599 |   using F0 = gemmlowp::FixedPoint<std::int16_t, 0>;
      |              ^~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/reference/portable_tensor_utils.cc:603:7: error: 'FX' was not declared in this scope
  603 |       FX tanh_input = FX::FromRaw(input[index]);
      |       ^~
lib/tfmicro/tensorflow/lite/kernels/internal/reference/portable_tensor_utils.cc:604:7: error: 'F0' was not declared in this scope; did you mean 'y0'?
  604 |       F0 tanh_output = gemmlowp::tanh(tanh_input);
      |       ^~
      |       y0
lib/tfmicro/tensorflow/lite/kernels/internal/reference/portable_tensor_utils.cc:605:23: error: 'tanh_output' was not declared in this scope
  605 |       output[index] = tanh_output.raw();
      |                       ^~~~~~~~~~~
lib/tfmicro/tensorflow/lite/kernels/internal/reference/portable_tensor_utils.cc: In function 'void tflite::tensor_utils::PortableCwiseMul(const int16_t*, const int16_t*, int, int, int, int16_t*)':
lib/tfmicro/tensorflow/lite/kernels/internal/reference/portable_tensor_utils.cc:661:32: error: 'gemmlowp' has not been declared
  661 |           static_cast<int16_t>(gemmlowp::RoundingDivideByPOT(value, shift));
      |                                ^~~~~~~~
*** [.pio\build\esp32doit-devkit-v1\libf35\tfmicro\tensorflow\lite\kernels\internal\reference\portable_tensor_utils.cc.o] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions