Skip to content

Commit

Permalink
test(memory_arena_threshold): don't expect exact allocation values (#…
Browse files Browse the repository at this point in the history
…3005)

Remove the check for allocation sizes to exactly match expected values.
This check immediately followed--and thus rendered pointless---a check
that sizes are within a certain percentage, which seems to be the true
intent of the test.

BUG=see description
  • Loading branch information
rkuester authored Dec 11, 2024
1 parent 112d7a6 commit c9e2319
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tensorflow/lite/micro/memory_arena_threshold_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,6 @@ void EnsureAllocatedSizeThreshold(const char* allocation_type, size_t actual,
// 64-bit systems should check floor and ceiling to catch memory savings:
TF_LITE_MICRO_EXPECT_NEAR(actual, expected,
expected * kAllocationThreshold);
if (actual != expected) {
MicroPrintf("%s threshold failed: %d != %d", allocation_type, actual,
expected);
}
} else {
// Non-64 bit systems should just expect allocation does not exceed the
// ceiling:
Expand Down

0 comments on commit c9e2319

Please sign in to comment.