fix enumerate usage (#12949)

This commit is contained in:
Na Young Jun 2022-05-02 06:29:56 -07:00 committed by GitHub
parent 0f418a8640
commit 0e4c4424fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ Under the hood, the Lightning Trainer runs the following training loop on your b
autoencoder = LitAutoEncoder(encoder, decoder)
optimizer = autoencoder.configure_optimizers()
for batch, batch_idx in enumerate(train_loader):
for batch_idx, batch in enumerate(train_loader):
loss = autoencoder(batch, batch_idx)
loss.backward()