Add TorchScript uniform video decode operator (#1612) - #1612
Open
psaikaushik wants to merge 1 commit into
Open
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/meta-pytorch/torchcodec/1612
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit d0fae00 with merge base 1f36e84 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@psaikaushik has exported this pull request. If you are a Meta employee, you can view the originating Diff in D115231531. |
psaikaushik
pushed a commit
to psaikaushik/torchcodec
that referenced
this pull request
Aug 7, 2026
Summary: Add a registered C++ operator that uniformly samples an encoded video from memory with TorchCodec. It returns decoded NCHW frames, sampling metadata, and an explicit validity status for serialized TorchScript callers. Decode failures produce an invalid result so callers can handle corrupt inputs without propagating native exceptions. Differential Revision: D115231531
psaikaushik
force-pushed
the
export-D115231531
branch
from
August 7, 2026 19:10
31a8ec0 to
ac1800b
Compare
psaikaushik
pushed a commit
to psaikaushik/torchcodec
that referenced
this pull request
Aug 7, 2026
Summary: Add a registered C++ operator that uniformly samples an encoded video from memory with TorchCodec. It returns decoded NCHW frames, sampling metadata, and an explicit validity status for serialized TorchScript callers. Decode failures produce an invalid result so callers can handle corrupt inputs without propagating native exceptions. Differential Revision: D115231531
psaikaushik
force-pushed
the
export-D115231531
branch
from
August 7, 2026 19:18
ac1800b to
3a52fae
Compare
psaikaushik
pushed a commit
to psaikaushik/torchcodec
that referenced
this pull request
Aug 7, 2026
Summary: Add a registered C++ operator that uniformly samples an encoded video from memory with TorchCodec. It returns decoded NCHW frames, sampling metadata, and an explicit validity status for serialized TorchScript callers. Decode failures produce an invalid result so callers can handle corrupt inputs without propagating native exceptions. Differential Revision: D115231531
psaikaushik
force-pushed
the
export-D115231531
branch
from
August 7, 2026 19:35
3a52fae to
5977bda
Compare
psaikaushik
pushed a commit
to psaikaushik/torchcodec
that referenced
this pull request
Aug 7, 2026
Summary: Add a registered C++ operator that uniformly samples an encoded video from memory with TorchCodec. It returns decoded NCHW frames, sampling metadata, and an explicit validity status for serialized TorchScript callers. Decode failures produce an invalid result so callers can handle corrupt inputs without propagating native exceptions. Differential Revision: D115231531
psaikaushik
force-pushed
the
export-D115231531
branch
from
August 7, 2026 19:42
5977bda to
3aa2065
Compare
psaikaushik
pushed a commit
to psaikaushik/torchcodec
that referenced
this pull request
Aug 7, 2026
Summary: Add a registered C++ operator that uniformly samples an encoded video from memory with TorchCodec. It returns decoded NCHW frames, sampling metadata, and an explicit validity status for serialized TorchScript callers. Decode failures produce an invalid result so callers can handle corrupt inputs without propagating native exceptions. Differential Revision: D115231531
psaikaushik
force-pushed
the
export-D115231531
branch
from
August 7, 2026 19:43
3aa2065 to
53b881a
Compare
Summary: Add a registered C++ operator that uniformly samples an encoded video from memory with TorchCodec. It returns decoded NCHW frames, sampling metadata, and an explicit validity status for serialized TorchScript callers. Decode failures produce an invalid result so callers can handle corrupt inputs without propagating native exceptions. Differential Revision: D115231531
psaikaushik
force-pushed
the
export-D115231531
branch
from
August 7, 2026 20:05
53b881a to
d0fae00
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
Add a registered C++ operator that uniformly samples an encoded video from memory with TorchCodec. It returns decoded NCHW frames, sampling metadata, and an explicit validity status for serialized TorchScript callers.
Decode failures produce an invalid result so callers can handle corrupt inputs without propagating native exceptions.
Differential Revision: D115231531