class_docstr: An optimizer that wraps another tf.Optimizer, using an allreduce to
  combine gradient values before applying gradients to model weights.
class_docstr_tok: ["An","optimizer","that","wraps","another","tf.Optimizer",",","using","an","allreduce","to","combine","gradient","values","before","applying","gradients","to","model","weights","."]
code: def __init__(self, optimizer, name=None):
      if name is None:
          name = "Zoo{}".format(type(optimizer).__name__)
      super(ZooOptimizer, self).__init__(name=name, use_locking=False)
  
      self._optimizer = optimizer
  
file_path: analytics-zoo/pyzoo/zoo/tfpark/zoo_optimizer.py
imports: from bigdl.optim.optimizer import OptimMethod
  from zoo.util.tf import process_grad
  import tensorflow
label_desc: Use image node_id 1 to create a new ZooOptimizer object from inherited base classes: tf.train with example: obj = ZooOptimizer(optimizer, name)