编程语言
首页 > 编程语言> > ImportError: cannot import name 'newaxis' from 'tensorflow.python.ops.numpy_ops.np_ar

ImportError: cannot import name 'newaxis' from 'tensorflow.python.ops.numpy_ops.np_ar

作者:互联网

 

ImportError: cannot import name 'newaxis' from 'tensorflow.python.ops.numpy_ops.np_array_ops'

  File "E:\Eprogramfiles\Anaconda3\lib\site-packages\nbeats_keras\model.py", line 4, in <module>
    import tensorflow.experimental.numpy as tnp
  File "E:\Eprogramfiles\Anaconda3\lib\site-packages\tensorflow\_api\v2\experimental\numpy\__init__.py", line 206, in <module>
    from tensorflow.python.ops.numpy_ops.np_array_ops import newaxis
ImportError: cannot import name 'newaxis' from 'tensorflow.python.ops.numpy_ops.np_array_ops' (E:\Eprogramfiles\Anaconda3\lib\site-packages\tensorflow\python\ops\numpy_ops\np_array_ops.py)

from tensorflow.python.ops.numpy_ops.np_array_ops import newaxis

标签:name,ops,ImportError,python,np,tensorflow,array,numpy
来源: https://www.cnblogs.com/emanlee/p/16223017.html