Skip to content

Commit 884f4dc

Browse files
committed
add default None in ops.py
1 parent dc86a8c commit 884f4dc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/torchcodec/_core/ops.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,8 @@ def encode_video_to_file_abstract(
321321
frames: torch.Tensor,
322322
frame_rate: int,
323323
filename: str,
324-
crf: Optional[int],
325-
pixel_format: Optional[str],
324+
crf: Optional[int] = None,
325+
pixel_format: Optional[str] = None,
326326
) -> None:
327327
return
328328

@@ -332,8 +332,8 @@ def encode_video_to_tensor_abstract(
332332
frames: torch.Tensor,
333333
frame_rate: int,
334334
format: str,
335-
crf: Optional[int],
336-
pixel_format: Optional[str],
335+
crf: Optional[int] = None,
336+
pixel_format: Optional[str] = None,
337337
) -> torch.Tensor:
338338
return torch.empty([], dtype=torch.long)
339339

0 commit comments

Comments
 (0)