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

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__()