tf.contrib.framework.assign_from_values()

tf.contrib.framework.assign_from_values(var_names_to_values) Creates an assignment operation from a given mapping. 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: assign_op: An Operation that assigns each of the given variables to the requested values. feed_dict: The feed dictionary to use when evaluating assign_op

tf.contrib.framework.assert_global_step()

tf.contrib.framework.assert_global_step(global_step_tensor) Asserts global_step_tensor is a scalar int Variable or Tensor. Args: global_step_tensor: Tensor to test.

tf.contrib.framework.assert_or_get_global_step()

tf.contrib.framework.assert_or_get_global_step(graph=None, global_step_tensor=None) Verifies that a global step tensor is valid or gets one if None is given. If global_step_tensor is not None, check that it is a valid global step tensor (using assert_global_step). Otherwise find a global step tensor using get_global_step and return it. Args: graph: The graph to find the global step tensor for. global_step_tensor: The tensor to check for suitability as a global step. If None is given (the def

tf.contrib.framework.assert_scalar_int()

tf.contrib.framework.assert_scalar_int(tensor) Assert tensor is 0-D, of type tf.int32 or tf.int64. Args: tensor: Tensor to test. Returns: tensor, for chaining. Raises: ValueError: if tensor is not 0-D, of type tf.int32 or tf.int64.

tf.contrib.framework.assert_same_float_dtype()

tf.contrib.framework.assert_same_float_dtype(tensors=None, dtype=None) Validate and return float type based on tensors and dtype. For ops such as matrix multiplication, inputs and weights must be of the same float type. This function validates that all tensors are the same type, validates that type is dtype (if supplied), and returns the type. Type must be dtypes.float32 or dtypes.float64. If neither tensors nor dtype is supplied, default to dtypes.float32. Args: tensors: Tensors of input val

tf.contrib.framework.arg_scoped_arguments()

tf.contrib.framework.arg_scoped_arguments(func) Returns the list kwargs that arg_scope can set for a func. Args: func: function which has been decorated with @add_arg_scope. Returns: a list of kwargs names.

tf.contrib.framework.add_model_variable()

tf.contrib.framework.add_model_variable(var) Adds a variable to the GraphKeys.MODEL_VARIABLES collection. Args: var: a variable.

tf.contrib.framework.arg_scope()

tf.contrib.framework.arg_scope(list_ops_or_scope, **kwargs) Stores the default arguments for the given set of list_ops. For usage, please see examples at top of the file. Args: list_ops_or_scope: List or tuple of operations to set argument scope for or a dictionary containg the current scope. When list_ops_or_scope is a dict, kwargs must be empty. When list_ops_or_scope is a list or tuple, then every op in it need to be decorated with @add_arg_scope to work. **kwargs: keyword=value that will

tf.contrib.ffmpeg.encode_audio()

tf.contrib.ffmpeg.encode_audio(audio, file_format=None, samples_per_second=None) Creates an op that encodes an audio file using sampled audio from a tensor. Args: audio: A rank 2 tensor that has time along dimension 0 and channels along dimension 1. Dimension 0 is samples_per_second * length long in seconds. file_format: The type of file to encode. "wav" is the only supported format. samples_per_second: The number of samples in the audio tensor per second of audio. Returns: A scalar tenso

tf.contrib.ffmpeg.decode_audio()

tf.contrib.ffmpeg.decode_audio(contents, file_format=None, samples_per_second=None, channel_count=None) Create an op that decodes the contents of an audio file. Note that ffmpeg is free to select the "best" audio track from an mp4. https://trac.ffmpeg.org/wiki/Map Args: contents: The binary contents of the audio file to decode. This is a scalar. file_format: A string specifying which format the contents will conform to. This can be mp3, mp4, ogg, or wav. samples_per_second: The number of sa