For my input fn, I am filling the tf.Data.Dataset.from\_tensor\_slices((np.array1, np.array2, np.array3)

And I am parsing them by calling dataset.map. as a result I am returning my dataset. 

I would understand the initialization of the dataset can be slow but when I call the tf.estimator train\_and\_evaluate function to train and evaluate the model, it is performing very bad. Probably it is populating data in each epoch. What would be the reason? How can I overcome this problem. What would be your recommendations?

Thank you.