Skip to content

Commit

Permalink
removed unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
gboduljak committed Feb 9, 2024
1 parent 57eb900 commit e548f8f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/mlx/nn/layers/upsample.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright © 2023-2024 Apple Inc.

from typing import List, Literal, Tuple, Union
from typing import Literal, Tuple, Union

import mlx.core as mx
from mlx.nn.layers.base import Module
Expand Down Expand Up @@ -103,7 +103,9 @@ def __init__(
):
super().__init__()
if mode not in ["nearest", "bilinear"]:
raise ValueError(f"[Upsample2d] Got unsupported upsampling algorithm: {mode}")
raise ValueError(
f"[Upsample2d] Got unsupported upsampling algorithm: {mode}"
)
if isinstance(scale, (list, tuple)):
self.scale = tuple(map(float, scale))
else:
Expand Down

0 comments on commit e548f8f

Please sign in to comment.