Merge pull request #15210 from Superjomn/fix/analysis_tester_bug

fix analysis_tester bug
revert-15207-remove_op_handle_lock_and_fix_var
Tao Luo 6 years ago committed by GitHub
commit 9c02765158
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);
}
}

Loading…
Cancel
Save