mirror of
https://github.com/ml-explore/mlx.git
synced 2025-09-18 10:26:56 +08:00
add cubic to type hinting for upsample (#1709)
This commit is contained in:
@@ -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__()
|
||||
|
Reference in New Issue
Block a user