diff --git a/keras/backend/torch/optimizers/torch_optimizer.py b/keras/backend/torch/optimizers/torch_optimizer.py index 98c59cdb73e..880b6f3ee04 100644 --- a/keras/backend/torch/optimizers/torch_optimizer.py +++ b/keras/backend/torch/optimizers/torch_optimizer.py @@ -1,5 +1,4 @@ import torch -from packaging.version import parse from keras import optimizers from keras.optimizers.base_optimizer import BaseOptimizer diff --git a/keras/backend/torch/optimizers/torch_parallel_optimizer.py b/keras/backend/torch/optimizers/torch_parallel_optimizer.py index b5bdbf41b26..539aae51d30 100644 --- a/keras/backend/torch/optimizers/torch_parallel_optimizer.py +++ b/keras/backend/torch/optimizers/torch_parallel_optimizer.py @@ -1,5 +1,3 @@ -import torch - from keras.optimizers.base_optimizer import BaseOptimizer from keras.utils import torch_utils