-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use torch.testing.assert_close in datasets_video_utils.py #3875
Use torch.testing.assert_close in datasets_video_utils.py #3875
Conversation
|
||
@unittest.skipIf(not io.video._av_available(), "this test requires av") | ||
def test_video_clips(self): | ||
with get_list_of_videos(num_videos=3) as video_list: | ||
video_clips = VideoClips(video_list, 5, 5, num_workers=2) | ||
self.assertEqual(video_clips.num_clips(), 1 + 2 + 3) | ||
assert video_clips.num_clips() == 1 + 2 + 3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
technically we could have saved the assert int_a == int_b
statements for other PRs but it was reasonably straightforward here so I went for it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM... when green
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stamping
…3875) Summary: Co-authored-by: Philip Meier <[email protected]> Reviewed By: vincentqb, cpuhrsch Differential Revision: D28679973 fbshipit-source-id: bbefadc7cf742cfa07c11c4191d8badabaccfd84
part of #3865