doc_content stringlengths 1 386k | doc_id stringlengths 5 188 |
|---|---|
tf.signal.irfft View source on GitHub Inverse real-valued fast Fourier transform. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.signal.irfft, tf.compat.v1.spectral.irfft
tf.signal.irfft(
input_tensor, fft_length=None, name=None
)
Computes the inverse 1-dim... | tensorflow.signal.irfft |
tf.signal.irfft2d View source on GitHub Inverse 2D real-valued fast Fourier transform. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.signal.irfft2d, tf.compat.v1.spectral.irfft2d
tf.signal.irfft2d(
input_tensor, fft_length=None, name=None
)
Computes the in... | tensorflow.signal.irfft2d |
tf.signal.irfft3d View source on GitHub Inverse 3D real-valued fast Fourier transform. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.signal.irfft3d, tf.compat.v1.spectral.irfft3d
tf.signal.irfft3d(
input_tensor, fft_length=None, name=None
)
Computes the in... | tensorflow.signal.irfft3d |
tf.signal.kaiser_bessel_derived_window Generate a Kaiser Bessel derived window. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.signal.kaiser_bessel_derived_window
tf.signal.kaiser_bessel_derived_window(
window_length, beta=12.0, dtype=tf.dtypes.float32, name=None
)... | tensorflow.signal.kaiser_bessel_derived_window |
tf.signal.kaiser_window Generate a Kaiser window. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.signal.kaiser_window
tf.signal.kaiser_window(
window_length, beta=12.0, dtype=tf.dtypes.float32, name=None
)
Args
window_length A scalar Tensor indicating the... | tensorflow.signal.kaiser_window |
tf.signal.linear_to_mel_weight_matrix View source on GitHub Returns a matrix to warp linear scale spectrograms to the mel scale. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.signal.linear_to_mel_weight_matrix
tf.signal.linear_to_mel_weight_matrix(
num_me... | tensorflow.signal.linear_to_mel_weight_matrix |
tf.signal.mdct Computes the Modified Discrete Cosine Transform of signals. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.signal.mdct
tf.signal.mdct(
signals, frame_length, window_fn=tf.signal.vorbis_window, pad_end=False,
norm=None, name=None
)
Implemented wi... | tensorflow.signal.mdct |
tf.signal.mfccs_from_log_mel_spectrograms View source on GitHub Computes MFCCs of log_mel_spectrograms. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.signal.mfccs_from_log_mel_spectrograms
tf.signal.mfccs_from_log_mel_spectrograms(
log_mel_spectrograms, nam... | tensorflow.signal.mfccs_from_log_mel_spectrograms |
tf.signal.overlap_and_add View source on GitHub Reconstructs a signal from a framed representation. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.signal.overlap_and_add
tf.signal.overlap_and_add(
signal, frame_step, name=None
)
Adds potentially overlapping... | tensorflow.signal.overlap_and_add |
tf.signal.rfft View source on GitHub Real-valued fast Fourier transform. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.signal.rfft, tf.compat.v1.spectral.rfft
tf.signal.rfft(
input_tensor, fft_length=None, name=None
)
Computes the 1-dimensional discrete Fo... | tensorflow.signal.rfft |
tf.signal.rfft2d View source on GitHub 2D real-valued fast Fourier transform. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.signal.rfft2d, tf.compat.v1.spectral.rfft2d
tf.signal.rfft2d(
input_tensor, fft_length=None, name=None
)
Computes the 2-dimensional ... | tensorflow.signal.rfft2d |
tf.signal.rfft3d View source on GitHub 3D real-valued fast Fourier transform. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.signal.rfft3d, tf.compat.v1.spectral.rfft3d
tf.signal.rfft3d(
input_tensor, fft_length=None, name=None
)
Computes the 3-dimensional ... | tensorflow.signal.rfft3d |
tf.signal.stft View source on GitHub Computes the Short-time Fourier Transform of signals. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.signal.stft
tf.signal.stft(
signals, frame_length, frame_step, fft_length=None,
window_fn=tf.signal.hann_window, pad... | tensorflow.signal.stft |
tf.signal.vorbis_window Generate a Vorbis power complementary window. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.signal.vorbis_window
tf.signal.vorbis_window(
window_length, dtype=tf.dtypes.float32, name=None
)
Args
window_length A scalar Tensor indic... | tensorflow.signal.vorbis_window |
tf.size View source on GitHub Returns the size of a tensor.
tf.size(
input, out_type=tf.dtypes.int32, name=None
)
See also tf.shape. 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], [... | tensorflow.size |
tf.slice View source on GitHub Extracts a slice from a tensor. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.slice
tf.slice(
input_, begin, size, name=None
)
See also tf.strided_slice. This operation extracts a slice of size size from a tensor input_ start... | tensorflow.slice |
tf.sort View source on GitHub Sorts a tensor. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.sort
tf.sort(
values, axis=-1, direction='ASCENDING', name=None
)
Usage: import tensorflow as tf
a = [1, 10, 26.9, 2.8, 166.32, 62.3]
b = tf.sort(a,axis=-1,directio... | tensorflow.sort |
tf.space_to_batch SpaceToBatch for N-D tensors of type T. View aliases Main aliases
tf.nn.space_to_batch
tf.space_to_batch(
input, block_shape, paddings, name=None
)
This operation divides "spatial" dimensions [1, ..., M] of the input into a grid of blocks of shape block_shape, and interleaves these blocks wi... | tensorflow.space_to_batch |
tf.space_to_batch_nd SpaceToBatch for N-D tensors of type T. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.manip.space_to_batch_nd, tf.compat.v1.space_to_batch_nd
tf.space_to_batch_nd(
input, block_shape, paddings, name=None
)
This operation divides "spatial" dim... | tensorflow.space_to_batch_nd |
Module: tf.sparse Sparse Tensor Representation. See also tf.sparse.SparseTensor. Classes class SparseTensor: Represents a sparse tensor. Functions add(...): Adds two tensors, at least one of each is a SparseTensor. bincount(...): Count the number of times an integer value appears in a tensor. concat(...): Concatenates ... | tensorflow.sparse |
tf.sparse.add View source on GitHub Adds two tensors, at least one of each is a SparseTensor.
tf.sparse.add(
a, b, threshold=0
)
If one SparseTensor and one Tensor are passed in, returns a Tensor. If both arguments are SparseTensors, this returns a SparseTensor. The order of arguments does not matter. Use ... | tensorflow.sparse.add |
tf.sparse.bincount Count the number of times an integer value appears in a tensor. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.sparse.bincount
tf.sparse.bincount(
values, weights=None, axis=0, minlength=None, maxlength=None,
binary_output=False, name=None
)
... | tensorflow.sparse.bincount |
tf.sparse.concat View source on GitHub Concatenates a list of SparseTensor along the specified dimension. (deprecated arguments)
tf.sparse.concat(
axis, sp_inputs, expand_nonconcat_dims=False, name=None
)
Warning: SOME ARGUMENTS ARE DEPRECATED: (concat_dim). They will be removed in a future version. Instru... | tensorflow.sparse.concat |
tf.sparse.cross View source on GitHub Generates sparse cross from a list of sparse and dense tensors. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.sparse.cross
tf.sparse.cross(
inputs, name=None, separator=None
)
For example, if the inputs are * inputs[0]... | tensorflow.sparse.cross |
tf.sparse.cross_hashed View source on GitHub Generates hashed sparse cross from a list of sparse and dense tensors. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.sparse.cross_hashed
tf.sparse.cross_hashed(
inputs, num_buckets=0, hash_key=None, name=None
)
... | tensorflow.sparse.cross_hashed |
tf.sparse.expand_dims View source on GitHub Returns a tensor with an length 1 axis inserted at index axis. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.sparse.expand_dims
tf.sparse.expand_dims(
sp_input, axis=None, name=None
)
Given a tensor input, this o... | tensorflow.sparse.expand_dims |
tf.sparse.eye View source on GitHub Creates a two-dimensional sparse tensor with ones along the diagonal. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.sparse.eye
tf.sparse.eye(
num_rows, num_columns=None, dtype=tf.dtypes.float32, name=None
)
Args
n... | tensorflow.sparse.eye |
tf.sparse.fill_empty_rows View source on GitHub Fills empty rows in the input 2-D SparseTensor with a default value. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.sparse.fill_empty_rows, tf.compat.v1.sparse_fill_empty_rows
tf.sparse.fill_empty_rows(
sp_inpu... | tensorflow.sparse.fill_empty_rows |
tf.sparse.from_dense View source on GitHub Converts a dense tensor into a sparse tensor. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.sparse.from_dense
tf.sparse.from_dense(
tensor, name=None
)
Only elements not equal to zero will be present in the result... | tensorflow.sparse.from_dense |
tf.sparse.map_values Applies op to the .values tensor of one or more SparseTensors.
tf.sparse.map_values(
op, *args, **kwargs
)
Replaces any SparseTensor in args or kwargs with its values tensor (which contains the non-default values for the SparseTensor), and then calls op. Returns a SparseTensor that is constru... | tensorflow.sparse.map_values |
tf.sparse.mask View source on GitHub Masks elements of IndexedSlices. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.sparse.mask, tf.compat.v1.sparse_mask
tf.sparse.mask(
a, mask_indices, name=None
)
Given an IndexedSlices instance a, returns another Indexe... | tensorflow.sparse.mask |
tf.sparse.maximum View source on GitHub Returns the element-wise max of two SparseTensors. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.sparse.maximum, tf.compat.v1.sparse_maximum
tf.sparse.maximum(
sp_a, sp_b, name=None
)
Assumes the two SparseTensors ha... | tensorflow.sparse.maximum |
tf.sparse.minimum View source on GitHub Returns the element-wise min of two SparseTensors. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.sparse.minimum, tf.compat.v1.sparse_minimum
tf.sparse.minimum(
sp_a, sp_b, name=None
)
Assumes the two SparseTensors ha... | tensorflow.sparse.minimum |
tf.sparse.reduce_max View source on GitHub Computes the max of elements across dimensions of a SparseTensor.
tf.sparse.reduce_max(
sp_input, axis=None, keepdims=None, output_is_sparse=False, name=None
)
This Op takes a SparseTensor and is the sparse counterpart to tf.reduce_max(). In particular, this Op al... | tensorflow.sparse.reduce_max |
tf.sparse.reduce_sum View source on GitHub Computes the sum of elements across dimensions of a SparseTensor.
tf.sparse.reduce_sum(
sp_input, axis=None, keepdims=None, output_is_sparse=False, name=None
)
This Op takes a SparseTensor and is the sparse counterpart to tf.reduce_sum(). In particular, this Op al... | tensorflow.sparse.reduce_sum |
tf.sparse.reorder View source on GitHub Reorders a SparseTensor into the canonical, row-major ordering. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.sparse.reorder, tf.compat.v1.sparse_reorder
tf.sparse.reorder(
sp_input, name=None
)
Note that by conventi... | tensorflow.sparse.reorder |
tf.sparse.reset_shape View source on GitHub Resets the shape of a SparseTensor with indices and values unchanged. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.sparse.reset_shape, tf.compat.v1.sparse_reset_shape
tf.sparse.reset_shape(
sp_input, new_shape=No... | tensorflow.sparse.reset_shape |
tf.sparse.reshape View source on GitHub Reshapes a SparseTensor to represent values in a new dense shape. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.sparse.reshape, tf.compat.v1.sparse_reshape
tf.sparse.reshape(
sp_input, shape, name=None
)
This operati... | tensorflow.sparse.reshape |
tf.sparse.retain View source on GitHub Retains specified non-empty values within a SparseTensor. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.sparse.retain, tf.compat.v1.sparse_retain
tf.sparse.retain(
sp_input, to_retain
)
For example, if sp_input has sh... | tensorflow.sparse.retain |
tf.sparse.segment_mean View source on GitHub Computes the mean along sparse segments of a tensor.
tf.sparse.segment_mean(
data, indices, segment_ids, num_segments=None, name=None
)
Read the section on segmentation for an explanation of segments. Like tf.math.segment_mean, but segment_ids can have rank less... | tensorflow.sparse.segment_mean |
tf.sparse.segment_sqrt_n View source on GitHub Computes the sum along sparse segments of a tensor divided by the sqrt(N).
tf.sparse.segment_sqrt_n(
data, indices, segment_ids, num_segments=None, name=None
)
Read the section on segmentation for an explanation of segments. Like tf.sparse.segment_mean, but in... | tensorflow.sparse.segment_sqrt_n |
tf.sparse.segment_sum View source on GitHub Computes the sum along sparse segments of a tensor.
tf.sparse.segment_sum(
data, indices, segment_ids, num_segments=None, name=None
)
Read the section on segmentation for an explanation of segments. Like tf.math.segment_sum, but segment_ids can have rank less tha... | tensorflow.sparse.segment_sum |
tf.sparse.slice View source on GitHub Slice a SparseTensor based on the start and `size. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.sparse.slice, tf.compat.v1.sparse_slice
tf.sparse.slice(
sp_input, start, size, name=None
)
For example, if the input is ... | tensorflow.sparse.slice |
tf.sparse.softmax View source on GitHub Applies softmax to a batched N-D SparseTensor. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.sparse.softmax, tf.compat.v1.sparse_softmax
tf.sparse.softmax(
sp_input, name=None
)
The inputs represent an N-D SparseTens... | tensorflow.sparse.softmax |
tf.sparse.SparseTensor View source on GitHub Represents a sparse tensor. View aliases Main aliases
tf.SparseTensor Compat aliases for migration See Migration guide for more details. tf.compat.v1.SparseTensor, tf.compat.v1.sparse.SparseTensor
tf.sparse.SparseTensor(
indices, values, dense_shape
)
Tensor... | tensorflow.sparse.sparsetensor |
tf.sparse.sparse_dense_matmul View source on GitHub Multiply SparseTensor (or dense Matrix) (of rank 2) "A" by dense matrix View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.sparse.matmul, tf.compat.v1.sparse.sparse_dense_matmul, tf.compat.v1.sparse_tensor_dense_matm... | tensorflow.sparse.sparse_dense_matmul |
tf.sparse.split View source on GitHub Split a SparseTensor into num_split tensors along axis.
tf.sparse.split(
sp_input=None, num_split=None, axis=None, name=None
)
If the sp_input.dense_shape[axis] is not an integer multiple of num_split each slice starting from 0:shape[axis] % num_split gets extra one di... | tensorflow.sparse.split |
tf.sparse.to_dense View source on GitHub Converts a SparseTensor into a dense tensor. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.sparse.to_dense, tf.compat.v1.sparse_tensor_to_dense
tf.sparse.to_dense(
sp_input, default_value=None, validate_indices=True,... | tensorflow.sparse.to_dense |
tf.sparse.to_indicator View source on GitHub Converts a SparseTensor of ids into a dense bool indicator tensor. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.sparse.to_indicator, tf.compat.v1.sparse_to_indicator
tf.sparse.to_indicator(
sp_input, vocab_size,... | tensorflow.sparse.to_indicator |
tf.sparse.transpose View source on GitHub Transposes a SparseTensor View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.sparse.transpose, tf.compat.v1.sparse_transpose
tf.sparse.transpose(
sp_input, perm=None, name=None
)
The returned tensor's dimension i will c... | tensorflow.sparse.transpose |
tf.SparseTensorSpec View source on GitHub Type specification for a tf.sparse.SparseTensor. Inherits From: TypeSpec View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.SparseTensorSpec
tf.SparseTensorSpec(
shape=None, dtype=tf.dtypes.float32
)
Args
shape ... | tensorflow.sparsetensorspec |
tf.split View source on GitHub Splits a tensor value into a list of sub tensors. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.split
tf.split(
value, num_or_size_splits, axis=0, num=None, name='split'
)
See also tf.unstack. If num_or_size_splits is an inte... | tensorflow.split |
tf.squeeze View source on GitHub Removes dimensions of size 1 from the shape of a tensor.
tf.squeeze(
input, axis=None, name=None
)
Given a tensor input, this operation returns a tensor of the same type with all dimensions of size 1 removed. If you don't want to remove all size 1 dimensions, you can remove... | tensorflow.squeeze |
tf.stack View source on GitHub Stacks a list of rank-R tensors into one rank-(R+1) tensor. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.stack
tf.stack(
values, axis=0, name='stack'
)
See also tf.concat, tf.tile, tf.repeat. Packs the list of tensors in val... | tensorflow.stack |
tf.stop_gradient Stops gradient computation. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.stop_gradient
tf.stop_gradient(
input, name=None
)
When executed in a graph, this op outputs its input tensor as-is. When building ops to compute gradients, this op prevent... | tensorflow.stop_gradient |
tf.strided_slice View source on GitHub Extracts a strided slice of a tensor (generalized Python array indexing). View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.strided_slice
tf.strided_slice(
input_, begin, end, strides=None, begin_mask=0, end_mask=0, ellips... | tensorflow.strided_slice |
Module: tf.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 concatenation of a lis... | tensorflow.strings |
tf.strings.as_string Converts each entry in the given tensor to strings. View aliases Main aliases
tf.as_string Compat aliases for migration See Migration guide for more details. tf.compat.v1.as_string, tf.compat.v1.dtypes.as_string, tf.compat.v1.strings.as_string
tf.strings.as_string(
input, precision=-1, sci... | tensorflow.strings.as_string |
tf.strings.bytes_split View source on GitHub Split string elements of input into bytes. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.strings.bytes_split
tf.strings.bytes_split(
input, name=None
)
Examples:
tf.strings.bytes_split('hello').numpy()
array([b... | tensorflow.strings.bytes_split |
tf.strings.format View source on GitHub Formats a string template using a list of tensors. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.strings.format
tf.strings.format(
template, inputs, placeholder='{}', summarize=3, name=None
)
Formats a string templat... | tensorflow.strings.format |
tf.strings.join View source on GitHub Perform element-wise concatenation of a list of string tensors. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.string_join, tf.compat.v1.strings.join
tf.strings.join(
inputs, separator='', name=None
)
Given a list of st... | tensorflow.strings.join |
tf.strings.length View source on GitHub String lengths of input.
tf.strings.length(
input, unit='BYTE', name=None
)
Computes the length of each string given in the input tensor.
strings = tf.constant(['Hello','TensorFlow', '\U0001F642'])
tf.strings.length(strings).numpy() # default counts bytes
array([ 5,... | tensorflow.strings.length |
tf.strings.lower Converts all uppercase characters into their respective lowercase replacements. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.strings.lower
tf.strings.lower(
input, encoding='', name=None
)
Example:
tf.strings.lower("CamelCase string and ALL CAP... | tensorflow.strings.lower |
tf.strings.ngrams View source on GitHub Create a tensor of n-grams based on data. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.strings.ngrams
tf.strings.ngrams(
data, ngram_width, separator=' ', pad_values=None, padding_width=None,
preserve_short_seque... | tensorflow.strings.ngrams |
tf.strings.reduce_join View source on GitHub Joins all strings into a single string, or joins along an axis.
tf.strings.reduce_join(
inputs, axis=None, keepdims=False, separator='', name=None
)
tf.strings.reduce_join([['abc','123'],
['def','456']]).numpy()
b'abc123def456'
tf.string... | tensorflow.strings.reduce_join |
tf.strings.regex_full_match View source on GitHub Check if the input matches the regex pattern. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.strings.regex_full_match
tf.strings.regex_full_match(
input, pattern, name=None
)
The input is a string tensor o... | tensorflow.strings.regex_full_match |
tf.strings.regex_replace View source on GitHub Replace elements of input matching regex pattern with rewrite. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.regex_replace, tf.compat.v1.strings.regex_replace
tf.strings.regex_replace(
input, pattern, rewrite, ... | tensorflow.strings.regex_replace |
tf.strings.split View source on GitHub Split elements of input based on sep into a RaggedTensor.
tf.strings.split(
input, sep=None, maxsplit=-1, 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 RaggedTensor containing the spl... | tensorflow.strings.split |
tf.strings.strip Strip leading and trailing whitespaces from the Tensor. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.string_strip, tf.compat.v1.strings.strip
tf.strings.strip(
input, name=None
)
Args
input A Tensor of type string. A string Tensor of an... | tensorflow.strings.strip |
tf.strings.substr View source on GitHub Return substrings from Tensor of strings.
tf.strings.substr(
input, pos, len, unit='BYTE', name=None
)
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 l... | tensorflow.strings.substr |
tf.strings.to_hash_bucket View source on GitHub Converts each string in the input Tensor to its hash mod by a number of buckets.
tf.strings.to_hash_bucket(
input, num_buckets, name=None
)
The hash function is deterministic on the content of the string within the process. Note that the hash function may cha... | tensorflow.strings.to_hash_bucket |
tf.strings.to_hash_bucket_fast 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.string_to_hash_bucket_fast, tf.compat.v1.strings.to_hash_bucket_fast
tf.strings.to_hash_bucket_fast(
input... | tensorflow.strings.to_hash_bucket_fast |
tf.strings.to_hash_bucket_strong 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.string_to_hash_bucket_strong, tf.compat.v1.strings.to_hash_bucket_strong
tf.strings.to_hash_bucket_strong(
... | tensorflow.strings.to_hash_bucket_strong |
tf.strings.to_number View source on GitHub Converts each string in the input Tensor to the specified numeric type.
tf.strings.to_number(
input, out_type=tf.dtypes.float32, name=None
)
(Note that int32 overflow results in an error while float overflow results in a rounded value.) Examples:
tf.strings.to_nu... | tensorflow.strings.to_number |
tf.strings.unicode_decode View source on GitHub Decodes each string in input into a sequence of Unicode code points. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.strings.unicode_decode
tf.strings.unicode_decode(
input, input_encoding, errors='replace', rep... | tensorflow.strings.unicode_decode |
tf.strings.unicode_decode_with_offsets View source on GitHub Decodes each string into a sequence of code points with start offsets. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.strings.unicode_decode_with_offsets
tf.strings.unicode_decode_with_offsets(
inp... | tensorflow.strings.unicode_decode_with_offsets |
tf.strings.unicode_encode View source on GitHub Encodes each sequence of Unicode code points in input into a string. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.strings.unicode_encode
tf.strings.unicode_encode(
input, output_encoding, errors='replace', re... | tensorflow.strings.unicode_encode |
tf.strings.unicode_script Determine the script codes of a given tensor of Unicode integer code points. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.strings.unicode_script
tf.strings.unicode_script(
input, name=None
)
This operation converts Unicode code points t... | tensorflow.strings.unicode_script |
tf.strings.unicode_split View source on GitHub Splits each string in input into a sequence of Unicode code points. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.strings.unicode_split
tf.strings.unicode_split(
input, input_encoding, errors='replace', replace... | tensorflow.strings.unicode_split |
tf.strings.unicode_split_with_offsets View source on GitHub Splits each string into a sequence of code points with start offsets. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.strings.unicode_split_with_offsets
tf.strings.unicode_split_with_offsets(
input, ... | tensorflow.strings.unicode_split_with_offsets |
tf.strings.unicode_transcode Transcode the input text from a source encoding to a destination encoding. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.strings.unicode_transcode
tf.strings.unicode_transcode(
input, input_encoding, output_encoding, errors='replace',
... | tensorflow.strings.unicode_transcode |
tf.strings.unsorted_segment_join Joins the elements of inputs based on segment_ids. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.strings.unsorted_segment_join
tf.strings.unsorted_segment_join(
inputs, segment_ids, num_segments, separator='', name=None
)
Computes... | tensorflow.strings.unsorted_segment_join |
tf.strings.upper Converts all lowercase characters into their respective uppercase replacements. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.strings.upper
tf.strings.upper(
input, encoding='', name=None
)
Example:
tf.strings.upper("CamelCase string and ALL CAP... | tensorflow.strings.upper |
Module: tf.summary View source on GitHub Operations for writing summary data, for use in analysis and visualization. The tf.summary module provides APIs for writing summary data. This data can be visualized in TensorBoard, the visualization toolkit that comes with TensorFlow. See the TensorBoard website for more... | tensorflow.summary |
tf.summary.audio View source on GitHub Write an audio summary.
tf.summary.audio(
name, data, sample_rate, step=None, max_outputs=3, encoding=None,
description=None
)
Arguments
name A name for this summary. The summary tag used for TensorBoard will be this name prefixed by any active name scope... | tensorflow.summary.audio |
tf.summary.create_file_writer Creates a summary file writer for the given log directory.
tf.summary.create_file_writer(
logdir, max_queue=None, flush_millis=None, filename_suffix=None, name=None
)
Args
logdir a string specifying the directory in which to write an event file.
max_queue the largest n... | tensorflow.summary.create_file_writer |
tf.summary.create_noop_writer Returns a summary writer that does nothing.
tf.summary.create_noop_writer()
This is useful as a placeholder in code that expects a context manager. | tensorflow.summary.create_noop_writer |
Module: tf.summary.experimental Public API for tf.summary.experimental namespace. Functions get_step(...): Returns the default summary step for the current thread. set_step(...): Sets the default summary step for the current thread. summary_scope(...): Experimental context manager for use when defining a custom summary... | tensorflow.summary.experimental |
tf.summary.experimental.get_step Returns the default summary step for the current thread.
tf.summary.experimental.get_step()
Returns The step set by tf.summary.experimental.set_step() if one has been set, otherwise None. | tensorflow.summary.experimental.get_step |
tf.summary.experimental.set_step Sets the default summary step for the current thread.
tf.summary.experimental.set_step(
step
)
For convenience, this function sets a default value for the step parameter used in summary-writing functions elsewhere in the API so that it need not be explicitly passed in every such i... | tensorflow.summary.experimental.set_step |
tf.summary.experimental.summary_scope Experimental context manager for use when defining a custom summary op.
@tf_contextlib.contextmanager
tf.summary.experimental.summary_scope(
name, default_name='summary', values=None
)
This behaves similarly to tf.name_scope, except that it returns a generated summary tag in ... | tensorflow.summary.experimental.summary_scope |
tf.summary.experimental.write_raw_pb Writes a summary using raw tf.compat.v1.Summary protocol buffers.
tf.summary.experimental.write_raw_pb(
tensor, step=None, name=None
)
Experimental: this exists to support the usage of V1-style manual summary writing (via the construction of a tf.compat.v1.Summary protocol buf... | tensorflow.summary.experimental.write_raw_pb |
tf.summary.flush Forces summary writer to send any buffered data to storage.
tf.summary.flush(
writer=None, name=None
)
This operation blocks until that finishes.
Args
writer The tf.summary.SummaryWriter resource to flush. The thread default will be used if this parameter is None. Otherwise a tf.no_op is... | tensorflow.summary.flush |
tf.summary.histogram View source on GitHub Write a histogram summary.
tf.summary.histogram(
name, data, step=None, buckets=None, description=None
)
Arguments
name A name for this summary. The summary tag used for TensorBoard will be this name prefixed by any active name scopes.
data A Tensor... | tensorflow.summary.histogram |
tf.summary.image View source on GitHub Write an image summary.
tf.summary.image(
name, data, step=None, max_outputs=3, description=None
)
Arguments
name A name for this summary. The summary tag used for TensorBoard will be this name prefixed by any active name scopes.
data A Tensor represent... | tensorflow.summary.image |
tf.summary.record_if Sets summary recording on or off per the provided boolean value.
@tf_contextlib.contextmanager
tf.summary.record_if(
condition
)
The provided value can be a python boolean, a scalar boolean Tensor, or or a callable providing such a value; if a callable is passed it will be invoked on-demand t... | tensorflow.summary.record_if |
tf.summary.scalar View source on GitHub Write a scalar summary.
tf.summary.scalar(
name, data, step=None, description=None
)
Arguments
name A name for this summary. The summary tag used for TensorBoard will be this name prefixed by any active name scopes.
data A real numeric scalar value, co... | tensorflow.summary.scalar |
tf.summary.should_record_summaries Returns boolean Tensor which is true if summaries should be recorded.
tf.summary.should_record_summaries() | tensorflow.summary.should_record_summaries |
tf.summary.SummaryWriter Interface representing a stateful summary writer object. Methods as_default View source
@abc.abstractmethod
@tf_contextlib.contextmanager
as_default(
step=None
)
Returns a context manager that enables summary writing. For convenience, if step is not None, this function also sets a default... | tensorflow.summary.summarywriter |
tf.summary.text View source on GitHub Write a text summary.
tf.summary.text(
name, data, step=None, description=None
)
Arguments
name A name for this summary. The summary tag used for TensorBoard will be this name prefixed by any active name scopes.
data A UTF-8 string tensor value.
step... | tensorflow.summary.text |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.