Python 3.x 获取AttributeError:module';tensorflow.python.framework.ops';没有属性'_类张量';在tensorflow中?

Python 3.x 获取AttributeError:module';tensorflow.python.framework.ops';没有属性'_类张量';在tensorflow中?,python-3.x,tensorflow,keras,image-segmentation,Python 3.x,Tensorflow,Keras,Image Segmentation,我试图制作一个类似于编码器-解码器的模型,在model.fit中我得到以下错误 AttributeError: module 'tensorflow.python.framework.ops' has no attribute '_TensorLike' model.fit(train_dataloader, validation_data = test_dataloader, steps_per_epoch=len(train_dataset)//8,

我试图制作一个类似于编码器-解码器的模型,在model.fit中我得到以下错误

 AttributeError: module 'tensorflow.python.framework.ops' has no attribute '_TensorLike'

model.fit(train_dataloader,
      validation_data = test_dataloader,
      steps_per_epoch=len(train_dataset)//8,
      epochs=10)
我使用的是keras 2.3.1和segmentaion模型

如何解决