doc_content
stringlengths
1
386k
doc_id
stringlengths
5
188
tf.compat.v1.scatter_nd_update Applies sparse updates to individual values or slices in a Variable. tf.compat.v1.scatter_nd_update( ref, indices, updates, use_locking=True, name=None ) ref is a Tensor with rank P and indices is a Tensor of rank Q. indices must be integer tensor, containing indices into ref. It mu...
tensorflow.compat.v1.scatter_nd_update
tf.compat.v1.scatter_sub Subtracts sparse updates to a variable reference. tf.compat.v1.scatter_sub( ref, indices, updates, use_locking=False, name=None ) # Scalar indices ref[indices, ...] -= updates[...] # Vector indices (for each i) ref[indices[i], ...] -= updates[i, ...] # High rank indices (for each i, ......
tensorflow.compat.v1.scatter_sub
tf.compat.v1.scatter_update Applies sparse updates to a variable reference. tf.compat.v1.scatter_update( ref, indices, updates, use_locking=True, name=None ) This operation computes # Scalar indices ref[indices, ...] = updates[...] # Vector indices (for each i) ref[indices[i], ...] = updates[i, ...] # High rank...
tensorflow.compat.v1.scatter_update
tf.compat.v1.serialize_many_sparse Serialize N-minibatch SparseTensor into an [N, 3] Tensor. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.io.serialize_many_sparse tf.compat.v1.serialize_many_sparse( sp_input, name=None, out_type=tf.dtypes.string ) The SparseTens...
tensorflow.compat.v1.serialize_many_sparse
tf.compat.v1.serialize_sparse Serialize a SparseTensor into a 3-vector (1-D Tensor) object. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.io.serialize_sparse tf.compat.v1.serialize_sparse( sp_input, name=None, out_type=tf.dtypes.string ) Args sp_input Th...
tensorflow.compat.v1.serialize_sparse
tf.compat.v1.Session A class for running TensorFlow operations. tf.compat.v1.Session( target='', graph=None, config=None ) A Session object encapsulates the environment in which Operation objects are executed, and Tensor objects are evaluated. For example: tf.compat.v1.disable_eager_execution() # need to disable ...
tensorflow.compat.v1.session
tf.compat.v1.SessionLog A ProtocolMessage View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.summary.SessionLog Attributes checkpoint_path string checkpoint_path msg string msg status SessionStatus status Class Variables CHECKPOINT 3 STA...
tensorflow.compat.v1.sessionlog
tf.compat.v1.setdiff1d Computes the difference between two lists of numbers or strings. tf.compat.v1.setdiff1d( x, y, index_dtype=tf.dtypes.int32, name=None ) Given a list x and a list y, this operation returns a list out that represents all values that are in x but not in y. The returned list out is sorted in th...
tensorflow.compat.v1.setdiff1d
Module: tf.compat.v1.sets Tensorflow set operations. Functions difference(...): Compute set difference of elements in last dimension of a and b. intersection(...): Compute set intersection of elements in last dimension of a and b. set_difference(...): Compute set difference of elements in last dimension of a and b. set...
tensorflow.compat.v1.sets
tf.compat.v1.set_random_seed Sets the graph-level random seed for the default graph. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.random.set_random_seed tf.compat.v1.set_random_seed( seed ) Operations that rely on a random seed actually derive it from two seeds:...
tensorflow.compat.v1.set_random_seed
tf.compat.v1.shape Returns the shape of a tensor. tf.compat.v1.shape( input, name=None, out_type=tf.dtypes.int32 ) This operation returns a 1-D integer tensor representing the shape of input. For example: t = tf.constant([[[1, 1, 1], [2, 2, 2]], [[3, 3, 3], [4, 4, 4]]]) tf.shape(t) # [2, 2, 3] Args input...
tensorflow.compat.v1.shape
Module: tf.compat.v1.signal Signal processing operations. See the tf.signal guide. Functions dct(...): Computes the 1D [Discrete Cosine Transform (DCT)][dct] of input. fft(...): Fast Fourier transform. fft2d(...): 2D fast Fourier transform. fft3d(...): 3D fast Fourier transform. fftshift(...): Shift the zero-frequency ...
tensorflow.compat.v1.signal
tf.compat.v1.size Returns the size of a tensor. tf.compat.v1.size( input, name=None, out_type=tf.dtypes.int32 ) Returns a 0-D Tensor representing the number of elements in input of type out_type. Defaults to tf.int32. For example: t = tf.constant([[[1, 1, 1], [2, 2, 2]], [[3, 3, 3], [4, 4, 4]]]) tf.size(t) # 12 ...
tensorflow.compat.v1.size
tf.compat.v1.space_to_batch SpaceToBatch for 4-D tensors of type T. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.nn.space_to_batch tf.compat.v1.space_to_batch( input, paddings, block_size=None, name=None, block_shape=None ) This is a legacy version of the more g...
tensorflow.compat.v1.space_to_batch
tf.compat.v1.space_to_depth SpaceToDepth for tensors of type T. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.nn.space_to_depth tf.compat.v1.space_to_depth( input, block_size, name=None, data_format='NHWC' ) Rearranges blocks of spatial data, into depth. More spe...
tensorflow.compat.v1.space_to_depth
Module: tf.compat.v1.sparse Sparse Tensor Representation. See also tf.sparse.SparseTensor. Classes class SparseConditionalAccumulator: A conditional accumulator for aggregating sparse gradients. class SparseTensor: Represents a sparse tensor. Functions add(...): Adds two tensors, at least one of each is a SparseTensor....
tensorflow.compat.v1.sparse
tf.compat.v1.SparseConditionalAccumulator A conditional accumulator for aggregating sparse gradients. Inherits From: ConditionalAccumulatorBase View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.sparse.SparseConditionalAccumulator tf.compat.v1.SparseConditionalAccumulator(...
tensorflow.compat.v1.sparseconditionalaccumulator
tf.compat.v1.SparseTensorValue SparseTensorValue(indices, values, dense_shape) tf.compat.v1.SparseTensorValue( indices, values, dense_shape ) Attributes indices values dense_shape
tensorflow.compat.v1.sparsetensorvalue
tf.compat.v1.sparse_add Adds two tensors, at least one of each is a SparseTensor. (deprecated arguments) View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.sparse.add tf.compat.v1.sparse_add( a, b, threshold=None, thresh=None ) Warning: SOME ARGUMENTS ARE DEPRECATED: ...
tensorflow.compat.v1.sparse_add
tf.compat.v1.sparse_concat Concatenates a list of SparseTensor along the specified dimension. (deprecated arguments) View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.sparse.concat tf.compat.v1.sparse_concat( axis, sp_inputs, name=None, expand_nonconcat_dim=False, con...
tensorflow.compat.v1.sparse_concat
tf.compat.v1.sparse_matmul Multiply matrix "a" by matrix "b". tf.compat.v1.sparse_matmul( a, b, transpose_a=False, transpose_b=False, a_is_sparse=False, b_is_sparse=False, name=None ) The inputs must be two-dimensional matrices and the inner dimension of "a" must match the outer dimension of "b". Both "a" and...
tensorflow.compat.v1.sparse_matmul
tf.compat.v1.sparse_merge Combines a batch of feature ids and values into a single SparseTensor. (deprecated) View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.sparse.merge tf.compat.v1.sparse_merge( sp_ids, sp_values, vocab_size, name=None, already_sorted=False ) Wa...
tensorflow.compat.v1.sparse_merge
tf.compat.v1.sparse_placeholder Inserts a placeholder for a sparse tensor that will be always fed. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.sparse.placeholder tf.compat.v1.sparse_placeholder( dtype, shape=None, name=None ) Key Point: This sparse tensor will ...
tensorflow.compat.v1.sparse_placeholder
tf.compat.v1.sparse_reduce_max Computes the max of elements across dimensions of a SparseTensor. (deprecated arguments) (deprecated arguments) View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.sparse.reduce_max tf.compat.v1.sparse_reduce_max( sp_input, axis=None, keep...
tensorflow.compat.v1.sparse_reduce_max
tf.compat.v1.sparse_reduce_max_sparse Computes the max of elements across dimensions of a SparseTensor. (deprecated arguments) View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.sparse.reduce_max_sparse tf.compat.v1.sparse_reduce_max_sparse( sp_input, axis=None, keepdi...
tensorflow.compat.v1.sparse_reduce_max_sparse
tf.compat.v1.sparse_reduce_sum Computes the sum of elements across dimensions of a SparseTensor. (deprecated arguments) (deprecated arguments) View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.sparse.reduce_sum tf.compat.v1.sparse_reduce_sum( sp_input, axis=None, keep...
tensorflow.compat.v1.sparse_reduce_sum
tf.compat.v1.sparse_reduce_sum_sparse Computes the sum of elements across dimensions of a SparseTensor. (deprecated arguments) View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.sparse.reduce_sum_sparse tf.compat.v1.sparse_reduce_sum_sparse( sp_input, axis=None, keepdi...
tensorflow.compat.v1.sparse_reduce_sum_sparse
tf.compat.v1.sparse_segment_mean Computes the mean along sparse segments of a tensor. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.sparse.segment_mean tf.compat.v1.sparse_segment_mean( data, indices, segment_ids, name=None, num_segments=None ) Read the section o...
tensorflow.compat.v1.sparse_segment_mean
tf.compat.v1.sparse_segment_sqrt_n Computes the sum along sparse segments of a tensor divided by the sqrt(N). View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.sparse.segment_sqrt_n tf.compat.v1.sparse_segment_sqrt_n( data, indices, segment_ids, name=None, num_segment...
tensorflow.compat.v1.sparse_segment_sqrt_n
tf.compat.v1.sparse_segment_sum Computes the sum along sparse segments of a tensor. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.sparse.segment_sum tf.compat.v1.sparse_segment_sum( data, indices, segment_ids, name=None, num_segments=None ) Read the section on se...
tensorflow.compat.v1.sparse_segment_sum
tf.compat.v1.sparse_split Split a SparseTensor into num_split tensors along axis. (deprecated arguments) View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.sparse.split tf.compat.v1.sparse_split( keyword_required=KeywordRequired(), sp_input=None, num_split=None, axis=N...
tensorflow.compat.v1.sparse_split
tf.compat.v1.sparse_to_dense Converts a sparse representation into a dense tensor. (deprecated) tf.compat.v1.sparse_to_dense( sparse_indices, output_shape, sparse_values, default_value=0, validate_indices=True, name=None ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructi...
tensorflow.compat.v1.sparse_to_dense
Module: tf.compat.v1.spectral Public API for tf.spectral namespace. Functions dct(...): Computes the 1D [Discrete Cosine Transform (DCT)][dct] of input. fft(...): Fast Fourier transform. fft2d(...): 2D fast Fourier transform. fft3d(...): 3D fast Fourier transform. idct(...): Computes the 1D [Inverse Discrete Cosine Tra...
tensorflow.compat.v1.spectral
tf.compat.v1.squeeze Removes dimensions of size 1 from the shape of a tensor. (deprecated arguments) tf.compat.v1.squeeze( input, axis=None, name=None, squeeze_dims=None ) Warning: SOME ARGUMENTS ARE DEPRECATED: (squeeze_dims). They will be removed in a future version. Instructions for updating: Use the axis argu...
tensorflow.compat.v1.squeeze
Module: tf.compat.v1.strings Operations for working with string Tensors. Functions as_string(...): Converts each entry in the given tensor to strings. bytes_split(...): Split string elements of input into bytes. format(...): Formats a string template using a list of tensors. join(...): Perform element-wise concatenatio...
tensorflow.compat.v1.strings
tf.compat.v1.strings.length Computes the length of each string given in the input tensor. tf.compat.v1.strings.length( input, name=None, unit='BYTE' ) strings = tf.constant(['Hello','TensorFlow', '🙂']) tf.strings.length(strings).numpy() # default counts bytes array([ 5, 10, 4], dtype=int32) tf.strings.length(st...
tensorflow.compat.v1.strings.length
tf.compat.v1.strings.split Split elements of input based on sep. tf.compat.v1.strings.split( input=None, sep=None, maxsplit=-1, result_type='SparseTensor', source=None, name=None ) Let N be the size of input (typically N will be the batch size). Split each element of input based on sep and return a SparseTens...
tensorflow.compat.v1.strings.split
tf.compat.v1.strings.substr Return substrings from Tensor of strings. tf.compat.v1.strings.substr( input, pos, len, name=None, unit='BYTE' ) For each string in the input Tensor, creates a substring starting at index pos with a total length of len. If len defines a substring that would extend beyond the length of ...
tensorflow.compat.v1.strings.substr
tf.compat.v1.string_split Split elements of source based on delimiter. (deprecated arguments) tf.compat.v1.string_split( source, sep=None, skip_empty=True, delimiter=None, result_type='SparseTensor', name=None ) Warning: SOME ARGUMENTS ARE DEPRECATED: (delimiter). They will be removed in a future version. Ins...
tensorflow.compat.v1.string_split
tf.compat.v1.string_to_hash_bucket Converts each string in the input Tensor to its hash mod by a number of buckets. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.strings.to_hash_bucket tf.compat.v1.string_to_hash_bucket( string_tensor=None, num_buckets=None, name=...
tensorflow.compat.v1.string_to_hash_bucket
tf.compat.v1.string_to_number Converts each string in the input Tensor to the specified numeric type. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.strings.to_number tf.compat.v1.string_to_number( string_tensor=None, out_type=tf.dtypes.float32, name=None, input=No...
tensorflow.compat.v1.string_to_number
tf.compat.v1.substr Return substrings from Tensor of strings. tf.compat.v1.substr( input, pos, len, name=None, unit='BYTE' ) For each string in the input Tensor, creates a substring starting at index pos with a total length of len. If len defines a substring that would extend beyond the length of the input string...
tensorflow.compat.v1.substr
Module: tf.compat.v1.summary Operations for writing summary data, for use in analysis and visualization. See the Summaries and TensorBoard guide. Classes class Event: A ProtocolMessage class FileWriter: Writes Summary protocol buffers to event files. class FileWriterCache: Cache for file writers. class SessionLog: A Pr...
tensorflow.compat.v1.summary
tf.compat.v1.summary.all_v2_summary_ops Returns all V2-style summary ops defined in the current default graph. tf.compat.v1.summary.all_v2_summary_ops() This includes ops from TF 2.0 tf.summary and TF 1.x tf.contrib.summary (except for tf.contrib.summary.graph and tf.contrib.summary.import_event), but does not includ...
tensorflow.compat.v1.summary.all_v2_summary_ops
tf.compat.v1.summary.audio Outputs a Summary protocol buffer with audio. tf.compat.v1.summary.audio( name, tensor, sample_rate, max_outputs=3, collections=None, family=None ) The summary has up to max_outputs summary values containing audio. The audio is built from tensor which must be 3-D with shape [batch_size,...
tensorflow.compat.v1.summary.audio
tf.compat.v1.summary.FileWriter Writes Summary protocol buffers to event files. tf.compat.v1.summary.FileWriter( logdir, graph=None, max_queue=10, flush_secs=120, graph_def=None, filename_suffix=None, session=None ) The FileWriter class provides a mechanism to create an event file in a given directory and add...
tensorflow.compat.v1.summary.filewriter
tf.compat.v1.summary.FileWriterCache Cache for file writers. This class caches file writers, one per directory. Methods clear View source @staticmethod clear() Clear cached summary writers. Currently only used for unit tests. get View source @staticmethod get( logdir ) Returns the FileWriter for the specified d...
tensorflow.compat.v1.summary.filewritercache
tf.compat.v1.summary.get_summary_description Given a TensorSummary node_def, retrieve its SummaryDescription. tf.compat.v1.summary.get_summary_description( node_def ) When a Summary op is instantiated, a SummaryDescription of associated metadata is stored in its NodeDef. This method retrieves the description. ...
tensorflow.compat.v1.summary.get_summary_description
tf.compat.v1.summary.histogram Outputs a Summary protocol buffer with a histogram. tf.compat.v1.summary.histogram( name, values, collections=None, family=None ) Adding a histogram summary makes it possible to visualize your data's distribution in TensorBoard. You can see a detailed explanation of the TensorBoard ...
tensorflow.compat.v1.summary.histogram
tf.compat.v1.summary.image Outputs a Summary protocol buffer with images. tf.compat.v1.summary.image( name, tensor, max_outputs=3, collections=None, family=None ) The summary has up to max_outputs summary values containing images. The images are built from tensor which must be 4-D with shape [batch_size, height, ...
tensorflow.compat.v1.summary.image
tf.compat.v1.summary.initialize Initializes summary writing for graph execution mode. tf.compat.v1.summary.initialize( graph=None, session=None ) This operation is a no-op when executing eagerly. This helper method provides a higher-level alternative to using tf.contrib.summary.summary_writer_initializer_op and t...
tensorflow.compat.v1.summary.initialize
tf.compat.v1.summary.merge Merges summaries. tf.compat.v1.summary.merge( inputs, collections=None, name=None ) This op creates a Summary protocol buffer that contains the union of all the values in the input summaries. When the Op is run, it reports an InvalidArgument error if multiple values in the summaries to ...
tensorflow.compat.v1.summary.merge
tf.compat.v1.summary.merge_all Merges all summaries collected in the default graph. tf.compat.v1.summary.merge_all( key=tf.GraphKeys.SUMMARIES, scope=None, name=None ) Args key GraphKey used to collect the summaries. Defaults to GraphKeys.SUMMARIES. scope Optional scope used to filter the summary o...
tensorflow.compat.v1.summary.merge_all
tf.compat.v1.summary.scalar Outputs a Summary protocol buffer containing a single scalar value. tf.compat.v1.summary.scalar( name, tensor, collections=None, family=None ) The generated Summary has a Tensor.proto containing the input Tensor. Args name A name for the generated node. Will also serve as the ...
tensorflow.compat.v1.summary.scalar
tf.compat.v1.summary.SummaryDescription A ProtocolMessage Attributes type_hint string type_hint
tensorflow.compat.v1.summary.summarydescription
tf.compat.v1.summary.TaggedRunMetadata A ProtocolMessage Attributes run_metadata bytes run_metadata tag string tag
tensorflow.compat.v1.summary.taggedrunmetadata
tf.compat.v1.summary.tensor_summary Outputs a Summary protocol buffer with a serialized tensor.proto. tf.compat.v1.summary.tensor_summary( name, tensor, summary_description=None, collections=None, summary_metadata=None, family=None, display_name=None ) Args name A name for the generated node. If disp...
tensorflow.compat.v1.summary.tensor_summary
tf.compat.v1.summary.text Summarizes textual data. tf.compat.v1.summary.text( name, tensor, collections=None ) Text data summarized via this plugin will be visible in the Text Dashboard in TensorBoard. The standard TensorBoard Text Dashboard will render markdown in the strings, and will automatically organize 1d ...
tensorflow.compat.v1.summary.text
tf.compat.v1.SummaryMetadata A ProtocolMessage Attributes data_class DataClass data_class display_name string display_name plugin_data PluginData plugin_data summary_description string summary_description Child Classes class PluginData
tensorflow.compat.v1.summarymetadata
tf.compat.v1.SummaryMetadata.PluginData A ProtocolMessage Attributes content bytes content plugin_name string plugin_name
tensorflow.compat.v1.summarymetadata.plugindata
Module: tf.compat.v1.sysconfig System configuration library. Functions get_build_info(...): Get a dictionary describing TensorFlow's build environment. get_compile_flags(...): Get the compilation flags for custom operators. get_include(...): Get the directory containing the TensorFlow C++ header files. get_lib(...): Ge...
tensorflow.compat.v1.sysconfig
tf.compat.v1.tables_initializer Returns an Op that initializes all tables of the default graph. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.initializers.tables_initializer tf.compat.v1.tables_initializer( name='init_all_tables' ) See the Low Level Intro guide, ...
tensorflow.compat.v1.tables_initializer
tf.compat.v1.TensorInfo A ProtocolMessage Attributes composite_tensor CompositeTensor composite_tensor coo_sparse CooSparse coo_sparse dtype DataType dtype name string name tensor_shape TensorShapeProto tensor_shape Child Classes class CompositeTensor class CooSparse
tensorflow.compat.v1.tensorinfo
tf.compat.v1.TensorInfo.CompositeTensor A ProtocolMessage Attributes components repeated TensorInfo components type_spec TypeSpecProto type_spec
tensorflow.compat.v1.tensorinfo.compositetensor
tf.compat.v1.TensorInfo.CooSparse A ProtocolMessage Attributes dense_shape_tensor_name string dense_shape_tensor_name indices_tensor_name string indices_tensor_name values_tensor_name string values_tensor_name
tensorflow.compat.v1.tensorinfo.coosparse
Module: tf.compat.v1.test Testing. Classes class Benchmark: Abstract class that provides helpers for TensorFlow benchmarks. class StubOutForTesting: Support class for stubbing methods out for unit testing. class TestCase: Base class for tests that need to test TensorFlow. Functions assert_equal_graph_def(...): Asserts ...
tensorflow.compat.v1.test
tf.compat.v1.test.assert_equal_graph_def Asserts that two GraphDefs are (mostly) the same. tf.compat.v1.test.assert_equal_graph_def( actual, expected, checkpoint_v2=False, hash_table_shared_name=False ) Compares two GraphDef protos for equality, ignoring versions and ordering of nodes, attrs, and control inputs. ...
tensorflow.compat.v1.test.assert_equal_graph_def
tf.compat.v1.test.compute_gradient Computes and returns the theoretical and numerical Jacobian. (deprecated) tf.compat.v1.test.compute_gradient( x, x_shape, y, y_shape, x_init_value=None, delta=0.001, init_targets=None, extra_feed_dict=None ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a futur...
tensorflow.compat.v1.test.compute_gradient
tf.compat.v1.test.compute_gradient_error Computes the gradient error. (deprecated) tf.compat.v1.test.compute_gradient_error( x, x_shape, y, y_shape, x_init_value=None, delta=0.001, init_targets=None, extra_feed_dict=None ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructi...
tensorflow.compat.v1.test.compute_gradient_error
tf.compat.v1.test.get_temp_dir Returns a temporary directory for use during tests. tf.compat.v1.test.get_temp_dir() There is no need to delete the directory after the test. Returns The temporary directory.
tensorflow.compat.v1.test.get_temp_dir
tf.compat.v1.test.StubOutForTesting Support class for stubbing methods out for unit testing. tf.compat.v1.test.StubOutForTesting() Sample Usage: You want os.path.exists() to always return true during testing. stubs = StubOutForTesting() stubs.Set(os.path, 'exists', lambda x: 1) ... stubs.CleanUp() The above changes o...
tensorflow.compat.v1.test.stuboutfortesting
tf.compat.v1.test.test_src_dir_path Creates an absolute test srcdir path given a relative path. tf.compat.v1.test.test_src_dir_path( relative_path ) Args relative_path a path relative to tensorflow root. e.g. "core/platform". Returns An absolute path to the linked in runfiles.
tensorflow.compat.v1.test.test_src_dir_path
tf.compat.v1.TextLineReader A Reader that outputs the lines of a file delimited by newlines. Inherits From: ReaderBase tf.compat.v1.TextLineReader( skip_header_lines=None, name=None ) Newlines are stripped from the output. See ReaderBase for supported methods. Args skip_header_lines An optional int. Defa...
tensorflow.compat.v1.textlinereader
tf.compat.v1.TFRecordReader A Reader that outputs the records from a TFRecords file. Inherits From: ReaderBase tf.compat.v1.TFRecordReader( name=None, options=None ) See ReaderBase for supported methods. Args name A name for the operation (optional). options A TFRecordOptions object (optional). ...
tensorflow.compat.v1.tfrecordreader
tf.compat.v1.to_bfloat16 Casts a tensor to type bfloat16. (deprecated) tf.compat.v1.to_bfloat16( x, name='ToBFloat16' ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use tf.cast instead. Args x A Tensor or SparseTensor or IndexedSlices. name ...
tensorflow.compat.v1.to_bfloat16
tf.compat.v1.to_complex128 Casts a tensor to type complex128. (deprecated) tf.compat.v1.to_complex128( x, name='ToComplex128' ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use tf.cast instead. Args x A Tensor or SparseTensor or IndexedSlices. ...
tensorflow.compat.v1.to_complex128
tf.compat.v1.to_complex64 Casts a tensor to type complex64. (deprecated) tf.compat.v1.to_complex64( x, name='ToComplex64' ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use tf.cast instead. Args x A Tensor or SparseTensor or IndexedSlices. n...
tensorflow.compat.v1.to_complex64
tf.compat.v1.to_double Casts a tensor to type float64. (deprecated) tf.compat.v1.to_double( x, name='ToDouble' ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use tf.cast instead. Args x A Tensor or SparseTensor or IndexedSlices. name A nam...
tensorflow.compat.v1.to_double
tf.compat.v1.to_float Casts a tensor to type float32. (deprecated) tf.compat.v1.to_float( x, name='ToFloat' ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use tf.cast instead. Args x A Tensor or SparseTensor or IndexedSlices. name A name f...
tensorflow.compat.v1.to_float
tf.compat.v1.to_int32 Casts a tensor to type int32. (deprecated) tf.compat.v1.to_int32( x, name='ToInt32' ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use tf.cast instead. Args x A Tensor or SparseTensor or IndexedSlices. name A name for...
tensorflow.compat.v1.to_int32
tf.compat.v1.to_int64 Casts a tensor to type int64. (deprecated) tf.compat.v1.to_int64( x, name='ToInt64' ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use tf.cast instead. Args x A Tensor or SparseTensor or IndexedSlices. name A name for...
tensorflow.compat.v1.to_int64
Module: tf.compat.v1.tpu Ops related to Tensor Processing Units. Modules experimental module: Public API for tf.tpu.experimental namespace. Classes class CrossShardOptimizer: An optimizer that averages gradients across TPU shards. class PaddingSpec: Represents the type of padding policies for tpu.replicate. class XLAOp...
tensorflow.compat.v1.tpu
tf.compat.v1.tpu.batch_parallel Shards computation along the batch dimension for parallel execution. tf.compat.v1.tpu.batch_parallel( computation, inputs=None, num_shards=1, infeed_queue=None, device_assignment=None, name=None, xla_options=None ) Convenience wrapper around shard(). inputs must be a list of Te...
tensorflow.compat.v1.tpu.batch_parallel
tf.compat.v1.tpu.bfloat16_scope Scope class for bfloat16 variables so that the model uses custom getter. @tf_contextlib.contextmanager tf.compat.v1.tpu.bfloat16_scope( name=None ) This enables variables to be read as bfloat16 type when using get_variable.
tensorflow.compat.v1.tpu.bfloat16_scope
tf.compat.v1.tpu.core Returns the device name for a core in a replicated TPU computation. tf.compat.v1.tpu.core( num ) Args num the virtual core number within each replica to which operators should be assigned. Returns A device name, suitable for passing to tf.device().
tensorflow.compat.v1.tpu.core
tf.compat.v1.tpu.CrossShardOptimizer An optimizer that averages gradients across TPU shards. Inherits From: Optimizer tf.compat.v1.tpu.CrossShardOptimizer( opt, reduction=losses.Reduction.MEAN, name='CrossShardOptimizer', group_assignment=None ) Args opt An existing Optimizer to encapsulate. redu...
tensorflow.compat.v1.tpu.crossshardoptimizer
tf.compat.v1.tpu.cross_replica_sum Sum the input tensor across replicas according to group_assignment. tf.compat.v1.tpu.cross_replica_sum( x, group_assignment=None, name=None ) Args x The local tensor to the sum. group_assignment Optional 2d int32 lists with shape [num_groups, num_replicas_per_grou...
tensorflow.compat.v1.tpu.cross_replica_sum
Module: tf.compat.v1.tpu.experimental Public API for tf.tpu.experimental namespace. Modules embedding module: Public API for tf.tpu.experimental.embedding namespace. Classes class AdagradParameters: Optimization parameters for Adagrad with TPU embeddings. class AdamParameters: Optimization parameters for Adam with TPU ...
tensorflow.compat.v1.tpu.experimental
tf.compat.v1.tpu.experimental.AdagradParameters Optimization parameters for Adagrad with TPU embeddings. tf.compat.v1.tpu.experimental.AdagradParameters( learning_rate: float, initial_accumulator: float = 0.1, use_gradient_accumulation: bool = True, clip_weight_min: Optional[float] = None, clip_wei...
tensorflow.compat.v1.tpu.experimental.adagradparameters
tf.compat.v1.tpu.experimental.AdamParameters Optimization parameters for Adam with TPU embeddings. tf.compat.v1.tpu.experimental.AdamParameters( learning_rate: float, beta1: float = 0.9, beta2: float = 0.999, epsilon: float = 1e-08, lazy_adam: bool = True, sum_inside_sqrt: bool = True, use_...
tensorflow.compat.v1.tpu.experimental.adamparameters
Module: tf.compat.v1.tpu.experimental.embedding Public API for tf.tpu.experimental.embedding namespace. Classes class Adagrad: Optimization parameters for Adagrad with TPU embeddings. class Adam: Optimization parameters for Adam with TPU embeddings. class FeatureConfig: Configuration data for one embedding feature. cla...
tensorflow.compat.v1.tpu.experimental.embedding
tf.compat.v1.tpu.experimental.embedding_column TPU version of tf.compat.v1.feature_column.embedding_column. tf.compat.v1.tpu.experimental.embedding_column( categorical_column, dimension, combiner='mean', initializer=None, max_sequence_length=0, learning_rate_fn=None, embedding_lookup_device=None, tensor_co...
tensorflow.compat.v1.tpu.experimental.embedding_column
tf.compat.v1.tpu.experimental.FtrlParameters Optimization parameters for Ftrl with TPU embeddings. tf.compat.v1.tpu.experimental.FtrlParameters( learning_rate: float, learning_rate_power: float = -0.5, initial_accumulator_value: float = 0.1, l1_regularization_strength: float = 0.0, l2_regularizatio...
tensorflow.compat.v1.tpu.experimental.ftrlparameters
tf.compat.v1.tpu.experimental.shared_embedding_columns TPU version of tf.compat.v1.feature_column.shared_embedding_columns. tf.compat.v1.tpu.experimental.shared_embedding_columns( categorical_columns, dimension, combiner='mean', initializer=None, shared_embedding_collection_name=None, max_sequence_lengths=None...
tensorflow.compat.v1.tpu.experimental.shared_embedding_columns
tf.compat.v1.tpu.experimental.StochasticGradientDescentParameters Optimization parameters for stochastic gradient descent for TPU embeddings. tf.compat.v1.tpu.experimental.StochasticGradientDescentParameters( learning_rate: float, clip_weight_min: Optional[float] = None, clip_weight_max: Optional[float] = ...
tensorflow.compat.v1.tpu.experimental.stochasticgradientdescentparameters
tf.compat.v1.tpu.initialize_system Initializes a distributed TPU system for use with TensorFlow. tf.compat.v1.tpu.initialize_system( embedding_config=None, job=None, compilation_failure_closes_chips=True ) Args embedding_config If not None, a TPUEmbeddingConfiguration proto describing the desired configu...
tensorflow.compat.v1.tpu.initialize_system
tf.compat.v1.tpu.outside_compilation Builds part of a computation outside any current TPU replicate scope. tf.compat.v1.tpu.outside_compilation( computation, *args, **kwargs ) tf.tpu.outside_compilation() is used to run ops in computation on CPU instead of running on TPU. For example, users can run ops that are n...
tensorflow.compat.v1.tpu.outside_compilation
tf.compat.v1.tpu.PaddingSpec Represents the type of padding policies for tpu.replicate. Class Variables AUTO <PaddingSpec.AUTO: 0> POWER_OF_TWO <PaddingSpec.POWER_OF_TWO: 1>
tensorflow.compat.v1.tpu.paddingspec
tf.compat.v1.tpu.replicate Builds a graph operator that runs a replicated TPU computation. tf.compat.v1.tpu.replicate( computation, inputs=None, infeed_queue=None, device_assignment=None, name=None, maximum_shapes=None, padding_spec=None, xla_options=None ) Example for the basic usage that inputs has static s...
tensorflow.compat.v1.tpu.replicate
tf.compat.v1.tpu.rewrite Rewrites computation for execution on a TPU system. tf.compat.v1.tpu.rewrite( computation, inputs=None, infeed_queue=None, device_assignment=None, name=None, xla_options=None ) Args computation A Python function that builds a computation to apply to the input. If the function...
tensorflow.compat.v1.tpu.rewrite