Skip to content

Commit 59c306e

Browse files
authored
Merge pull request #13776 from luotao1/revert_fast_math
revert with_fast_math to ON
2 parents cc36bab + 84a5515 commit 59c306e

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ option(WITH_INFERENCE "Compile fluid inference library" ON)
7272
option(WITH_INFERENCE_API_TEST "Test fluid inference high-level api interface" OFF)
7373
option(WITH_SYSTEM_BLAS "Use system blas library" OFF)
7474
option(PY_VERSION "Compile PaddlePaddle with python3 support" ${PY_VERSION})
75-
option(WITH_FAST_MATH "Make use of fast math library" OFF)
75+
option(WITH_FAST_MATH "Make use of fast math library, might affect the precision to some extent" ON)
7676

7777
# PY_VERSION
7878
if(NOT PY_VERSION)

paddle/fluid/inference/tests/api/analyzer_resnet50_tester.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ void SetConfig(AnalysisConfig *cfg) {
2727
cfg->device = 0;
2828
cfg->enable_ir_optim = true;
2929
cfg->specify_input_name = true;
30-
#ifdef PADDLE_WITH_MKLDNN
31-
cfg->_use_mkldnn = true;
32-
#endif
3330
}
3431

3532
void SetInput(std::vector<std::vector<PaddleTensor>> *inputs) {

0 commit comments

Comments
 (0)