AttributeError: module 'numpy' has no attribute 'arrange'

知行合一1 发布于 2017/03/15 16:57
阅读 2K+
收藏 0

D:\Users\Administrator\AppData\Local\Programs\Python\Python35\python.exe D:/360c/shaozhechen-learn_tensorflow-master/learn_tensorflow/Save_weight.py
Traceback (most recent call last):
  File "D:/360c/shaozhechen-learn_tensorflow-master/learn_tensorflow/Save_weight.py", line 26, in <module>
    W=tf.Variable(np.arrange(6).reshape((2,3)),dtype=tf.float32,name='weights')
AttributeError: module 'numpy' has no attribute 'arrange'

加载中
返回顶部
顶部