parameters: (identifier)
docstring: Retrieves a Keras Optimizer instance.
  
    Arguments:
        identifier: Optimizer identifier, one of
            - String: name of an optimizer
            - Dictionary: configuration dictionary.
            - Keras Optimizer instance (it will be returned unchanged).
            - TensorFlow Optimizer instance
                (it will be wrapped as a Keras Optimizer).
  
    Returns:
        A Keras Optimizer instance.
  
    Raises:
        ValueError: If `identifier` cannot be interpreted.
docstring_summary: Retrieves a Keras Optimizer instance.
docstring_tokens: Retrieves a Keras Optimizer instance .
function: def get(identifier):
    """Retrieves a Keras Optimizer instance.
  
    Arguments:
        identifier: Optimizer identifier, one of
            - String: name of an optimizer
            - Dictionary: configuration dictionary.
            - Keras Optimizer instance (it will be returned unchanged).
            - TensorFlow Optimizer instance
                (it will be wrapped as a Keras Optimizer).
  
    Returns:
        A Keras Optimizer instance.
  
    Raises:
        ValueError: If `identifier` cannot be interpreted.
    """
    # Wrap TF optimizer instances
    if isinstance(identifier, tf_optimizer_module.Optimizer):
      return TFOptimizer(identifier)
    if isinstance(identifier, dict):
      return deserialize(identifier)
    elif isinstance(identifier, six.string_types):
      config = {'class_name': str(identifier), 'config': {}}
      return deserialize(config)
    if isinstance(identifier, Optimizer):
      return identifier
    else:
      raise ValueError('Could not interpret optimizer identifier:', identifier)
function_tokens: def get ( identifier ) : # Wrap TF optimizer instances if isinstance ( identifier , tf_optimizer_module . Optimizer ) : return TFOptimizer ( identifier ) if isinstance ( identifier , dict ) : return deserialize ( identifier ) elif isinstance ( identifier , six . string_types ) : config = { 'class_name' : str ( identifier ) , 'config' : { } } return deserialize ( config ) if isinstance ( identifier , Optimizer ) : return identifier else : raise ValueError ( 'Could not interpret optimizer identifier:' , identifier )