Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Derek Pisner authored and Derek Pisner committed Feb 11, 2024
1 parent da1c346 commit 7188e30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gradient_accumulator/accumulators.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,9 +393,9 @@ def apply_gradients(
@tf.function
def _apply_agc(self, grad: tf.Tensor, var: tf.Variable) -> tf.Tensor:
"""Applies adaptive gradient clipping to the gradient."""
return agc.adaptive_clip_grad([var], [grad], clipvalue=self.clipvalue)[
0
]
return agc.adaptive_clip_grad(
[var], [grad], clip_factor=self.clipvalue
)[0]

@tf.function
def _parse_grad(
Expand Down

0 comments on commit 7188e30

Please sign in to comment.