Skip to content

Commit

Permalink
Add uint16 support to TfLiteTypeSizeOf (#2693)
Browse files Browse the repository at this point in the history
BUG=uint16 missing in TfLiteTypeSizeOf
  • Loading branch information
mansnils authored Sep 23, 2024
1 parent 6147f20 commit ce26927
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tensorflow/lite/micro/memory_helpers.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright 2023 The TensorFlow Authors. All Rights Reserved.
/* Copyright 2024 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -71,6 +71,9 @@ TfLiteStatus TfLiteTypeSizeOf(TfLiteType type, size_t* size) {
case kTfLiteUInt8:
*size = sizeof(uint8_t);
break;
case kTfLiteUInt16:
*size = sizeof(uint16_t);
break;
case kTfLiteInt8:
*size = sizeof(int8_t);
break;
Expand Down

0 comments on commit ce26927

Please sign in to comment.