Contents:
Compute the number of batches in one epoch according to batch size and drop behavior.
num_samples (int) –
int
batch_size (int) –
drop_last (bool) –
bool
The number of batches.