[go: nahoru, domu]

Skip to content

Commit

Permalink
Allow some tolerance in equality test by using EXPECT_FLOAT_EQ
Browse files Browse the repository at this point in the history
  • Loading branch information
elfringham committed Mar 16, 2022
1 parent da8aed5 commit bef4a90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorflow/core/framework/model_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ TEST_P(AsyncUnknownRatioTest, Model) {
async_unknown_many->record_element();
// Estimated ratio is 2/3
ratio = 2.0 / 3.0;
EXPECT_EQ(
EXPECT_FLOAT_EQ(
async_unknown_many->TotalProcessingTime(/*processing_times=*/nullptr),
ratio * (50 + 50) + 128 / 3.0);
EXPECT_LE(async_unknown_many->OutputTime(&input_times, nullptr),
Expand Down

0 comments on commit bef4a90

Please sign in to comment.