parameters: (self, key)
docstring: Return keys used for the internal dictionary.
docstring_summary: Return keys used for the internal dictionary.
docstring_tokens: Return keys used for the internal dictionary .
function: def _get_internal_key(self, key):
      """Return keys used for the internal dictionary."""
      if is_train(key):
        return KerasModeKeys.TRAIN
      if is_eval(key):
        return KerasModeKeys.TEST
      if is_predict(key):
        return KerasModeKeys.PREDICT
      raise ValueError('Invalid mode key: {}.'.format(key))
function_tokens: def _get_internal_key ( self , key ) : if is_train ( key ) : return KerasModeKeys . TRAIN if is_eval ( key ) : return KerasModeKeys . TEST if is_predict ( key ) : return KerasModeKeys . PREDICT raise ValueError ( 'Invalid mode key: {}.' . format ( key ) )