osl_dynamics.data.tf.drop_incomplete_batch#
- osl_dynamics.data.tf.drop_incomplete_batch(dataset)#
Drop the last batch of a dataset if it is smaller than the batch size.
- Parameters:
- datasettf.data.Dataset
TensorFlow dataset.
- Returns:
- datasettf.data.Dataset
Dataset without the incomplete batch. Only a dataset from
load_tfrecord_dataset()is changed, other datasets do not record their batch size and are returned as they are.