Add isort pre-commit and run (#68)

This commit is contained in:
Zach Schillaci
2023-12-08 20:31:47 +01:00
committed by GitHub
parent e89c571de7
commit 5b9be57ac3
33 changed files with 54 additions and 60 deletions

View File

@@ -1,6 +1,5 @@
# Copyright © 2023 Apple Inc.
from mlx.nn.layers.base import Module
from mlx.nn.layers.activations import (
GELU,
ReLU,
@@ -11,6 +10,7 @@ from mlx.nn.layers.activations import (
relu,
silu,
)
from mlx.nn.layers.base import Module
from mlx.nn.layers.containers import Sequential
from mlx.nn.layers.convolution import Conv1d, Conv2d
from mlx.nn.layers.dropout import Dropout

View File

@@ -1,7 +1,7 @@
# Copyright © 2023 Apple Inc.
import textwrap
from typing import Any, Callable, List, Union, Optional
from typing import Any, Callable, List, Optional, Union
import mlx.core as mx
from mlx.utils import tree_flatten, tree_unflatten

View File

@@ -1,7 +1,7 @@
# Copyright © 2023 Apple Inc.
import math
from typing import Optional, Any
from typing import Any, Optional
import mlx.core as mx
from mlx.nn.layers.base import Module