Skip to content

Commit

Permalink
Remove ineffective statement
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 522477719
  • Loading branch information
fchollet authored and tensorflower-gardener committed Apr 7, 2023
1 parent 156eb45 commit cbbe8eb
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion keras/optimizers/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,6 @@ def apply_gradients(self, grads_and_vars, name=None):
# Lift variable creation to init scope to avoid environment
# issues.
self.build(trainable_variables)
grads_and_vars = list(zip(grads, trainable_variables))
grads_and_vars = optimizer_utils.filter_empty_gradients(
grads_and_vars
)
Expand Down

0 comments on commit cbbe8eb

Please sign in to comment.