Data Science Asked on November 10, 2021
I am currently using TF 2.1. When using model.fit
with tf.data.Dataset
, it shows me that the number of iterations is 2044/2043. So my question is, how many batches of data are actually produced? 2044 or 2043?
Number of batches = total number of samples in dataset/batch size.
If the total samples are not completely divisible by batch size, then it will take the remaining in the next batch.
Eg: 15x66+10=1000
which means it will take 66 batches of size 15 and for the final steps it takes only 10.
Answered by Akash on November 10, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP