[CI] fix docs on main (#51539)

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
Harry Mellor
2026-08-09 09:46:12 +00:00
committed by GitHub
parent 04d13b5d65
commit 83ad767eed
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -523,7 +523,7 @@ def save_to_pytorch_benchmark_format(
write_to_json(pt_file, pt_records)
def _to_serve_args(args) -> argparse.Namespace:
def _to_serve_args(args: argparse.Namespace) -> argparse.Namespace:
"""Translate throughput args into a namespace the shared get_samples reads.
``get_samples`` (used by ``bench serve``) expects ~45 attributes; the
+1 -1
View File
@@ -637,7 +637,7 @@ class TorchCodecVideoBackendMixin:
return batch.data.numpy(), list(frame_indices)
def _pynvvc_frames_to_nhwc(frames):
def _pynvvc_frames_to_nhwc(frames: torch.Tensor) -> torch.Tensor:
"""Return a stacked PyNvVideoCodec frame batch as contiguous NHWC.
PyNvVideoCodec's per-frame layout has varied across versions (HWC vs CHW),