Skip to content

Commit a658b28

Browse files
committed
refactor(//tests/py): Apply linting to py tests
Signed-off-by: Naren Dasan <[email protected]> Signed-off-by: Naren Dasan <[email protected]>
1 parent 7b804a2 commit a658b28

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/py/test_multi_gpu.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55

66
from model_test_case import ModelTestCase
77

8+
89
class TestMultiGpuSwitching(ModelTestCase):
10+
911
def setUp(self):
1012
if torch.cuda.device_count() < 2:
1113
self.fail("Test is not relevant for this platform since number of available CUDA devices is less than 2")
@@ -55,12 +57,14 @@ def test_compile_script(self):
5557
trtorch.set_device(0)
5658
self.assertTrue(same < 2e-3)
5759

60+
5861
def test_suite():
5962
suite = unittest.TestSuite()
6063
suite.addTest(TestMultiGpuSwitching.parametrize(TestMultiGpuSwitching, model=models.resnet18(pretrained=True)))
6164

6265
return suite
6366

67+
6468
suite = test_suite()
6569

6670
runner = unittest.TextTestRunner()

0 commit comments

Comments
 (0)