ImportError: cannot import name 'keras_tensor' from 'tensorflow.python.keras.engine'

半世苍凉 提交于 2021-02-10 16:21:32

问题


I'm getting this error while loading the ternsoflow addons library

import tensorflow_addons as tfa

ImportError: cannot import name 'keras_tensor' from 'tensorflow.python.keras.engine'

回答1:


This error is because you have incompatibility issues between your TensorFlow, Python and tensorflow-addons. Uninstall the tensorflow-addons and install the version based on the table below. Refer the Github repo for more information.



来源:https://stackoverflow.com/questions/65464463/importerror-cannot-import-name-keras-tensor-from-tensorflow-python-keras-eng

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!