We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee6288b commit 8766419Copy full SHA for 8766419
elasticai_api/tensorflow/optimizer.py
@@ -31,7 +31,6 @@ def complement_value_from_env_if_none(
31
32
def get_adjust_backward_passes_hooks():
33
hooks = []
34
- global optimizer_instances
35
for opt in optimizer_instances:
36
hooks.append(AdjustBackwardPassesPerStepHook(opt))
37
return hooks
@@ -661,7 +660,6 @@ def DistributedOptimizer(
661
660
num_groups=num_groups,
662
global_batch_count_per_step=global_batch_count_per_step,
663
)
664
- global optimizer_instance
665
optimizer_instances.append(opt)
666
return opt
667
elif isinstance(optimizer, tf.keras.optimizers.Optimizer):
0 commit comments