Skip to content

Commit

Permalink
Remove unnecessary GPU from profile_dataloader tests (#773)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #773

Reviewed By: JKSenthil

Differential Revision: D55500653

fbshipit-source-id: 1770a25031877e5621308f1b3a01ba263a68dc10
  • Loading branch information
diego-urgell authored and facebook-github-bot committed Apr 1, 2024
1 parent e53c8eb commit 11e3c41
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/utils/data/test_profile_dataloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from torch.profiler import ProfilerActivity
from torchtnt.utils.data.profile_dataloader import profile_dataloader
from torchtnt.utils.env import init_from_env
from torchtnt.utils.test_utils import skip_if_not_gpu


class DummyIterable:
Expand Down Expand Up @@ -49,7 +48,6 @@ def test_profile_dataloader_profiler(self) -> None:
timer = profile_dataloader(iterable, p)
self.assertEqual(len(timer.recorded_durations["next(iter)"]), max_length)

@skip_if_not_gpu
def test_profile_dataloader_device(self) -> None:
device = init_from_env()
max_length = 10
Expand Down

0 comments on commit 11e3c41

Please sign in to comment.