Skip to content

Commit

Permalink
autopep8 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AutoPEP8 authored and actions-user committed Jul 23, 2020
1 parent 92ec040 commit 234e744
Show file tree
Hide file tree
Showing 15 changed files with 23 additions and 23 deletions.
8 changes: 4 additions & 4 deletions tests/ignite/metrics/test_accumulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,10 +388,10 @@ def test_distrib_hvd(gloo_hvd_executor):
device = "cpu" if not torch.cuda.is_available() else "cuda"
nproc = 4 if not torch.cuda.is_available() else torch.cuda.device_count()

gloo_hvd_executor(_test_distrib_variable_accumulation, (device, ), np=nproc, do_init=True)
gloo_hvd_executor(_test_distrib_average, (device, ), np=nproc, do_init=True)
gloo_hvd_executor(_test_distrib_geom_average, (device, ), np=nproc, do_init=True)
gloo_hvd_executor(_test_distrib_integration, (device, ), np=nproc, do_init=True)
gloo_hvd_executor(_test_distrib_variable_accumulation, (device,), np=nproc, do_init=True)
gloo_hvd_executor(_test_distrib_average, (device,), np=nproc, do_init=True)
gloo_hvd_executor(_test_distrib_geom_average, (device,), np=nproc, do_init=True)
gloo_hvd_executor(_test_distrib_integration, (device,), np=nproc, do_init=True)


@pytest.mark.multinode_distributed
Expand Down
6 changes: 3 additions & 3 deletions tests/ignite/metrics/test_accuracy.py
Original file line number Diff line number Diff line change
Expand Up @@ -806,9 +806,9 @@ def test_distrib_hvd(gloo_hvd_executor):
device = "cpu" if not torch.cuda.is_available() else "cuda"
nproc = 4 if not torch.cuda.is_available() else torch.cuda.device_count()

gloo_hvd_executor(_test_distrib_multilabel_input_NHW, (device, ), np=nproc, do_init=True)
gloo_hvd_executor(_test_distrib_integration_multiclass, (device, ), np=nproc, do_init=True)
gloo_hvd_executor(_test_distrib_integration_multilabel, (device, ), np=nproc, do_init=True)
gloo_hvd_executor(_test_distrib_multilabel_input_NHW, (device,), np=nproc, do_init=True)
gloo_hvd_executor(_test_distrib_integration_multiclass, (device,), np=nproc, do_init=True)
gloo_hvd_executor(_test_distrib_integration_multilabel, (device,), np=nproc, do_init=True)


@pytest.mark.multinode_distributed
Expand Down
2 changes: 1 addition & 1 deletion tests/ignite/metrics/test_confusion_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ def test_distrib_hvd(gloo_hvd_executor):
device = "cpu" if not torch.cuda.is_available() else "cuda"
nproc = 4 if not torch.cuda.is_available() else torch.cuda.device_count()

gloo_hvd_executor(_test_distrib_multiclass_images, (device, ), np=nproc, do_init=True)
gloo_hvd_executor(_test_distrib_multiclass_images, (device,), np=nproc, do_init=True)


@pytest.mark.multinode_distributed
Expand Down
2 changes: 1 addition & 1 deletion tests/ignite/metrics/test_fbeta.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def test_distrib_hvd(gloo_hvd_executor):
device = "cpu" if not torch.cuda.is_available() else "cuda"
nproc = 4 if not torch.cuda.is_available() else torch.cuda.device_count()

gloo_hvd_executor(_test_distrib_integration, (device, ), np=nproc, do_init=True)
gloo_hvd_executor(_test_distrib_integration, (device,), np=nproc, do_init=True)


@pytest.mark.multinode_distributed
Expand Down
2 changes: 1 addition & 1 deletion tests/ignite/metrics/test_loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def test_distrib_hvd(gloo_hvd_executor):
device = "cpu" if not torch.cuda.is_available() else "cuda"
nproc = 4 if not torch.cuda.is_available() else torch.cuda.device_count()

gloo_hvd_executor(_test_distrib_compute_on_criterion, (device, ), np=nproc, do_init=True)
gloo_hvd_executor(_test_distrib_compute_on_criterion, (device,), np=nproc, do_init=True)


@pytest.mark.multinode_distributed
Expand Down
2 changes: 1 addition & 1 deletion tests/ignite/metrics/test_mean_absolute_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def test_distrib_hvd(gloo_hvd_executor):
device = "cpu" if not torch.cuda.is_available() else "cuda"
nproc = 4 if not torch.cuda.is_available() else torch.cuda.device_count()

gloo_hvd_executor(_test_distrib_integration, (device, ), np=nproc, do_init=True)
gloo_hvd_executor(_test_distrib_integration, (device,), np=nproc, do_init=True)


@pytest.mark.multinode_distributed
Expand Down
2 changes: 1 addition & 1 deletion tests/ignite/metrics/test_mean_pairwise_distance.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def test_distrib_hvd(gloo_hvd_executor):
device = "cpu" if not torch.cuda.is_available() else "cuda"
nproc = 4 if not torch.cuda.is_available() else torch.cuda.device_count()

gloo_hvd_executor(_test_distrib_integration, (device, ), np=nproc, do_init=True)
gloo_hvd_executor(_test_distrib_integration, (device,), np=nproc, do_init=True)


