-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
建议对python/paddle/trainer_config_helpers/math.py进行更名 #903
Labels
Comments
有道理。 |
reyoung
added a commit
to reyoung/Paddle
that referenced
this issue
Dec 16, 2016
* math => layer_math * Fix PaddlePaddle#903
reyoung
added a commit
to reyoung/Paddle
that referenced
this issue
Dec 26, 2016
Closed
zhhsplendid
pushed a commit
to zhhsplendid/Paddle
that referenced
this issue
Sep 25, 2019
* test=develop, update install doc * add setuptools dependency * Update compile_Ubuntu.md update cudnn version * Update install_Ubuntu.md update cudnn version * Update install_CentOS.md update cudnn version * test=develop, refine ubuntu cuda support * test=develop, refine ubuntu cuda support * test=develop, refine python support on python3.5 * fix python2 in ubuntu16.04 need gcc 5.4 * add nccl related doc * refine doc
wangxicoding
pushed a commit
to wangxicoding/Paddle
that referenced
this issue
Dec 9, 2021
lizexu123
pushed a commit
to lizexu123/Paddle
that referenced
this issue
Feb 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
目前在写网络config时,都会使用from paddle.trainer_config_helpers import *,此时会将python/paddle/trainer_config_helpers/math.py导入命名空间,与python自带的math库发生名字冲突。一方面由此引发报错时很难追查,另一方面如果需要同时使用二者时,会比较麻烦。因此建议对该文件名进行修改,或在python/paddle/trainer_config_helpers/init.py将import math修改为import math as NEW_NAME
该问题已导致SRL demo无法运行:db_lstm.py中先导入系统库math,然后通过from paddle.trainer_config_helpers import * 意外导入paddle.trainer_config_helpers.math,将系统库math覆盖,引起db_lstm.py第116行找不到sqrt()定义。
The text was updated successfully, but these errors were encountered: