Skip to content

Commit

Permalink
Automated sync from github.com/tensorflow/tensorflow (#2585)
Browse files Browse the repository at this point in the history
BUG=automated sync from upstream
NO_CHECK_TFLITE_FILES=automated sync from upstream
  • Loading branch information
TFLM-bot committed May 20, 2024
1 parent 9045e1b commit 8e22946
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tensorflow/lite/kernels/kernel_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -572,12 +572,11 @@ int TfLiteTypeGetSize(TfLiteType type) {
bool IsMobilePlatform() {
#if defined(ANDROID) || defined(__ANDROID__)
return true;
#elif defined(__APPLE__)
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
#elif defined(__APPLE__) && (TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE)
return true;
#endif
#endif
#else
return false;
#endif
}

bool HasUnspecifiedDimension(const TfLiteTensor* tensor) {
Expand Down

0 comments on commit 8e22946

Please sign in to comment.