报错:

from tensorflow.python.keras.utils import tf_inspect
ImportError: cannot import name 'tf_inspect' from 'tensorflow.python.keras.utils' (/home/deeplp/anaconda3/lib/python3.8/site-packages/tensorflow/python/keras/utils/__init__.py)

 

 

解法:

将:

from tensorflow.python.keras.utils import tf_inspect

修改为

from tensorflow.python.util import tf_inspect
posted on 2022-01-29 21:14  曾冠奇  阅读(586)  评论(0编辑  收藏  举报