TensorFlow教程

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

这篇关于ImportError: cannot import name 'newaxis' from 'tensorflow.python.ops.numpy_ops.np_ar的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!