mirror of
https://github.com/ml-explore/mlx.git
synced 2025-06-24 01:17:26 +08:00
add cubic to type hinting for upsample (#1709)
This commit is contained in:
parent
d03c01dfbc
commit
a6b426422e
@ -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__()
|
||||
|
Loading…
Reference in New Issue
Block a user