add cubic to type hinting for upsample (#1709)

This commit is contained in:
Tomohiro Oga 2024-12-17 15:30:23 +00:00 committed by GitHub
parent d03c01dfbc
commit a6b426422e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -219,7 +219,7 @@ class Upsample(Module):
def __init__(
self,
scale_factor: Union[float, Tuple],
mode: Literal["nearest", "linear"] = "nearest",
mode: Literal["nearest", "linear", "cubic"] = "nearest",
align_corners: bool = False,
):
super().__init__()