Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

formatting #586

Merged
merged 2 commits into from
Dec 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/super_gradients/training/sg_trainer/sg_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,8 @@ def forward(self, inputs, targets):
training_params = dict()
self.train_loader = train_loader or self.train_loader
self.valid_loader = valid_loader or self.valid_loader
if len(self.train_loader.dataset) % self.train_loader.batch_size != 0 and not self.train_loader.drop_last:
logger.warning("Train dataset size % batch_size != 0 and drop_last=False, this might result in smaller " "last batch.")
self._set_dataset_params()

if self.multi_gpu == MultiGPUMode.DISTRIBUTED_DATA_PARALLEL:
Expand Down