fix analysis_tester bug

test=develop
revert-15207-remove_op_handle_lock_and_fix_var
superjomn 6 years ago
parent 875a07c32d
commit 23bdd0a223

@ -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