Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
joao-alex-cunha committed Jan 29, 2024
1 parent 0a3606e commit be2fcc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/lightning_graphcore/strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,7 @@ def _convert_to_poptorch_loader(
# the user is returning the `poptorch.DataLoader` directly, don't change anything.
return dataloader

dl_args, dl_kwargs = _get_dataloader_init_args_and_kwargs(
dataloader, sampler, mode
)
dl_args, dl_kwargs = _get_dataloader_init_args_and_kwargs(dataloader, sampler, mode)
opts = self.training_opts if mode == RunningStage.TRAINING else self.inference_opts
return _reinstantiate_wrapped_cls(dataloader, opts, *dl_args, explicit_cls=poptorch.DataLoader, **dl_kwargs)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_accelerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def test_all_stages(tmpdir, devices):
trainer.predict(model)


@pytest.mark.parametrize("devices",[1, 4])
@pytest.mark.parametrize("devices", [1, 4])
def test_inference_only(tmpdir, devices):
model = IPUModel()

Expand Down

0 comments on commit be2fcc0

Please sign in to comment.