Skip to content

Conversation

@mollyxu
Copy link
Contributor

@mollyxu mollyxu commented Oct 4, 2025

Summary:
Modified get_frames_played_at in _video_decoder to accept tensors and updated all downstream functions to natively accept tensors rather than converting them to lists.

Summary:
Modified get_frames_played_at in _video_decoder to accept tensors and updated all downstream functions to natively accept tensors rather than converting them to lists.

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 4, 2025
@mollyxu mollyxu marked this pull request as ready for review October 6, 2025 16:18
Copy link
Contributor

@NicolasHug NicolasHug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mollyxu - this looks great, I do have a question about the Exception catching below. LMK your thoughts!

@Dan-Flores
Copy link
Contributor

To ensure we do not break this functionality in the future, we could add a test case to test_get_frames_played_at, where we pass in a tensor and ensure the outputs are what we expect.

@mollyxu mollyxu requested a review from NicolasHug October 7, 2025 17:16
Copy link
Contributor

@NicolasHug NicolasHug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @mollyxu !

@mollyxu mollyxu merged commit 9fa4fd1 into meta-pytorch:main Oct 7, 2025
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants