doc_content
stringlengths
1
386k
doc_id
stringlengths
5
188
tf.math.special.bessel_j1 Computes the Bessel j1 function of x element-wise. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.special.bessel_j1 tf.math.special.bessel_j1( x, name=None ) Modified Bessel function of order 1. tf.math.special.bessel_j1([0.5, 1., 2...
tensorflow.math.special.bessel_j1
tf.math.special.bessel_k0 Computes the Bessel k0 function of x element-wise. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.special.bessel_k0 tf.math.special.bessel_k0( x, name=None ) Modified Bessel function of order 0. It is preferable to use the numericall...
tensorflow.math.special.bessel_k0
tf.math.special.bessel_k0e Computes the Bessel k0e function of x element-wise. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.special.bessel_k0e tf.math.special.bessel_k0e( x, name=None ) Modified Bessel function of order 0. tf.math.special.bessel_k0e([0.5, ...
tensorflow.math.special.bessel_k0e
tf.math.special.bessel_k1 Computes the Bessel k1 function of x element-wise. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.special.bessel_k1 tf.math.special.bessel_k1( x, name=None ) Modified Bessel function of order 1. It is preferable to use the numericall...
tensorflow.math.special.bessel_k1
tf.math.special.bessel_k1e Computes the Bessel k1e function of x element-wise. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.special.bessel_k1e tf.math.special.bessel_k1e( x, name=None ) Modified Bessel function of order 1. tf.math.special.bessel_k1e([0.5, ...
tensorflow.math.special.bessel_k1e
tf.math.special.bessel_y0 Computes the Bessel y0 function of x element-wise. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.special.bessel_y0 tf.math.special.bessel_y0( x, name=None ) Modified Bessel function of order 0. tf.math.special.bessel_y0([0.5, 1., 2...
tensorflow.math.special.bessel_y0
tf.math.special.bessel_y1 Computes the Bessel y1 function of x element-wise. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.special.bessel_y1 tf.math.special.bessel_y1( x, name=None ) Modified Bessel function of order 1. tf.math.special.bessel_y1([0.5, 1., 2...
tensorflow.math.special.bessel_y1
tf.math.special.dawsn Computes Dawson's integral of x element-wise. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.special.dawsn tf.math.special.dawsn( x, name=None ) Dawson's integral is defined as exp(-x**2) times the integral of exp(t**2) from 0 to x, with...
tensorflow.math.special.dawsn
tf.math.special.expint Computes the Exponential integral of x element-wise. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.special.expint tf.math.special.expint( x, name=None ) The Exponential integral is defined as the integral of exp(t) / t from -inf to x, ...
tensorflow.math.special.expint
tf.math.special.fresnel_cos Computes Fresnel's cosine integral of x element-wise. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.special.fresnel_cos tf.math.special.fresnel_cos( x, name=None ) The Fresnel cosine integral is defined as the integral of cos(t^2)...
tensorflow.math.special.fresnel_cos
tf.math.special.fresnel_sin Computes Fresnel's sine integral of x element-wise. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.special.fresnel_sin tf.math.special.fresnel_sin( x, name=None ) The Fresnel sine integral is defined as the integral of sin(t^2) fro...
tensorflow.math.special.fresnel_sin
tf.math.special.spence Computes Spence's integral of x element-wise. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.special.spence tf.math.special.spence( x, name=None ) Spence's integral is defined as the integral of log(t) / (1 - t) from 1 to x, with the do...
tensorflow.math.special.spence
tf.math.sqrt View source on GitHub Computes element-wise square root of the input tensor. View aliases Main aliases tf.sqrt Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.sqrt, tf.compat.v1.sqrt tf.math.sqrt( x, name=None ) Note: This operation does not support in...
tensorflow.math.sqrt
tf.math.square Computes square of x element-wise. View aliases Main aliases tf.square Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.square, tf.compat.v1.square tf.math.square( x, name=None ) I.e., \(y = x * x = x^2\). tf.math.square([-2., 0., 3.]) <tf.Tensor: shape=(3...
tensorflow.math.square
tf.math.squared_difference Returns conj(x - y)(x - y) element-wise. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.squared_difference, tf.compat.v1.squared_difference tf.math.squared_difference( x, y, name=None ) Note: math.squared_difference supports broadc...
tensorflow.math.squared_difference
tf.math.subtract View source on GitHub Returns x - y element-wise. View aliases Main aliases tf.subtract Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.subtract, tf.compat.v1.subtract tf.math.subtract( x, y, name=None ) Note: Subtract supports broadcasting. More a...
tensorflow.math.subtract
tf.math.tan Computes tan of x element-wise. View aliases Main aliases tf.tan Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.tan, tf.compat.v1.tan tf.math.tan( x, name=None ) Given an input tensor, this function computes tangent of every element in the tensor. Input range ...
tensorflow.math.tan
tf.math.tanh Computes hyperbolic tangent of x element-wise. View aliases Main aliases tf.nn.tanh, tf.tanh Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.tanh, tf.compat.v1.nn.tanh, tf.compat.v1.tanh tf.math.tanh( x, name=None ) Given an input tensor, this function compute...
tensorflow.math.tanh
tf.math.top_k View source on GitHub Finds values and indices of the k largest entries for the last dimension. View aliases Main aliases tf.nn.top_k Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.top_k, tf.compat.v1.nn.top_k tf.math.top_k( input, k=1, sorted=True, na...
tensorflow.math.top_k
tf.math.truediv View source on GitHub Divides x / y elementwise (using Python 3 division operator semantics). View aliases Main aliases tf.truediv Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.truediv, tf.compat.v1.truediv tf.math.truediv( x, y, name=None ) Note:...
tensorflow.math.truediv
tf.math.unsorted_segment_max Computes the maximum along segments of a tensor. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.unsorted_segment_max, tf.compat.v1.unsorted_segment_max tf.math.unsorted_segment_max( data, segment_ids, num_segments, name=None ) R...
tensorflow.math.unsorted_segment_max
tf.math.unsorted_segment_mean View source on GitHub Computes the mean along segments of a tensor. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.unsorted_segment_mean, tf.compat.v1.unsorted_segment_mean tf.math.unsorted_segment_mean( data, segment_ids...
tensorflow.math.unsorted_segment_mean
tf.math.unsorted_segment_min Computes the minimum along segments of a tensor. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.unsorted_segment_min, tf.compat.v1.unsorted_segment_min tf.math.unsorted_segment_min( data, segment_ids, num_segments, name=None ) R...
tensorflow.math.unsorted_segment_min
tf.math.unsorted_segment_prod Computes the product along segments of a tensor. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.unsorted_segment_prod, tf.compat.v1.unsorted_segment_prod tf.math.unsorted_segment_prod( data, segment_ids, num_segments, name=None ...
tensorflow.math.unsorted_segment_prod
tf.math.unsorted_segment_sqrt_n View source on GitHub Computes the sum along segments of a tensor divided by the sqrt(N). View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.unsorted_segment_sqrt_n, tf.compat.v1.unsorted_segment_sqrt_n tf.math.unsorted_segment...
tensorflow.math.unsorted_segment_sqrt_n
tf.math.unsorted_segment_sum Computes the sum along segments of a tensor. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.unsorted_segment_sum, tf.compat.v1.unsorted_segment_sum tf.math.unsorted_segment_sum( data, segment_ids, num_segments, name=None ) Read ...
tensorflow.math.unsorted_segment_sum
tf.math.xdivy Returns 0 if x == 0, and x / y otherwise, elementwise. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.xdivy tf.math.xdivy( x, y, name=None ) Args x A Tensor. Must be one of the following types: half, float32, float64, complex64, complex...
tensorflow.math.xdivy
tf.math.xlog1py Compute x * log1p(y). View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.xlog1py tf.math.xlog1py( x, y, name=None ) Given x and y, compute x * log1p(y). This function safely returns zero when x = 0, no matter what the value of y is. Example: tf.m...
tensorflow.math.xlog1py
tf.math.xlogy Returns 0 if x == 0, and x * log(y) otherwise, elementwise. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.xlogy tf.math.xlogy( x, y, name=None ) Args x A Tensor. Must be one of the following types: half, float32, float64, complex64, co...
tensorflow.math.xlogy
tf.math.zero_fraction View source on GitHub Returns the fraction of zeros in value. View aliases Main aliases tf.nn.zero_fraction Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.zero_fraction, tf.compat.v1.nn.zero_fraction tf.math.zero_fraction( value, name=None ) I...
tensorflow.math.zero_fraction
tf.math.zeta Compute the Hurwitz zeta function \(\zeta(x, q)\). View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.zeta, tf.compat.v1.zeta tf.math.zeta( x, q, name=None ) The Hurwitz zeta function is defined as: \(\zeta(x, q) = \sum_{n=0}^{\infty} (q + n)^{-x}\...
tensorflow.math.zeta
tf.meshgrid View source on GitHub Broadcasts parameters for evaluation on an N-D grid. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.meshgrid tf.meshgrid( *args, **kwargs ) Given N one-dimensional coordinate arrays *args, returns a list outputs of N-D coor...
tensorflow.meshgrid
Module: tf.mixed_precision Public API for tf.mixed_precision namespace. Modules experimental module: Public API for tf.mixed_precision.experimental namespace.
tensorflow.mixed_precision
Module: tf.mixed_precision.experimental Public API for tf.mixed_precision.experimental namespace. Classes class DynamicLossScale: Loss scale that dynamically adjusts itself. class FixedLossScale: Loss scale with a fixed value. class LossScale: Base class for all TF1 loss scales.
tensorflow.mixed_precision.experimental
tf.mixed_precision.experimental.DynamicLossScale Loss scale that dynamically adjusts itself. Inherits From: LossScale View aliases Main aliases tf.train.experimental.DynamicLossScale Compat aliases for migration See Migration guide for more details. tf.compat.v1.mixed_precision.DynamicLossScale, tf.compat.v1.mixed_p...
tensorflow.mixed_precision.experimental.dynamiclossscale
tf.mixed_precision.experimental.FixedLossScale Loss scale with a fixed value. Inherits From: LossScale View aliases Main aliases tf.train.experimental.FixedLossScale Compat aliases for migration See Migration guide for more details. tf.compat.v1.mixed_precision.FixedLossScale, tf.compat.v1.mixed_precision.experiment...
tensorflow.mixed_precision.experimental.fixedlossscale
tf.mixed_precision.experimental.LossScale Base class for all TF1 loss scales. View aliases Main aliases tf.train.experimental.LossScale Compat aliases for migration See Migration guide for more details. tf.compat.v1.mixed_precision.LossScale, tf.compat.v1.mixed_precision.experimental.LossScale, tf.compat.v1.train.ex...
tensorflow.mixed_precision.experimental.lossscale
Module: tf.mlir Public API for tf.mlir namespace. Modules experimental module: Public API for tf.mlir.experimental namespace.
tensorflow.mlir
Module: tf.mlir.experimental Public API for tf.mlir.experimental namespace. Functions convert_function(...): Import a ConcreteFunction and convert it to a textual MLIR module. convert_graph_def(...): Import a GraphDef and convert it to a textual MLIR module.
tensorflow.mlir.experimental
tf.mlir.experimental.convert_function Import a ConcreteFunction and convert it to a textual MLIR module. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.mlir.experimental.convert_function tf.mlir.experimental.convert_function( concrete_function, pass_pipeline='tf-st...
tensorflow.mlir.experimental.convert_function
tf.mlir.experimental.convert_graph_def Import a GraphDef and convert it to a textual MLIR module. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.mlir.experimental.convert_graph_def tf.mlir.experimental.convert_graph_def( graph_def, pass_pipeline='tf-standard-pipeli...
tensorflow.mlir.experimental.convert_graph_def
tf.Module View source on GitHub Base neural network module class. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.Module tf.Module( name=None ) A module is a named container for tf.Variables, other tf.Modules and functions which apply to user input. For exam...
tensorflow.module
tf.name_scope View source on GitHub A context manager for use when defining a Python op. tf.name_scope( name ) This context manager pushes a name scope, which will make the name of all operations added within it have a prefix. For example, to define a new Python op called my_op: def my_op(a, b, c, name=Non...
tensorflow.name_scope
Module: tf.nest Public API for tf.nest namespace. Functions assert_same_structure(...): Asserts that two structures are nested in the same way. flatten(...): Returns a flat list from a given nested structure. is_nested(...): Returns true if its input is a collections.abc.Sequence (except strings). map_structure(...): A...
tensorflow.nest
tf.nest.assert_same_structure View source on GitHub Asserts that two structures are nested in the same way. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.nest.assert_same_structure tf.nest.assert_same_structure( nest1, nest2, check_types=True, expand_compos...
tensorflow.nest.assert_same_structure
tf.nest.flatten View source on GitHub Returns a flat list from a given nested structure. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.nest.flatten tf.nest.flatten( structure, expand_composites=False ) If nest is not a structure , tuple (or a namedtuple), ...
tensorflow.nest.flatten
tf.nest.is_nested View source on GitHub Returns true if its input is a collections.abc.Sequence (except strings). View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.nest.is_nested tf.nest.is_nested( seq ) Args seq an input sequence. Returns T...
tensorflow.nest.is_nested
tf.nest.map_structure View source on GitHub Applies func to each entry in structure and returns a new structure. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.nest.map_structure tf.nest.map_structure( func, *structure, **kwargs ) Applies func(x[0], x[1], ....
tensorflow.nest.map_structure
tf.nest.pack_sequence_as View source on GitHub Returns a given flattened sequence packed into a given structure. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.nest.pack_sequence_as tf.nest.pack_sequence_as( structure, flat_sequence, expand_composites=False ...
tensorflow.nest.pack_sequence_as
Module: tf.nn Wrappers for primitive Neural Net (NN) Operations. Classes class RNNCellDeviceWrapper: Operator that ensures an RNNCell runs on a particular device. class RNNCellDropoutWrapper: Operator adding dropout to inputs and outputs of the given cell. class RNNCellResidualWrapper: RNNCell wrapper that ensures cell...
tensorflow.nn
tf.nn.atrous_conv2d View source on GitHub Atrous convolution (a.k.a. convolution with holes or dilated convolution). View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.nn.atrous_conv2d tf.nn.atrous_conv2d( value, filters, rate, padding, name=None ) This functio...
tensorflow.nn.atrous_conv2d
tf.nn.atrous_conv2d_transpose View source on GitHub The transpose of atrous_conv2d. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.nn.atrous_conv2d_transpose tf.nn.atrous_conv2d_transpose( value, filters, output_shape, rate, padding, name=None ) This operat...
tensorflow.nn.atrous_conv2d_transpose
tf.nn.avg_pool View source on GitHub Performs the avg pooling on the input. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.nn.avg_pool_v2 tf.nn.avg_pool( input, ksize, strides, padding, data_format=None, name=None ) Each entry in output is the mean of the c...
tensorflow.nn.avg_pool
tf.nn.avg_pool1d View source on GitHub Performs the average pooling on the input. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.nn.avg_pool1d tf.nn.avg_pool1d( input, ksize, strides, padding, data_format='NWC', name=None ) Each entry in output is the mean ...
tensorflow.nn.avg_pool1d
tf.nn.avg_pool2d Performs the average pooling on the input. tf.nn.avg_pool2d( input, ksize, strides, padding, data_format='NHWC', name=None ) Each entry in output is the mean of the corresponding size ksize window in value. Args input A 4-D Tensor of shape [batch, height, width, channels] and type float3...
tensorflow.nn.avg_pool2d
tf.nn.avg_pool3d View source on GitHub Performs the average pooling on the input. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.nn.avg_pool3d tf.nn.avg_pool3d( input, ksize, strides, padding, data_format='NDHWC', name=None ) Each entry in output is the mea...
tensorflow.nn.avg_pool3d
tf.nn.batch_normalization View source on GitHub Batch normalization. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.nn.batch_normalization tf.nn.batch_normalization( x, mean, variance, offset, scale, variance_epsilon, name=None ) Normalizes a tensor by me...
tensorflow.nn.batch_normalization
tf.nn.batch_norm_with_global_normalization View source on GitHub Batch normalization. tf.nn.batch_norm_with_global_normalization( input, mean, variance, beta, gamma, variance_epsilon, scale_after_normalization, name=None ) This op is deprecated. See tf.nn.batch_normalization. Args input A 4D i...
tensorflow.nn.batch_norm_with_global_normalization
tf.nn.bias_add View source on GitHub Adds bias to value. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.nn.bias_add tf.nn.bias_add( value, bias, data_format=None, name=None ) This is (mostly) a special case of tf.add where bias is restricted to 1-D. Broadca...
tensorflow.nn.bias_add
tf.nn.collapse_repeated View source on GitHub Merge repeated labels into single labels. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.nn.collapse_repeated tf.nn.collapse_repeated( labels, seq_length, name=None ) Args labels Tensor of shape [batch,...
tensorflow.nn.collapse_repeated
tf.nn.compute_accidental_hits View source on GitHub Compute the position ids in sampled_candidates matching true_classes. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.nn.compute_accidental_hits tf.nn.compute_accidental_hits( true_classes, sampled_candidate...
tensorflow.nn.compute_accidental_hits
tf.nn.compute_average_loss View source on GitHub Scales per-example losses with sample_weights and computes their average. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.nn.compute_average_loss tf.nn.compute_average_loss( per_example_loss, sample_weight=None...
tensorflow.nn.compute_average_loss
tf.nn.conv1d View source on GitHub Computes a 1-D convolution given 3-D input and filter tensors. tf.nn.conv1d( input, filters, stride, padding, data_format='NWC', dilations=None, name=None ) Given an input tensor of shape batch_shape + [in_width, in_channels] if data_format is "NWC", or batch_shape ...
tensorflow.nn.conv1d
tf.nn.conv1d_transpose View source on GitHub The transpose of conv1d. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.nn.conv1d_transpose tf.nn.conv1d_transpose( input, filters, output_shape, strides, padding='SAME', data_format='NWC', dilations=None, nam...
tensorflow.nn.conv1d_transpose
tf.nn.conv2d View source on GitHub Computes a 2-D convolution given input and 4-D filters tensors. tf.nn.conv2d( input, filters, strides, padding, data_format='NHWC', dilations=None, name=None ) The input tensor may have rank 4 or higher, where shape dimensions [:-3] are considered batch dimensions (ba...
tensorflow.nn.conv2d
tf.nn.conv2d_transpose View source on GitHub The transpose of conv2d. tf.nn.conv2d_transpose( input, filters, output_shape, strides, padding='SAME', data_format='NHWC', dilations=None, name=None ) This operation is sometimes called "deconvolution" after (Zeiler et al., 2010), but is really the transpos...
tensorflow.nn.conv2d_transpose
tf.nn.conv3d View source on GitHub Computes a 3-D convolution given 5-D input and filters tensors. tf.nn.conv3d( input, filters, strides, padding, data_format='NDHWC', dilations=None, name=None ) In signal processing, cross-correlation is a measure of similarity of two waveforms as a function of a time...
tensorflow.nn.conv3d
tf.nn.conv3d_transpose View source on GitHub The transpose of conv3d. tf.nn.conv3d_transpose( input, filters, output_shape, strides, padding='SAME', data_format='NDHWC', dilations=None, name=None ) This operation is sometimes called "deconvolution" after (Zeiler et al., 2010), but is really the transpo...
tensorflow.nn.conv3d_transpose
tf.nn.convolution View source on GitHub Computes sums of N-D convolutions (actually cross-correlation). tf.nn.convolution( input, filters, strides=None, padding='VALID', data_format=None, dilations=None, name=None ) This also supports either output striding via the optional strides parameter or atrous ...
tensorflow.nn.convolution
tf.nn.conv_transpose View source on GitHub The transpose of convolution. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.nn.conv_transpose tf.nn.conv_transpose( input, filters, output_shape, strides, padding='SAME', data_format=None, dilations=None, name=...
tensorflow.nn.conv_transpose
tf.nn.crelu View source on GitHub Computes Concatenated ReLU. tf.nn.crelu( features, axis=-1, name=None ) Concatenates a ReLU which selects only the positive part of the activation with a ReLU which selects only the negative part of the activation. Note that as a result this non-linearity doubles the depth...
tensorflow.nn.crelu
tf.nn.ctc_beam_search_decoder View source on GitHub Performs beam search decoding on the logits given in input. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.nn.ctc_beam_search_decoder_v2 tf.nn.ctc_beam_search_decoder( inputs, sequence_length, beam_width=10...
tensorflow.nn.ctc_beam_search_decoder
tf.nn.ctc_greedy_decoder View source on GitHub Performs greedy decoding on the logits given in input (best path). View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.nn.ctc_greedy_decoder tf.nn.ctc_greedy_decoder( inputs, sequence_length, merge_repeated=True ) ...
tensorflow.nn.ctc_greedy_decoder
tf.nn.ctc_loss View source on GitHub Computes CTC (Connectionist Temporal Classification) loss. tf.nn.ctc_loss( labels, logits, label_length, logit_length, logits_time_major=True, unique=None, blank_index=None, name=None ) This op implements the CTC loss as presented in (Graves et al., 2006). Notes: S...
tensorflow.nn.ctc_loss
tf.nn.ctc_unique_labels View source on GitHub Get unique labels and indices for batched labels for tf.nn.ctc_loss. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.nn.ctc_unique_labels tf.nn.ctc_unique_labels( labels, name=None ) For use with tf.nn.ctc_loss o...
tensorflow.nn.ctc_unique_labels
tf.nn.depthwise_conv2d View source on GitHub Depthwise 2-D convolution. tf.nn.depthwise_conv2d( input, filter, strides, padding, data_format=None, dilations=None, name=None ) Given a 4D input tensor ('NHWC' or 'NCHW' data formats) and a filter tensor of shape [filter_height, filter_width, in_channels, chan...
tensorflow.nn.depthwise_conv2d
tf.nn.depthwise_conv2d_backprop_filter View source on GitHub Computes the gradients of depthwise convolution with respect to the filter. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.nn.depthwise_conv2d_backprop_filter, tf.compat.v1.nn.depthwise_conv2d_native_bac...
tensorflow.nn.depthwise_conv2d_backprop_filter
tf.nn.depthwise_conv2d_backprop_input View source on GitHub Computes the gradients of depthwise convolution with respect to the input. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.nn.depthwise_conv2d_backprop_input, tf.compat.v1.nn.depthwise_conv2d_native_backpr...
tensorflow.nn.depthwise_conv2d_backprop_input
tf.nn.depth_to_space View source on GitHub DepthToSpace for tensors of type T. tf.nn.depth_to_space( input, block_size, data_format='NHWC', name=None ) Rearranges data from depth into blocks of spatial data. This is the reverse transformation of SpaceToDepth. More specifically, this op outputs a copy of th...
tensorflow.nn.depth_to_space
tf.nn.dilation2d View source on GitHub Computes the grayscale dilation of 4-D input and 3-D filters tensors. tf.nn.dilation2d( input, filters, strides, padding, data_format, dilations, name=None ) The input tensor has shape [batch, in_height, in_width, depth] and the filters tensor has shape [filter_height...
tensorflow.nn.dilation2d
tf.nn.dropout View source on GitHub Computes dropout: randomly sets elements to zero to prevent overfitting. tf.nn.dropout( x, rate, noise_shape=None, seed=None, name=None ) Note: The behavior of dropout has changed between TensorFlow 1.x and 2.x. When converting 1.x code, please use named arguments to en...
tensorflow.nn.dropout
tf.nn.elu Computes exponential linear: exp(features) - 1 if < 0, features otherwise. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.nn.elu tf.nn.elu( features, name=None ) See Fast and Accurate Deep Network Learning by Exponential Linear Units (ELUs) Args ...
tensorflow.nn.elu
tf.nn.embedding_lookup View source on GitHub Looks up embeddings for the given ids from a list of tensors. tf.nn.embedding_lookup( params, ids, max_norm=None, name=None ) This function is used to perform parallel lookups on the list of tensors in params. It is a generalization of tf.gather, where params is...
tensorflow.nn.embedding_lookup
tf.nn.embedding_lookup_sparse View source on GitHub Looks up embeddings for the given ids and weights from a list of tensors. tf.nn.embedding_lookup_sparse( params, sp_ids, sp_weights, combiner=None, max_norm=None, name=None ) This op assumes that there is at least one id for each row in the dense tensor r...
tensorflow.nn.embedding_lookup_sparse
tf.nn.erosion2d View source on GitHub Computes the grayscale erosion of 4-D value and 3-D filters tensors. tf.nn.erosion2d( value, filters, strides, padding, data_format, dilations, name=None ) The value tensor has shape [batch, in_height, in_width, depth] and the filters tensor has shape [filters_height, ...
tensorflow.nn.erosion2d
tf.nn.fractional_avg_pool View source on GitHub Performs fractional average pooling on the input. tf.nn.fractional_avg_pool( value, pooling_ratio, pseudo_random=False, overlapping=False, seed=0, name=None ) Fractional average pooling is similar to Fractional max pooling in the pooling region generation ste...
tensorflow.nn.fractional_avg_pool
tf.nn.fractional_max_pool View source on GitHub Performs fractional max pooling on the input. tf.nn.fractional_max_pool( value, pooling_ratio, pseudo_random=False, overlapping=False, seed=0, name=None ) Fractional max pooling is slightly different than regular max pooling. In regular max pooling, you downs...
tensorflow.nn.fractional_max_pool
tf.nn.gelu Compute the Gaussian Error Linear Unit (GELU) activation function. tf.nn.gelu( features, approximate=False, name=None ) Gaussian error linear unit (GELU) computes x * P(X <= x), where P(X) ~ N(0, 1). The (GELU) nonlinearity weights inputs by their value, rather than gates inputs by their sign as in ReL...
tensorflow.nn.gelu
tf.nn.isotonic_regression Solves isotonic regression problems along the given axis. tf.nn.isotonic_regression( inputs, decreasing=True, axis=-1 ) For each vector x, the problem solved is $$\argmin_{y_1 >= y_2 >= ... >= y_n} \sum_i (x_i - y_i)^2.$$ As the solution is component-wise constant, a second tensor is...
tensorflow.nn.isotonic_regression
tf.nn.l2_loss L2 Loss. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.nn.l2_loss tf.nn.l2_loss( t, name=None ) Computes half the L2 norm of a tensor without the sqrt: output = sum(t ** 2) / 2 Args t A Tensor. Must be one of the following types: half, bfl...
tensorflow.nn.l2_loss
tf.nn.leaky_relu View source on GitHub Compute the Leaky ReLU activation function. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.nn.leaky_relu tf.nn.leaky_relu( features, alpha=0.2, name=None ) Source: Rectifier Nonlinearities Improve Neural Network Acoust...
tensorflow.nn.leaky_relu
tf.nn.local_response_normalization Local Response Normalization. View aliases Main aliases tf.nn.lrn Compat aliases for migration See Migration guide for more details. tf.compat.v1.nn.local_response_normalization, tf.compat.v1.nn.lrn tf.nn.local_response_normalization( input, depth_radius=5, bias=1, alpha=1, b...
tensorflow.nn.local_response_normalization
tf.nn.log_poisson_loss View source on GitHub Computes log Poisson loss given log_input. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.nn.log_poisson_loss tf.nn.log_poisson_loss( targets, log_input, compute_full_loss=False, name=None ) Gives the log-likelih...
tensorflow.nn.log_poisson_loss
tf.nn.log_softmax View source on GitHub Computes log softmax activations. View aliases Main aliases tf.math.log_softmax tf.nn.log_softmax( logits, axis=None, name=None ) For each batch i and class j we have logsoftmax = logits - log(reduce_sum(exp(logits), axis)) Args logits A non-empty Tenso...
tensorflow.nn.log_softmax
tf.nn.max_pool View source on GitHub Performs the max pooling on the input. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.nn.max_pool_v2 tf.nn.max_pool( input, ksize, strides, padding, data_format=None, name=None ) Args input Tensor of rank N+2, o...
tensorflow.nn.max_pool
tf.nn.max_pool1d View source on GitHub Performs the max pooling on the input. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.nn.max_pool1d tf.nn.max_pool1d( input, ksize, strides, padding, data_format='NWC', name=None ) Note internally this op reshapes and ...
tensorflow.nn.max_pool1d
tf.nn.max_pool2d View source on GitHub Performs the max pooling on the input. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.nn.max_pool2d tf.nn.max_pool2d( input, ksize, strides, padding, data_format='NHWC', name=None ) Args input A 4-D Tensor of ...
tensorflow.nn.max_pool2d
tf.nn.max_pool3d View source on GitHub Performs the max pooling on the input. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.nn.max_pool3d tf.nn.max_pool3d( input, ksize, strides, padding, data_format='NDHWC', name=None ) Args input A 5-D Tensor of...
tensorflow.nn.max_pool3d
tf.nn.max_pool_with_argmax View source on GitHub Performs max pooling on the input and outputs both max values and indices. tf.nn.max_pool_with_argmax( input, ksize, strides, padding, data_format='NHWC', output_dtype=tf.dtypes.int64, include_batch_in_index=False, name=None ) The indices in argmax are f...
tensorflow.nn.max_pool_with_argmax
tf.nn.moments View source on GitHub Calculates the mean and variance of x. tf.nn.moments( x, axes, shift=None, keepdims=False, name=None ) The mean and variance are calculated by aggregating the contents of x across axes. If x is 1-D and axes = [0] this is just the mean and variance of a vector. Note: shi...
tensorflow.nn.moments