You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
目前在写网络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
Activity
reyoung commentedon Dec 15, 2016
有道理。
Fix bad import name in trainer_config_helpers.
pengli09 commentedon Dec 22, 2016
#922 的解法还是不能正确解决这个问题,#922 只是又额外引入了一个新名字layer_math,import *的时候还是会把math导入到当前命名空间中。
Rename math.py to layer_math.py
Update install doc (PaddlePaddle#903)
add qq group (PaddlePaddle#903)
docs: add pyyaml to requirements.txt (PaddlePaddle#903)
Increase max dynamic SMEM size in GemmSoftmax (PaddlePaddle#903)