Skip to content

Commit 4775658

Browse files
committed
Minor order update to prevent error in debugging scenario
linter
1 parent c674b86 commit 4775658

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

the_well/benchmark/trainer/training.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,10 @@ def rollout_model(self, model, batch, formatter, train=True):
243243
)
244244
y_preds = []
245245
for i in range(rollout_steps):
246-
# NOTE: This is a quick fix so we can make datamodule behavior consistent.
246+
# NOTE: This is a quick fix so we can make datamodule behavior consistent.
247247
# Including local normalization schemes means there needs to be the option of normalizing each step
248-
# and there's currently not a registry of local vs global normalization schemes.
249-
if self.datamodule.val_dataset.use_normalization and i > 0 and not train:
248+
# and there's currently not a registry of local vs global normalization schemes.
249+
if not train and self.datamodule.val_dataset.use_normalization and i > 0:
250250
moving_batch, _ = self.normalize(moving_batch)
251251

252252
inputs, _ = formatter.process_input(moving_batch)

0 commit comments

Comments
 (0)