Skip to content

Commit

Permalink
reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
pass-lin committed Jan 3, 2025
1 parent 9c68e11 commit eae8dfd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
15 changes: 4 additions & 11 deletions keras/src/layers/layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,8 @@
import warnings
from functools import wraps

from keras.src import backend
from keras.src import constraints
from keras.src import dtype_policies
from keras.src import initializers
from keras.src import regularizers
from keras.src import tree
from keras.src import utils
from keras.src import (backend, constraints, dtype_policies, initializers,
regularizers, tree, utils)
from keras.src.api_export import keras_export
from keras.src.backend import KerasTensor
from keras.src.backend.common import global_state
Expand All @@ -39,10 +34,8 @@
from keras.src.metrics.metric import Metric
from keras.src.ops.operation import Operation
from keras.src.saving.keras_saveable import KerasSaveable
from keras.src.utils import python_utils
from keras.src.utils import summary_utils
from keras.src.utils import traceback_utils
from keras.src.utils import tracking
from keras.src.utils import (python_utils, summary_utils, traceback_utils,
tracking)

if backend.backend() == "tensorflow":
from keras.src.backend.tensorflow.layer import TFLayer as BackendLayer
Expand Down
7 changes: 2 additions & 5 deletions keras/src/ops/operation.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import inspect
import textwrap

from keras.src import backend
from keras.src import dtype_policies
from keras.src import tree
from keras.src import backend, dtype_policies, tree
from keras.src.api_export import keras_export
from keras.src.backend.common.keras_tensor import any_symbolic_tensors
from keras.src.ops.node import Node
from keras.src.utils import python_utils
from keras.src.utils import traceback_utils
from keras.src.utils import python_utils, traceback_utils
from keras.src.utils.naming import auto_name


Expand Down

0 comments on commit eae8dfd

Please sign in to comment.