Skip to content

Commit ce741a2

Browse files
committed
cherry pick refine core warning message (PaddlePaddle#18063)
1 parent 253c7f4 commit ce741a2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

python/paddle/fluid/core.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,9 @@
5959
from .core_avx import _set_fuse_parameter_memory_size
6060
from .core_avx import _is_dygraph_debug_enabled
6161
from .core_avx import _dygraph_debug_level
62-
except ImportError as error:
62+
except ImportError:
6363
sys.stderr.write(
64-
error.__class__.__name__ +
65-
' WARNING: Error importing avx core. You may not build with AVX, '
64+
'WARNING: Can not import avx core. You may not build with AVX, '
6665
'but AVX is supported on local machine, you could build paddle '
6766
'WITH_AVX=ON to get better performance. ')
6867
load_noavx = True

0 commit comments

Comments
 (0)