where ∣D∣ is the dataset cardinality (size in terms of number of samples) and drop_last corresponds to the PyTorch DataLoader initialisation argument that determines if the final samples are discarded (True) or retained (False) if they are insufficient to populate a whole batch.
Note the term batch size∣D∣ represents the number of iterations per epoch