Skip to content

Commit

Permalink
FIX: Distributed Dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
User3574 committed Aug 9, 2023
1 parent 00d4c56 commit 1c19f66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ai/src/itwinai/backend/tensorflow/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ def train(self, data):
train, test = data

# Set batch size to the dataset
train = train.batch(self.batch_size * self.num_devices, drop_remainder=True)
test = test.batch(self.batch_size * self.num_devices, drop_remainder=True)
train = train.batch(self.batch_size, drop_remainder=True)
test = test.batch(self.batch_size, drop_remainder=True)

# Number of samples
n_train = train.cardinality().numpy()
Expand Down

0 comments on commit 1c19f66

Please sign in to comment.