Skip to content

Commit 8766419

Browse files
authored
Remove the word global because it is redundant (#2511)
* Fix the typo of global optimizers * Fix the typo of global optimizers
1 parent ee6288b commit 8766419

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

elasticai_api/tensorflow/optimizer.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ def complement_value_from_env_if_none(
3131

3232
def get_adjust_backward_passes_hooks():
3333
hooks = []
34-
global optimizer_instances
3534
for opt in optimizer_instances:
3635
hooks.append(AdjustBackwardPassesPerStepHook(opt))
3736
return hooks
@@ -661,7 +660,6 @@ def DistributedOptimizer(
661660
num_groups=num_groups,
662661
global_batch_count_per_step=global_batch_count_per_step,
663662
)
664-
global optimizer_instance
665663
optimizer_instances.append(opt)
666664
return opt
667665
elif isinstance(optimizer, tf.keras.optimizers.Optimizer):

0 commit comments

Comments
 (0)