使用带有tf.data的输入管道
Generating the Dataset using tf.data.Dataset.from_generator()
The output I got after fitting the model with the train_dataset
我认为您可以按照此示例here和this example。这两个简单的示例演示了如何使用输入数据管道。希望这可以帮助。谢谢!