Skip to content

Commit

Permalink
chore: bump torch tests eucll assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
beniz authored and mergify[bot] committed Jan 21, 2021
1 parent d325e99 commit 566e5fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/ut-torchapi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ TEST(torchapi, service_train_images_split_regression_db_true)
ASSERT_EQ(201, jd["status"]["code"]);

ASSERT_TRUE(jd["body"]["measure"]["iteration"] == 200) << "iterations";
ASSERT_TRUE(jd["body"]["measure"]["eucll"].GetDouble() <= 10.0) << "eucll";
ASSERT_TRUE(jd["body"]["measure"]["eucll"].GetDouble() <= 12.0) << "eucll";

std::unordered_set<std::string> lfiles;
fileops::list_directory(resnet50_train_repo, true, false, false, lfiles);
Expand Down Expand Up @@ -562,7 +562,7 @@ TEST(torchapi, service_train_images_split_regression_db_false)
ASSERT_EQ(201, jd["status"]["code"]);

ASSERT_TRUE(jd["body"]["measure"]["iteration"] == 200) << "iterations";
ASSERT_TRUE(jd["body"]["measure"]["eucll"].GetDouble() <= 10.0) << "eucll";
ASSERT_TRUE(jd["body"]["measure"]["eucll"].GetDouble() <= 12.0) << "eucll";

std::unordered_set<std::string> lfiles;
fileops::list_directory(resnet50_train_repo, true, false, false, lfiles);
Expand Down

0 comments on commit 566e5fb

Please sign in to comment.