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.

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.create_global_step()

tf.contrib.framework.create_global_step(graph=None) Create global step tensor in graph. Args: graph: The graph in which to create the global step. If missing, use default graph. Returns: Global step tensor. Raises: ValueError: if global step key is already defined.

tf.contrib.framework.deprecated_arg_values()

tf.contrib.framework.deprecated_arg_values(date, instructions, **deprecated_kwargs) Decorator for marking specific function argument values as deprecated. This decorator logs a deprecation warning whenever the decorated function is called with the deprecated argument values. It has the following format: Calling (from ) with = is deprecated and will be removed after . Instructions for updating: will include the class name if it is a method. It also edits the docstring of the function: ' (dep

tf.contrib.framework.convert_to_tensor_or_sparse_tensor()

tf.contrib.framework.convert_to_tensor_or_sparse_tensor(value, dtype=None, name=None, as_ref=False) Converts value to a SparseTensor or Tensor. Args: value: A SparseTensor, SparseTensorValue, or an object whose type has a registered Tensor conversion function. dtype: Optional element type for the returned tensor. If missing, the type is inferred from the type of value. name: Optional name to use if a new Tensor is created. as_ref: True if we want the result as a ref tensor. Only used if a

tf.contrib.framework.deprecated_args()

tf.contrib.framework.deprecated_args(date, instructions, *deprecated_arg_names) Decorator for marking specific function arguments as deprecated. This decorator logs a deprecation warning whenever the decorated function is called with the deprecated argument. It has the following format: Calling (from ) with is deprecated and will be removed after . Instructions for updating: will include the class name if it is a method. It also edits the docstring of the function: ' (deprecated arguments)

tf.contrib.framework.deprecated()

tf.contrib.framework.deprecated(date, instructions) Decorator for marking functions or methods deprecated. This decorator logs a deprecation warning whenever the decorated function is called. It has the following format: (from ) is deprecated and will be removed after . Instructions for updating: will include the class name if it is a method. It also edits the docstring of the function: ' (deprecated)' is appended to the first line of the docstring and a deprecation notice is prepended to t

tf.contrib.framework.assign_from_values_fn()

tf.contrib.framework.assign_from_values_fn(var_names_to_values) Returns a function that assigns specific variables from the given values. This function provides a mechanism for performing assignment of variables to values in a way that does not fill the graph with large assignment values. Args: var_names_to_values: A map from variable names to values. Returns: A function that takes a single argument, a tf.Session, that applies the assignment operation. Raises: ValueError: if any of the giv

tf.contrib.framework.assign_from_checkpoint()

tf.contrib.framework.assign_from_checkpoint(model_path, var_list) Creates an operation to assign specific variables from a checkpoint. Args: model_path: The full path to the model checkpoint. To get latest checkpoint use model_path = tf.train.latest_checkpoint(checkpoint_dir) var_list: A list of Variable objects or a dictionary mapping names in the checkpoint to the correspoing variables to initialize. If empty or None, it would return no_op(), None. Returns: the restore_op and the feed_d

tf.contrib.framework.assign_from_checkpoint_fn()

tf.contrib.framework.assign_from_checkpoint_fn(model_path, var_list, ignore_missing_vars=False, reshape_variables=False) Returns a function that assigns specific variables from a checkpoint. Args: model_path: The full path to the model checkpoint. To get latest checkpoint use model_path = tf.train.latest_checkpoint(checkpoint_dir) var_list: A list of Variable objects or a dictionary mapping names in the checkpoint to the correspoing variables to initialize. If empty or None, it would return