tf.contrib.framework.is_tensor()

tf.contrib.framework.is_tensor(x) Check for tensor types. Check whether an object is a tensor. Equivalent to isinstance(x, [tf.Tensor, tf.SparseTensor, tf.Variable]). Args: x: An python object to check. Returns: True if x is a tensor, False if not.

tf.contrib.framework.has_arg_scope()

tf.contrib.framework.has_arg_scope(func) Checks whether a func has been decorated with @add_arg_scope or not. Args: func: function to check. Returns: a boolean.

tf.contrib.framework.get_variables_to_restore()

tf.contrib.framework.get_variables_to_restore(include=None, exclude=None) Gets the list of the variables to restore. Args: include: an optional list/tuple of scope strings for filtering which variables from the VARIABLES collection to include. None would include all the variables. exclude: an optional list/tuple of scope strings for filtering which variables from the VARIABLES collection to exclude. None it would not exclude any. Returns: a list of variables to restore. Raises: TypeError:

tf.contrib.framework.get_variables_by_suffix()

tf.contrib.framework.get_variables_by_suffix(suffix, scope=None) Gets the list of variables that end with the given suffix. Args: suffix: suffix for filtering the variables to return. scope: an optional scope for filtering the variables to return. Returns: a copied list of variables with the given name and prefix.

tf.contrib.framework.get_variables_by_name()

tf.contrib.framework.get_variables_by_name(given_name, scope=None) Gets the list of variables that were given that name. Args: given_name: name given to the variable without any scope. scope: an optional scope for filtering the variables to return. Returns: a copied list of variables with the given name and scope.

tf.contrib.framework.get_variables()

tf.contrib.framework.get_variables(scope=None, suffix=None, collection='variables') Gets the list of variables, filtered by scope and/or suffix. Args: scope: an optional scope for filtering the variables to return. suffix: an optional suffix for filtering the variables to return. collection: in which collection search for. Defaults to GraphKeys.VARIABLES. Returns: a list of variables in collection with scope and suffix.

tf.contrib.framework.get_unique_variable()

tf.contrib.framework.get_unique_variable(var_op_name) Gets the variable uniquely identified by that var_op_name. Args: var_op_name: the full name of the variable op, including the scope. Returns: a tensorflow variable. Raises: ValueError: if no variable uniquely identified by the name exists.

tf.contrib.framework.get_or_create_global_step()

tf.contrib.framework.get_or_create_global_step(graph=None) Returns and create (if necessary) the global step variable. Args: graph: The graph in which to create the global step. If missing, use default graph. Returns: the tensor representing the global step variable.

tf.contrib.framework.get_model_variables()

tf.contrib.framework.get_model_variables(scope=None, suffix=None) Gets the list of model variables, filtered by scope and/or suffix. Args: scope: an optional scope for filtering the variables to return. suffix: an optional suffix for filtering the variables to return. Returns: a list of variables in collection with scope and suffix.

tf.contrib.framework.get_local_variables()

tf.contrib.framework.get_local_variables(scope=None, suffix=None) Gets the list of model variables, filtered by scope and/or suffix. Args: scope: an optional scope for filtering the variables to return. suffix: an optional suffix for filtering the variables to return. Returns: a list of variables in collection with scope and suffix.