在运用tensoflow keras模块运行程序时遇到一下报错
AttributeError: module 'tensorflow.python.keras.engine.data_adapter' has no attribute 'DataHandler'
以下为代码块:
data_handler = data_adapter.DataHandler(
x=x,
batch_size=batch_size,
steps_per_epoch=steps,
initial_epoch=0,
epochs=1,
max_queue_size=10,
workers=1,
use_multiprocessing=False,
model=self,
steps_per_execution=tf.constant(1, dtype=tf.int32))
安装的tensorflow版本为2.0.0 keras为2.3.1 python环境为3.6