message: Added invocation and memory allocation checks
  Added checks for the Invoke and AllocateTensors.
  Also, consider using macros and more descriptive error logs. As in the TfLite C++ example for Desktop.
diff: @@ -51,7 +51,10 @@ TF_LITE_MICRO_TEST(LoadModelAndPerformInference) {
  tensor_arena_size, error_reporter);
  // Allocate memory from the tensor_arena for the model's tensors
  - interpreter.AllocateTensors();
  + TfLiteStatus allocation_status = interpreter.AllocateTensors();
  + if (allocation_status != kTfLiteOk) {
  + error_reporter->Report("Tensor allocation failed\n");
  + }
  // Obtain a pointer to the model's input tensor
  TfLiteTensor* input = interpreter.input(0);
  @@ -95,17 +98,28 @@ TF_LITE_MICRO_TEST(LoadModelAndPerformInference) {
  // Run inference on several more values and confirm the expected outputs
  input->data.f[0] = 1.;
  - interpreter.Invoke();
  + invoke_status = interpreter.Invoke();
  + if (invoke_status != kTfLiteOk) {
  + error_reporter->Report("Invoke failed\n");
  + }
  +
  value = output->data.f[0];
  TF_LITE_MICRO_EXPECT_NEAR(0.841, value, 0.05);
  input->data.f[0] = 3.;
  - interpreter.Invoke();
  + invoke_status = interpreter.Invoke();
  + if (invoke_status != kTfLiteOk) {
  + error_reporter->Report("Invoke failed\n");
  + }
  +
  value = output->data.f[0];
  TF_LITE_MICRO_EXPECT_NEAR(0.141, value, 0.05);
  input->data.f[0] = 5.;
  - interpreter.Invoke();
  + invoke_status = interpreter.Invoke();
  + if (invoke_status != kTfLiteOk) {
  + error_reporter->Report("Invoke failed\n");
  + }
  value = output->data.f[0];
  TF_LITE_MICRO_EXPECT_NEAR(-0.959, value, 0.05);
  }
  