Skip to content

Commit

Permalink
Fix emulated step condition
Browse files Browse the repository at this point in the history
  • Loading branch information
KSGulin committed Jan 30, 2023
1 parent 59efee0 commit 53bcf5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def _create_dataloaders():
ema.update(model)
last_opt_step = ni

elif sparsification_manager:
elif sparsification_manager and sparsification_manager.train_manager:
# Call for SparseML integration since the number of steps per epoch can vary
# This keeps the number of steps per epoch equivalent to the number of batches per epoch
# Does not step the scaler or the optimizer
Expand Down

0 comments on commit 53bcf5b

Please sign in to comment.