@pytest.mark.multinode_distributed
Expand Down
2 changes: 1 addition & 1 deletion tests/ignite/metrics/test_mean_squared_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def test_distrib_hvd(gloo_hvd_executor):
device = "cpu" if not torch.cuda.is_available() else "cuda"
nproc = 4 if not torch.cuda.is_available() else torch.cuda.device_count()

gloo_hvd_executor(_test_distrib_integration, (device, ), np=nproc, do_init=True)
gloo_hvd_executor(_test_distrib_integration, (device,), np=nproc, do_init=True)


@pytest.mark.multinode_distributed
Expand Down
2 changes: 1 addition & 1 deletion tests/ignite/metrics/test_metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ def test_distrib_hvd(gloo_hvd_executor):
device = "cpu" if not torch.cuda.is_available() else "cuda"
nproc = 4 if not torch.cuda.is_available() else torch.cuda.device_count()

gloo_hvd_executor(_test_distrib_sync_all_reduce_decorator, (device, ), np=nproc, do_init=True)
gloo_hvd_executor(_test_distrib_sync_all_reduce_decorator, (device,), np=nproc, do_init=True)


@pytest.mark.multinode_distributed
Expand Down
2 changes: 1 addition & 1 deletion tests/ignite/metrics/test_metrics_lambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ def test_distrib_hvd(gloo_hvd_executor):
device = "cpu" if not torch.cuda.is_available() else "cuda"
nproc = 4 if not torch.cuda.is_available() else torch.cuda.device_count()

gloo_hvd_executor(_test_distrib_integration, (device, ), np=nproc, do_init=True)
gloo_hvd_executor(_test_distrib_integration, (device,), np=nproc, do_init=True)


@pytest.mark.multinode_distributed
Expand Down
4 changes: 2 additions & 2 deletions tests/ignite/metrics/test_precision.py
Original file line number Diff line number Diff line change
Expand Up @@ -858,8 +858,8 @@ def test_distrib_hvd(gloo_hvd_executor):
device = "cpu" if not torch.cuda.is_available() else "cuda"
nproc = 4 if not torch.cuda.is_available() else torch.cuda.device_count()

gloo_hvd_executor(_test_distrib_integration_multiclass, (device, ), np=nproc, do_init=True)
gloo_hvd_executor(_test_distrib_integration_multilabel, (device, ), np=nproc, do_init=True)
gloo_hvd_executor(_test_distrib_integration_multiclass, (device,), np=nproc, do_init=True)
gloo_hvd_executor(_test_distrib_integration_multilabel, (device,), np=nproc, do_init=True)


@pytest.mark.multinode_distributed
Expand Down
4 changes: 2 additions & 2 deletions tests/ignite/metrics/test_recall.py
Original file line number Diff line number Diff line change
Expand Up @@ -858,8 +858,8 @@ def test_distrib_hvd(gloo_hvd_executor):
device = "cpu" if not torch.cuda.is_available() else "cuda"
nproc = 4 if not torch.cuda.is_available() else torch.cuda.device_count()

gloo_hvd_executor(_test_distrib_integration_multiclass, (device, ), np=nproc, do_init=True)
gloo_hvd_executor(_test_distrib_integration_multilabel, (device, ), np=nproc, do_init=True)
gloo_hvd_executor(_test_distrib_integration_multiclass, (device,), np=nproc, do_init=True)
gloo_hvd_executor(_test_distrib_integration_multilabel, (device,), np=nproc, do_init=True)


@pytest.mark.multinode_distributed
Expand Down
2 changes: 1 addition & 1 deletion tests/ignite/metrics/test_root_mean_squared_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def test_distrib_hvd(gloo_hvd_executor):
device = "cpu" if not torch.cuda.is_available() else "cuda"
nproc = 4 if not torch.cuda.is_available() else torch.cuda.device_count()

gloo_hvd_executor(_test_distrib_integration, (device, ), np=nproc, do_init=True)
gloo_hvd_executor(_test_distrib_integration, (device,), np=nproc, do_init=True)


@pytest.mark.multinode_distributed
Expand Down
4 changes: 2 additions & 2 deletions tests/ignite/metrics/test_running_average.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,8 @@ def test_distrib_hvd(gloo_hvd_executor):
device = "cpu" if not torch.cuda.is_available() else "cuda"
nproc = 4 if not torch.cuda.is_available() else torch.cuda.device_count()

gloo_hvd_executor(_test_distrib_on_output, (device, ), np=nproc, do_init=True)
gloo_hvd_executor(_test_distrib_on_metric, (device, ), np=nproc, do_init=True)
gloo_hvd_executor(_test_distrib_on_output, (device,), np=nproc, do_init=True)
gloo_hvd_executor(_test_distrib_on_metric, (device,), np=nproc, do_init=True)


@pytest.mark.multinode_distributed
Expand Down
2 changes: 1 addition & 1 deletion tests/ignite/metrics/test_top_k_categorical_accuracy.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def test_distrib_hvd(gloo_hvd_executor):
device = "cpu" if not torch.cuda.is_available() else "cuda"
nproc = 4 if not torch.cuda.is_available() else torch.cuda.device_count()

gloo_hvd_executor(_test_distrib_integration, (device, ), np=nproc, do_init=True)
gloo_hvd_executor(_test_distrib_integration, (device,), np=nproc, do_init=True)


@pytest.mark.multinode_distributed
Expand Down

0 comments on commit 234e744

Please sign in to comment.