Skip to content

Commit

Permalink
fix analysis_tester bug
Browse files Browse the repository at this point in the history
test=develop
  • Loading branch information
Superjomn committed Jan 8, 2019
1 parent 875a07c commit 23bdd0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions paddle/fluid/inference/analysis/analyzer_tester.cc
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ void TestWord2vecPrediction(const std::string& model_path) {
i++) {
LOG(INFO) << "data: " << static_cast<float*>(outputs.front().data.data())[i]
<< " result: " << result[i];
PADDLE_ENFORCE(static_cast<float*>(outputs.front().data.data())[i],
result[i]);
EXPECT_NEAR(static_cast<float*>(outputs.front().data.data())[i], result[i],
1e-3);
}
}

Expand Down

0 comments on commit 23bdd0a

Please sign in to comment.