Skip to content

Commit

Permalink
cras: Add kTfLiteCancelled to get_tflite_error_string
Browse files Browse the repository at this point in the history
TensorFlow 2.12 added a new value to TfLiteStatus so handle it.

BUG=b:303060876
TEST=FEATURES=test emerge-${BOARD} adhd

Cq-Depend: chromium:4906413
Change-Id: I513a08ccd7d47ddd5979fc262dec16767297d200
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/adhd/+/4912413
Commit-Queue: Allen Webb <allenwebb@google.com>
Tested-by: chromeos-cop-builder@chromeos-cop.iam.gserviceaccount.com <chromeos-cop-builder@chromeos-cop.iam.gserviceaccount.com>
Reviewed-by: Li-Yu Yu <aaronyu@google.com>
  • Loading branch information
Allen-Webb authored and Chromeos LUCI committed Oct 19, 2023
1 parent 837e4bc commit 0472f66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cras/src/dsp/am.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ static inline const char* get_tflite_error_string(const TfLiteStatus status) {
switch (status) {
case kTfLiteOk:
return "kTfLiteOk";
case kTfLiteCancelled:
return "kTfLiteCancelled";
case kTfLiteError:
return "kTfLiteError";
case kTfLiteDelegateError:
Expand Down

0 comments on commit 0472f66

Please sign in to comment.