Skip to content

Commit

Permalink
Merge branch 'main' of github.com:pytorch-labs/torchcodec into debug_gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHug committed Jul 11, 2024
2 parents eaad96a + dc140e5 commit 664adf0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ dev = [
"numpy",
"pytest",
"pillow",
"opencv-python",
]
18 changes: 8 additions & 10 deletions src/torchcodec/decoders/_core/video_decoder_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,25 +176,23 @@ def get_frames_in_range_abstract(


@impl_abstract("torchcodec_ns::get_json_metadata")
def get_json_metadata_abstract(decoder: torch.Tensor) -> torch.Tensor:
return torch.empty_like("") # type: ignore[arg-type]
def get_json_metadata_abstract(decoder: torch.Tensor) -> str:
return ""


@impl_abstract("torchcodec_ns::get_container_json_metadata")
def get_container_json_metadata_abstract(decoder: torch.Tensor) -> torch.Tensor:
return torch.empty_like("") # type: ignore[arg-type]
def get_container_json_metadata_abstract(decoder: torch.Tensor) -> str:
return ""


@impl_abstract("torchcodec_ns::get_stream_json_metadata")
def get_stream_json_metadata_abstract(
decoder: torch.Tensor, stream_idx: int
) -> torch.Tensor:
return torch.empty_like("") # type: ignore[arg-type]
def get_stream_json_metadata_abstract(decoder: torch.Tensor, stream_idx: int) -> str:
return ""


@impl_abstract("torchcodec_ns::_get_json_ffmpeg_library_versions")
def _get_json_ffmpeg_library_versions_abstract() -> torch.Tensor:
return torch.empty_like("") # type: ignore[arg-type]
def _get_json_ffmpeg_library_versions_abstract() -> str:
return ""


@impl_abstract("torchcodec_ns::scan_all_streams_to_update_metadata")
Expand Down

0 comments on commit 664adf0

Please sign in to comment.