Skip to content

Commit c9e2319

Browse files
authored
test(memory_arena_threshold): don't expect exact allocation values (#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
1 parent 112d7a6 commit c9e2319

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

tensorflow/lite/micro/memory_arena_threshold_test.cc

-4
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,6 @@ void EnsureAllocatedSizeThreshold(const char* allocation_type, size_t actual,
136136
// 64-bit systems should check floor and ceiling to catch memory savings:
137137
TF_LITE_MICRO_EXPECT_NEAR(actual, expected,
138138
expected * kAllocationThreshold);
139-
if (actual != expected) {
140-
MicroPrintf("%s threshold failed: %d != %d", allocation_type, actual,
141-
expected);
142-
}
143139
} else {
144140
// Non-64 bit systems should just expect allocation does not exceed the
145141
// ceiling:

0 commit comments

Comments
 (0)