def __init__(self, optimizer, scope=None, summary_labels=(), **kwargs):
self.tf_optimizer_type = optimizer<EOL>self.tf_optimizer = TFOptimizer.tf_optimizers[optimizer](**kwargs)<EOL>super(TFOptimizer, self).__init__(scope=(scope or optimizer), summary_labels=summary_labels)<EOL>
Creates a new optimizer instance of a TensorFlow optimizer.

Args:
    optimizer: The name of the optimizer. Must be one of the keys of the tf_optimizers dict.
    **kwargs: Arguments passed on to the TensorFlow optimizer constructor as **kwargs.