Skip to content

Commit 3d4f43a

Browse files
author
Cheng-Hsi Hsiao
committed
Format with black
1 parent 144f9e6 commit 3d4f43a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

gns/train.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ def train(rank, cfg, world_size, device, verbose, use_dist):
628628
cfg,
629629
rank,
630630
device_id,
631-
use_dist
631+
use_dist,
632632
)
633633
writer.add_scalar("Loss/valid", valid_loss.item(), step)
634634

@@ -699,7 +699,13 @@ def train(rank, cfg, world_size, device, verbose, use_dist):
699699
if cfg.training.validation_interval is not None:
700700
sampled_valid_example = next(iter(valid_dl))
701701
epoch_valid_loss = validation(
702-
simulator, sampled_valid_example, n_features, cfg, rank, device_id, use_dist
702+
simulator,
703+
sampled_valid_example,
704+
n_features,
705+
cfg,
706+
rank,
707+
device_id,
708+
use_dist,
703709
)
704710
if use_dist:
705711
torch.distributed.reduce(

0 commit comments

Comments
 (0)