使用TensorFlow時報錯FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy.......
報錯原因:numpy1-17-0版本過高,使用numpy-1.16-0版本即可
解決方法:重新安裝numpy-1.16-0
pip install numpy==1.16.0
使用TensorFlow時報錯FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy.......
報錯原因:numpy1-17-0版本過高,使用numpy-1.16-0版本即可
解決方法:重新安裝numpy-1.16-0
pip install numpy==1.16.0
class MetaCls(type): def __new__(cls, *args, **kwargs): print("in MetaCls") # return super(Meta