add batch
This commit is contained in:
parent
1cfb74db6a
commit
c6f6ae28ca
@ -34,6 +34,7 @@ class Dataset:
|
||||
self.dataset = self.__load_dataset()\
|
||||
.shuffle(self.shuffle_buffer_size, seed=self.seed)\
|
||||
.repeat(self.repeat)\
|
||||
.batch(self.batch_size, drop_remainder=True)\
|
||||
.prefetch(tf.data.experimental.AUTOTUNE)
|
||||
|
||||
def __load_dataset(self) -> tf.data.Dataset:
|
||||
|
Loading…
Reference in New Issue
Block a user