(graph, scope)
Finds all the variable names in a graph that begin with a given scope.

  Args:
    graph: A tensorflow graph.
    scope: A string scope.
  Returns:
    List of variables.
Finds all the variable names in a graph that begin with a given scope.
Finds all the variable names in a graph that begin with a given scope .
def get_variable_names(graph, scope):
  """Finds all the variable names in a graph that begin with a given scope.

  Args:
    graph: A tensorflow graph.
    scope: A string scope.
  Returns:
    List of variables.
  """
  with graph.as_default():
    return [v.name for v in tf.global_variables() if v.name.startswith(scope)]
def get_variable_names ( graph , scope ) : with graph . as_default ( ) : return [ v . name for v in tf . global_variables ( ) if v . name . startswith ( scope ) ]