Skip to content

Commit 3e77551

Browse files
SeanNarenBorda
authored andcommitted
Add imports
1 parent c348bfc commit 3e77551

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tests/overrides/test_data_parallel.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from unittest.mock import MagicMock
1+
from unittest.mock import MagicMock, Mock
22

33
import pytest
44
import torch
@@ -13,6 +13,7 @@
1313
)
1414
from pytorch_lightning.trainer.states import RunningStage
1515
from tests.helpers import BoringModel
16+
from tests.helpers.runif import RunIf
1617

1718

1819
@pytest.mark.parametrize("wrapper_class", [

tests/plugins/test_sharded_plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from pytorch_lightning.utilities import _APEX_AVAILABLE, _FAIRSCALE_AVAILABLE, _NATIVE_AMP_AVAILABLE
1212
from pytorch_lightning.utilities.exceptions import MisconfigurationException
1313
from tests.helpers.boring_model import BoringModel
14+
from tests.helpers.runif import RunIf
1415

1516

1617
@pytest.mark.parametrize("clip_val", [0, 10])

0 commit comments

Comments
 (0)