switch (interpreter->tensor(output)->type) {
case kTfLiteFloat32:
tflite::label_image::get_top_n(interpreter->typed_output_tensor(0), output_size,
5, threshold, &top_results, true);
break;
case kTfLiteUInt8:
tflite::label_image::get_top_n<uint8_t>(interpreter->typed_output_tensor<uint8_t>(0), output_size,
5, threshold, &top_results, false);
break;
/root/TensorFlow_Lite_RPi_64-bits/TensorFlow_Lite_Class.cpp|118|error: cannot convert ‘bool’ to ‘TfLiteType’|
/root/tensorflow/tensorflow/lite/examples/label_image/get_top_n_impl.h|35|note: initializing argument 6 of ‘void tflite::label_image::get_top_n(T*, int, size_t, float, std::vector<std::pair<float, int> >*, TfLiteType) [with T = float; size_t = long unsigned int]’|
Using Ubuntu 20.04 or RaspiOS 64