doc_content stringlengths 1 386k | doc_id stringlengths 5 188 |
|---|---|
tf.math.argmin View source on GitHub Returns the index with the smallest value across axes of a tensor. View aliases Main aliases
tf.argmin
tf.math.argmin(
input, axis=None, output_type=tf.dtypes.int64, name=None
)
Returns the smallest index in case of ties.
Args
input A Tensor. Must be one of... | tensorflow.math.argmin |
tf.math.asin Computes the trignometric inverse sine of x element-wise. View aliases Main aliases
tf.asin Compat aliases for migration See Migration guide for more details. tf.compat.v1.asin, tf.compat.v1.math.asin
tf.math.asin(
x, name=None
)
The tf.math.asin operation returns the inverse of tf.math.sin, such... | tensorflow.math.asin |
tf.math.asinh Computes inverse hyperbolic sine of x element-wise. View aliases Main aliases
tf.asinh Compat aliases for migration See Migration guide for more details. tf.compat.v1.asinh, tf.compat.v1.math.asinh
tf.math.asinh(
x, name=None
)
Given an input tensor, this function computes inverse hyperbolic sin... | tensorflow.math.asinh |
tf.math.atan Computes the trignometric inverse tangent of x element-wise. View aliases Main aliases
tf.atan Compat aliases for migration See Migration guide for more details. tf.compat.v1.atan, tf.compat.v1.math.atan
tf.math.atan(
x, name=None
)
The tf.math.atan operation returns the inverse of tf.math.tan, s... | tensorflow.math.atan |
tf.math.atan2 Computes arctangent of y/x element-wise, respecting signs of the arguments. View aliases Main aliases
tf.atan2 Compat aliases for migration See Migration guide for more details. tf.compat.v1.atan2, tf.compat.v1.math.atan2
tf.math.atan2(
y, x, name=None
)
This is the angle ( \theta \in [-\pi, \... | tensorflow.math.atan2 |
tf.math.atanh Computes inverse hyperbolic tangent of x element-wise. View aliases Main aliases
tf.atanh Compat aliases for migration See Migration guide for more details. tf.compat.v1.atanh, tf.compat.v1.math.atanh
tf.math.atanh(
x, name=None
)
Given an input tensor, this function computes inverse hyperbolic ... | tensorflow.math.atanh |
tf.math.bessel_i0 View source on GitHub Computes the Bessel i0 function of x element-wise. View aliases Main aliases
tf.math.special.bessel_i0 Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.bessel_i0, tf.compat.v1.math.special.bessel_i0
tf.math.bessel_i0(
x, name=No... | tensorflow.math.bessel_i0 |
tf.math.bessel_i0e View source on GitHub Computes the Bessel i0e function of x element-wise. View aliases Main aliases
tf.math.special.bessel_i0e Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.bessel_i0e, tf.compat.v1.math.special.bessel_i0e
tf.math.bessel_i0e(
x, n... | tensorflow.math.bessel_i0e |
tf.math.bessel_i1 View source on GitHub Computes the Bessel i1 function of x element-wise. View aliases Main aliases
tf.math.special.bessel_i1 Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.bessel_i1, tf.compat.v1.math.special.bessel_i1
tf.math.bessel_i1(
x, name=No... | tensorflow.math.bessel_i1 |
tf.math.bessel_i1e View source on GitHub Computes the Bessel i1e function of x element-wise. View aliases Main aliases
tf.math.special.bessel_i1e Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.bessel_i1e, tf.compat.v1.math.special.bessel_i1e
tf.math.bessel_i1e(
x, n... | tensorflow.math.bessel_i1e |
tf.math.betainc Compute the regularized incomplete beta integral \(I_x(a, b)\). View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.betainc, tf.compat.v1.math.betainc
tf.math.betainc(
a, b, x, name=None
)
The regularized incomplete beta integral is defined as: \(I_x(... | tensorflow.math.betainc |
tf.math.bincount View source on GitHub Counts the number of occurrences of each value in an integer array.
tf.math.bincount(
arr, weights=None, minlength=None, maxlength=None, dtype=tf.dtypes.int32,
name=None, axis=None, binary_output=False
)
If minlength and maxlength are not given, returns a vector w... | tensorflow.math.bincount |
tf.math.ceil View source on GitHub Return the ceiling of the input, element-wise. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.ceil, tf.compat.v1.math.ceil
tf.math.ceil(
x, name=None
)
For example:
tf.math.ceil([-1.7, -1.5, -0.2, 0.2, 1.5, 1.7, 2.0])
<tf... | tensorflow.math.ceil |
tf.math.confusion_matrix View source on GitHub Computes the confusion matrix from predictions and labels.
tf.math.confusion_matrix(
labels, predictions, num_classes=None, weights=None, dtype=tf.dtypes.int32,
name=None
)
The matrix columns represent the prediction labels and the rows represent the real ... | tensorflow.math.confusion_matrix |
tf.math.conj View source on GitHub Returns the complex conjugate of a complex number. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.conj, tf.compat.v1.math.conj
tf.math.conj(
x, name=None
)
Given a tensor x of complex numbers, this operation returns a te... | tensorflow.math.conj |
tf.math.cos Computes cos of x element-wise. View aliases Main aliases
tf.cos Compat aliases for migration See Migration guide for more details. tf.compat.v1.cos, tf.compat.v1.math.cos
tf.math.cos(
x, name=None
)
Given an input tensor, this function computes cosine of every element in the tensor. Input range i... | tensorflow.math.cos |
tf.math.cosh Computes hyperbolic cosine of x element-wise. View aliases Main aliases
tf.cosh Compat aliases for migration See Migration guide for more details. tf.compat.v1.cosh, tf.compat.v1.math.cosh
tf.math.cosh(
x, name=None
)
Given an input tensor, this function computes hyperbolic cosine of every elemen... | tensorflow.math.cosh |
tf.math.count_nonzero View source on GitHub Computes number of nonzero elements across dimensions of a tensor.
tf.math.count_nonzero(
input, axis=None, keepdims=None, dtype=tf.dtypes.int64, name=None
)
Reduces input along the dimensions given in axis. Unless keepdims is true, the rank of the tensor is redu... | tensorflow.math.count_nonzero |
tf.math.cumprod View source on GitHub Compute the cumulative product of the tensor x along axis. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.cumprod, tf.compat.v1.math.cumprod
tf.math.cumprod(
x, axis=0, exclusive=False, reverse=False, name=None
)
By def... | tensorflow.math.cumprod |
tf.math.cumsum View source on GitHub Compute the cumulative sum of the tensor x along axis. View aliases Main aliases
tf.cumsum Compat aliases for migration See Migration guide for more details. tf.compat.v1.cumsum, tf.compat.v1.math.cumsum
tf.math.cumsum(
x, axis=0, exclusive=False, reverse=False, name... | tensorflow.math.cumsum |
tf.math.cumulative_logsumexp View source on GitHub Compute the cumulative log-sum-exp of the tensor x along axis. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.math.cumulative_logsumexp
tf.math.cumulative_logsumexp(
x, axis=0, exclusive=False, reverse=False... | tensorflow.math.cumulative_logsumexp |
tf.math.digamma Computes Psi, the derivative of Lgamma (the log of the absolute value of View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.digamma, tf.compat.v1.math.digamma
tf.math.digamma(
x, name=None
)
Gamma(x)), element-wise.
Args
x A Tensor. Must be on... | tensorflow.math.digamma |
tf.math.divide View source on GitHub Computes Python style division of x by y. View aliases Main aliases
tf.divide Compat aliases for migration See Migration guide for more details. tf.compat.v1.divide, tf.compat.v1.math.divide
tf.math.divide(
x, y, name=None
)
For example:
x = tf.constant([16, 12, 11... | tensorflow.math.divide |
tf.math.divide_no_nan View source on GitHub Computes a safe divide which returns 0 if the y is zero. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.div_no_nan, tf.compat.v1.math.divide_no_nan
tf.math.divide_no_nan(
x, y, name=None
)
Args
x A Tensor... | tensorflow.math.divide_no_nan |
tf.math.equal View source on GitHub Returns the truth value of (x == y) element-wise. View aliases Main aliases
tf.equal Compat aliases for migration See Migration guide for more details. tf.compat.v1.equal, tf.compat.v1.math.equal
tf.math.equal(
x, y, name=None
)
Performs a broadcast with the argument... | tensorflow.math.equal |
tf.math.erf Computes the Gauss error function of x element-wise. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.erf, tf.compat.v1.math.erf
tf.math.erf(
x, name=None
)
Args
x A Tensor. Must be one of the following types: bfloat16, half, float32, float64. ... | tensorflow.math.erf |
tf.math.erfc Computes the complementary error function of x element-wise. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.erfc, tf.compat.v1.math.erfc
tf.math.erfc(
x, name=None
)
Args
x A Tensor. Must be one of the following types: bfloat16, half, float32... | tensorflow.math.erfc |
tf.math.erfcinv Computes the inverse of complementary error function. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.math.erfcinv
tf.math.erfcinv(
x, name=None
)
Given x, compute the inverse complementary error function of x. This function is the inverse of tf.mat... | tensorflow.math.erfcinv |
tf.math.erfinv Compute inverse error function. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.math.erfinv
tf.math.erfinv(
x, name=None
)
Given x, compute the inverse error function of x. This function is the inverse of tf.math.erf.
Args
x Tensor with type... | tensorflow.math.erfinv |
tf.math.exp View source on GitHub Computes exponential of x element-wise. \(y = e^x\). View aliases Main aliases
tf.exp Compat aliases for migration See Migration guide for more details. tf.compat.v1.exp, tf.compat.v1.math.exp
tf.math.exp(
x, name=None
)
This function computes the exponential of the ... | tensorflow.math.exp |
tf.math.expm1 Computes exp(x) - 1 element-wise. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.expm1, tf.compat.v1.math.expm1
tf.math.expm1(
x, name=None
)
i.e. exp(x) - 1 or e^(x) - 1, where x is the input tensor. e denotes Euler's number and is approximately equ... | tensorflow.math.expm1 |
tf.math.floor View source on GitHub Returns element-wise largest integer not greater than x. View aliases Main aliases
tf.floor Compat aliases for migration See Migration guide for more details. tf.compat.v1.floor, tf.compat.v1.math.floor
tf.math.floor(
x, name=None
)
Both input range is (-inf, inf) an... | tensorflow.math.floor |
tf.math.floordiv View source on GitHub Divides x / y elementwise, rounding toward the most negative integer. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.floordiv, tf.compat.v1.math.floordiv
tf.math.floordiv(
x, y, name=None
)
The same as tf.compat.v1.div... | tensorflow.math.floordiv |
tf.math.floormod Returns element-wise remainder of division. When x < 0 xor y < 0 is View aliases Main aliases
tf.math.mod Compat aliases for migration See Migration guide for more details. tf.compat.v1.floormod, tf.compat.v1.math.floormod, tf.compat.v1.math.mod, tf.compat.v1.mod
tf.math.floormod(
x, y, name=N... | tensorflow.math.floormod |
tf.math.greater Returns the truth value of (x > y) element-wise. View aliases Main aliases
tf.greater Compat aliases for migration See Migration guide for more details. tf.compat.v1.greater, tf.compat.v1.math.greater
tf.math.greater(
x, y, name=None
)
Note: math.greater supports broadcasting. More about broa... | tensorflow.math.greater |
tf.math.greater_equal Returns the truth value of (x >= y) element-wise. View aliases Main aliases
tf.greater_equal Compat aliases for migration See Migration guide for more details. tf.compat.v1.greater_equal, tf.compat.v1.math.greater_equal
tf.math.greater_equal(
x, y, name=None
)
Note: math.greater_equal s... | tensorflow.math.greater_equal |
tf.math.igamma Compute the lower regularized incomplete Gamma function P(a, x). View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.igamma, tf.compat.v1.math.igamma
tf.math.igamma(
a, x, name=None
)
The lower regularized incomplete Gamma function is defined as: \(P(a... | tensorflow.math.igamma |
tf.math.igammac Compute the upper regularized incomplete Gamma function Q(a, x). View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.igammac, tf.compat.v1.math.igammac
tf.math.igammac(
a, x, name=None
)
The upper regularized incomplete Gamma function is defined as: \... | tensorflow.math.igammac |
tf.math.imag View source on GitHub Returns the imaginary part of a complex (or real) tensor. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.imag, tf.compat.v1.math.imag
tf.math.imag(
input, name=None
)
Given a tensor input, this operation returns a tensor o... | tensorflow.math.imag |
tf.math.invert_permutation Computes the inverse permutation of a tensor. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.invert_permutation, tf.compat.v1.math.invert_permutation
tf.math.invert_permutation(
x, name=None
)
This operation computes the inverse of an in... | tensorflow.math.invert_permutation |
tf.math.in_top_k View source on GitHub Says whether the targets are in the top K predictions. View aliases Main aliases
tf.nn.in_top_k
tf.math.in_top_k(
targets, predictions, k, name=None
)
This outputs a batch_size bool array, an entry out[i] is true if the prediction for the target class is finite ... | tensorflow.math.in_top_k |
tf.math.is_finite Returns which elements of x are finite. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.debugging.is_finite, tf.compat.v1.is_finite, tf.compat.v1.math.is_finite
tf.math.is_finite(
x, name=None
)
Example: x = tf.constant([5.0, 4.8, 6.8, np.inf, np.... | tensorflow.math.is_finite |
tf.math.is_inf Returns which elements of x are Inf. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.debugging.is_inf, tf.compat.v1.is_inf, tf.compat.v1.math.is_inf
tf.math.is_inf(
x, name=None
)
Example: x = tf.constant([5.0, np.inf, 6.8, np.inf])
tf.math.is_inf(x)... | tensorflow.math.is_inf |
tf.math.is_nan Returns which elements of x are NaN. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.debugging.is_nan, tf.compat.v1.is_nan, tf.compat.v1.math.is_nan
tf.math.is_nan(
x, name=None
)
Example: x = tf.constant([5.0, np.nan, 6.8, np.nan, np.inf])
tf.math.i... | tensorflow.math.is_nan |
tf.math.is_non_decreasing View source on GitHub Returns True if x is non-decreasing. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.debugging.is_non_decreasing, tf.compat.v1.is_non_decreasing, tf.compat.v1.math.is_non_decreasing
tf.math.is_non_decreasing(
x,... | tensorflow.math.is_non_decreasing |
tf.math.is_strictly_increasing View source on GitHub Returns True if x is strictly increasing. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.debugging.is_strictly_increasing, tf.compat.v1.is_strictly_increasing, tf.compat.v1.math.is_strictly_increasing
tf.math.... | tensorflow.math.is_strictly_increasing |
tf.math.l2_normalize View source on GitHub Normalizes along dimension axis using an L2 norm. View aliases Main aliases
tf.linalg.l2_normalize, tf.nn.l2_normalize
tf.math.l2_normalize(
x, axis=None, epsilon=1e-12, name=None
)
For a 1-D tensor with axis = 0, computes output = x / sqrt(max(sum(x**2), epsi... | tensorflow.math.l2_normalize |
tf.math.lbeta View source on GitHub Computes \(ln(|Beta(x)|)\), reducing along the last dimension. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.lbeta, tf.compat.v1.math.lbeta
tf.math.lbeta(
x, name=None
)
Given one-dimensional $z = [z_1,...,z_K]$, we de... | tensorflow.math.lbeta |
tf.math.less Returns the truth value of (x < y) element-wise. View aliases Main aliases
tf.less Compat aliases for migration See Migration guide for more details. tf.compat.v1.less, tf.compat.v1.math.less
tf.math.less(
x, y, name=None
)
Note: math.less supports broadcasting. More about broadcasting here
Exa... | tensorflow.math.less |
tf.math.less_equal Returns the truth value of (x <= y) element-wise. View aliases Main aliases
tf.less_equal Compat aliases for migration See Migration guide for more details. tf.compat.v1.less_equal, tf.compat.v1.math.less_equal
tf.math.less_equal(
x, y, name=None
)
Note: math.less_equal supports broadcasti... | tensorflow.math.less_equal |
tf.math.lgamma Computes the log of the absolute value of Gamma(x) element-wise. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.lgamma, tf.compat.v1.math.lgamma
tf.math.lgamma(
x, name=None
)
For positive numbers, this function computes log((input - 1)!) for every ... | tensorflow.math.lgamma |
tf.math.log Computes natural logarithm of x element-wise. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.log, tf.compat.v1.math.log
tf.math.log(
x, name=None
)
I.e., \(y = \log_e x\). Example: x = tf.constant([0, 0.5, 1, 5]) tf.math.log(x) See: https://en.wik... | tensorflow.math.log |
tf.math.log1p Computes natural logarithm of (1 + x) element-wise. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.log1p, tf.compat.v1.math.log1p
tf.math.log1p(
x, name=None
)
I.e., \(y = \log_e (1 + x)\). Example:
x = tf.constant([0, 0.5, 1, 5])
tf.math.log1p(x)... | tensorflow.math.log1p |
tf.math.logical_and View source on GitHub Logical AND function. View aliases Main aliases
tf.logical_and Compat aliases for migration See Migration guide for more details. tf.compat.v1.logical_and, tf.compat.v1.math.logical_and
tf.math.logical_and(
x, y, name=None
)
The operation works for the followin... | tensorflow.math.logical_and |
tf.math.logical_not Returns the truth value of NOT x element-wise. View aliases Main aliases
tf.logical_not Compat aliases for migration See Migration guide for more details. tf.compat.v1.logical_not, tf.compat.v1.math.logical_not
tf.math.logical_not(
x, name=None
)
Example:
tf.math.logical_not(tf.constant([... | tensorflow.math.logical_not |
tf.math.logical_or Returns the truth value of x OR y element-wise. View aliases Main aliases
tf.logical_or Compat aliases for migration See Migration guide for more details. tf.compat.v1.logical_or, tf.compat.v1.math.logical_or
tf.math.logical_or(
x, y, name=None
)
Note: math.logical_or supports broadcasting... | tensorflow.math.logical_or |
tf.math.logical_xor View source on GitHub Logical XOR function. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.logical_xor, tf.compat.v1.math.logical_xor
tf.math.logical_xor(
x, y, name='LogicalXor'
)
x ^ y = (x | y) & ~(x & y) The operation works for the f... | tensorflow.math.logical_xor |
tf.math.log_sigmoid View source on GitHub Computes log sigmoid of x element-wise. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.log_sigmoid, tf.compat.v1.math.log_sigmoid
tf.math.log_sigmoid(
x, name=None
)
Specifically, y = log(1 / (1 + exp(-x))). For num... | tensorflow.math.log_sigmoid |
tf.math.maximum Returns the max of x and y (i.e. x > y ? x : y) element-wise. View aliases Main aliases
tf.maximum Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.maximum, tf.compat.v1.maximum
tf.math.maximum(
x, y, name=None
)
Example:
x = tf.constant([0., 0., 0., 0.])
y... | tensorflow.math.maximum |
tf.math.minimum Returns the min of x and y (i.e. x < y ? x : y) element-wise. View aliases Main aliases
tf.minimum Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.minimum, tf.compat.v1.minimum
tf.math.minimum(
x, y, name=None
)
Both inputs are number-type tensors (except c... | tensorflow.math.minimum |
tf.math.multiply View source on GitHub Returns an element-wise x * y. View aliases Main aliases
tf.multiply Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.multiply, tf.compat.v1.multiply
tf.math.multiply(
x, y, name=None
)
For example:
x = tf.constant(([1, 2, 3, 4... | tensorflow.math.multiply |
tf.math.multiply_no_nan View source on GitHub Computes the product of x and y and returns 0 if the y is zero, even if x is NaN or infinite. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.math.multiply_no_nan
tf.math.multiply_no_nan(
x, y, name=None
)
A... | tensorflow.math.multiply_no_nan |
tf.math.ndtri Compute quantile of Standard Normal. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.math.ndtri
tf.math.ndtri(
x, name=None
)
Args
x Tensor with type float or double.
name A name for the operation (optional).
Returns Inverse e... | tensorflow.math.ndtri |
tf.math.negative Computes numerical negative value element-wise. View aliases Main aliases
tf.negative Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.negative, tf.compat.v1.negative
tf.math.negative(
x, name=None
)
I.e., \(y = -x\).
Args
x A Tensor. Must be one... | tensorflow.math.negative |
tf.math.nextafter Returns the next representable value of x1 in the direction of x2, element-wise. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.math.nextafter
tf.math.nextafter(
x1, x2, name=None
)
This operation returns the same result as the C++ std::nextafter... | tensorflow.math.nextafter |
tf.math.not_equal View source on GitHub Returns the truth value of (x != y) element-wise. View aliases Main aliases
tf.not_equal Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.not_equal, tf.compat.v1.not_equal
tf.math.not_equal(
x, y, name=None
)
Performs a broadca... | tensorflow.math.not_equal |
tf.math.polygamma Compute the polygamma function \(\psi^{(n)}(x)\). View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.math.polygamma, tf.compat.v1.polygamma
tf.math.polygamma(
a, x, name=None
)
The polygamma function is defined as: \(\psi^{(a)}(x) = \frac{d^a}{dx^a... | tensorflow.math.polygamma |
tf.math.polyval View source on GitHub Computes the elementwise value of a polynomial. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.math.polyval
tf.math.polyval(
coeffs, x, name=None
)
If x is a tensor and coeffs is a list n + 1 tensors, this function retu... | tensorflow.math.polyval |
tf.math.pow View source on GitHub Computes the power of one value to another. View aliases Main aliases
tf.pow Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.pow, tf.compat.v1.pow
tf.math.pow(
x, y, name=None
)
Given a tensor x and a tensor y, this operation comp... | tensorflow.math.pow |
tf.math.real View source on GitHub Returns the real part of a complex (or real) tensor. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.math.real, tf.compat.v1.real
tf.math.real(
input, name=None
)
Given a tensor input, this operation returns a tensor of typ... | tensorflow.math.real |
tf.math.reciprocal Computes the reciprocal of x element-wise. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.math.reciprocal, tf.compat.v1.reciprocal
tf.math.reciprocal(
x, name=None
)
I.e., \(y = 1 / x\).
Args
x A Tensor. Must be one of the following t... | tensorflow.math.reciprocal |
tf.math.reciprocal_no_nan View source on GitHub Performs a safe reciprocal operation, element wise. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.math.reciprocal_no_nan
tf.math.reciprocal_no_nan(
x, name=None
)
If a particular element is zero, the reciproc... | tensorflow.math.reciprocal_no_nan |
tf.math.reduce_all View source on GitHub Computes the "logical and" of elements across dimensions of a tensor. View aliases Main aliases
tf.reduce_all
tf.math.reduce_all(
input_tensor, axis=None, keepdims=False, name=None
)
Reduces input_tensor along the dimensions given in axis. Unless keepdims is tru... | tensorflow.math.reduce_all |
tf.math.reduce_any View source on GitHub Computes the "logical or" of elements across dimensions of a tensor. View aliases Main aliases
tf.reduce_any
tf.math.reduce_any(
input_tensor, axis=None, keepdims=False, name=None
)
Reduces input_tensor along the dimensions given in axis. Unless keepdims is true... | tensorflow.math.reduce_any |
tf.math.reduce_euclidean_norm View source on GitHub Computes the Euclidean norm of elements across dimensions of a tensor. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.math.reduce_euclidean_norm
tf.math.reduce_euclidean_norm(
input_tensor, axis=None, keepd... | tensorflow.math.reduce_euclidean_norm |
tf.math.reduce_logsumexp View source on GitHub Computes log(sum(exp(elements across dimensions of a tensor))). View aliases Main aliases
tf.reduce_logsumexp
tf.math.reduce_logsumexp(
input_tensor, axis=None, keepdims=False, name=None
)
Reduces input_tensor along the dimensions given in axis. Unless kee... | tensorflow.math.reduce_logsumexp |
tf.math.reduce_max View source on GitHub Computes the maximum of elements across dimensions of a tensor. View aliases Main aliases
tf.reduce_max
tf.math.reduce_max(
input_tensor, axis=None, keepdims=False, name=None
)
Reduces input_tensor along the dimensions given in axis. Unless keepdims is true, the... | tensorflow.math.reduce_max |
tf.math.reduce_mean View source on GitHub Computes the mean of elements across dimensions of a tensor. View aliases Main aliases
tf.reduce_mean
tf.math.reduce_mean(
input_tensor, axis=None, keepdims=False, name=None
)
Reduces input_tensor along the dimensions given in axis by computing the mean of elem... | tensorflow.math.reduce_mean |
tf.math.reduce_min View source on GitHub Computes the minimum of elements across dimensions of a tensor. View aliases Main aliases
tf.reduce_min
tf.math.reduce_min(
input_tensor, axis=None, keepdims=False, name=None
)
Reduces input_tensor along the dimensions given in axis. Unless keepdims is true, the... | tensorflow.math.reduce_min |
tf.math.reduce_prod View source on GitHub Computes the product of elements across dimensions of a tensor. View aliases Main aliases
tf.reduce_prod
tf.math.reduce_prod(
input_tensor, axis=None, keepdims=False, name=None
)
Reduces input_tensor along the dimensions given in axis. Unless keepdims is true, ... | tensorflow.math.reduce_prod |
tf.math.reduce_std View source on GitHub Computes the standard deviation of elements across dimensions of a tensor. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.math.reduce_std
tf.math.reduce_std(
input_tensor, axis=None, keepdims=False, name=None
)
Reduc... | tensorflow.math.reduce_std |
tf.math.reduce_sum View source on GitHub Computes the sum of elements across dimensions of a tensor. View aliases Main aliases
tf.reduce_sum
tf.math.reduce_sum(
input_tensor, axis=None, keepdims=False, name=None
)
Reduces input_tensor along the dimensions given in axis. Unless keepdims is true, the ran... | tensorflow.math.reduce_sum |
tf.math.reduce_variance View source on GitHub Computes the variance of elements across dimensions of a tensor. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.math.reduce_variance
tf.math.reduce_variance(
input_tensor, axis=None, keepdims=False, name=None
)
... | tensorflow.math.reduce_variance |
tf.math.rint Returns element-wise integer closest to x. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.math.rint, tf.compat.v1.rint
tf.math.rint(
x, name=None
)
If the result is midway between two representable values, the even representable is chosen. For example... | tensorflow.math.rint |
tf.math.round View source on GitHub Rounds the values of a tensor to the nearest integer, element-wise. View aliases Main aliases
tf.round Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.round, tf.compat.v1.round
tf.math.round(
x, name=None
)
Rounds half to even. Al... | tensorflow.math.round |
tf.math.rsqrt View source on GitHub Computes reciprocal of square root of x element-wise. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.math.rsqrt, tf.compat.v1.rsqrt
tf.math.rsqrt(
x, name=None
)
For example:
x = tf.constant([2., 0., -2.])
tf.math.rsqrt(... | tensorflow.math.rsqrt |
tf.math.scalar_mul View source on GitHub Multiplies a scalar times a Tensor or IndexedSlices object. View aliases Main aliases
tf.scalar_mul
tf.math.scalar_mul(
scalar, x, name=None
)
Intended for use in gradient code which might deal with IndexedSlices objects, which are easy to multiply by a scalar b... | tensorflow.math.scalar_mul |
tf.math.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.segment_max, tf.compat.v1.segment_max
tf.math.segment_max(
data, segment_ids, name=None
)
Read the section on segmentation for an explanation... | tensorflow.math.segment_max |
tf.math.segment_mean Computes the mean along segments of a tensor. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.math.segment_mean, tf.compat.v1.segment_mean
tf.math.segment_mean(
data, segment_ids, name=None
)
Read the section on segmentation for an explanatio... | tensorflow.math.segment_mean |
tf.math.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.segment_min, tf.compat.v1.segment_min
tf.math.segment_min(
data, segment_ids, name=None
)
Read the section on segmentation for an explanation... | tensorflow.math.segment_min |
tf.math.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.segment_prod, tf.compat.v1.segment_prod
tf.math.segment_prod(
data, segment_ids, name=None
)
Read the section on segmentation for an explana... | tensorflow.math.segment_prod |
tf.math.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.segment_sum, tf.compat.v1.segment_sum
tf.math.segment_sum(
data, segment_ids, name=None
)
Read the section on segmentation for an explanation of ... | tensorflow.math.segment_sum |
tf.math.sigmoid View source on GitHub Computes sigmoid of x element-wise. View aliases Main aliases
tf.nn.sigmoid, tf.sigmoid Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.sigmoid, tf.compat.v1.nn.sigmoid, tf.compat.v1.sigmoid
tf.math.sigmoid(
x, name=None
)
For... | tensorflow.math.sigmoid |
tf.math.sign View source on GitHub Returns an element-wise indication of the sign of a number. View aliases Main aliases
tf.sign Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.sign, tf.compat.v1.sign
tf.math.sign(
x, name=None
)
y = sign(x) = -1 if x < 0; 0 if x ==... | tensorflow.math.sign |
tf.math.sin Computes sine of x element-wise. View aliases Main aliases
tf.sin Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.sin, tf.compat.v1.sin
tf.math.sin(
x, name=None
)
Given an input tensor, this function computes sine of every element in the tensor. Input range is... | tensorflow.math.sin |
tf.math.sinh Computes hyperbolic sine of x element-wise. View aliases Main aliases
tf.sinh Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.sinh, tf.compat.v1.sinh
tf.math.sinh(
x, name=None
)
Given an input tensor, this function computes hyperbolic sine of every element in... | tensorflow.math.sinh |
tf.math.sobol_sample Generates points from the Sobol sequence. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.math.sobol_sample
tf.math.sobol_sample(
dim, num_results, skip=0, dtype=tf.dtypes.float32, name=None
)
Creates a Sobol sequence with num_results samples. ... | tensorflow.math.sobol_sample |
tf.math.softplus Computes softplus: log(exp(features) + 1). View aliases Main aliases
tf.nn.softplus Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.softplus, tf.compat.v1.nn.softplus
tf.math.softplus(
features, name=None
)
Args
features A Tensor. Must be one of t... | tensorflow.math.softplus |
Module: tf.math.special Public API for tf.math.special namespace. Functions bessel_i0(...): Computes the Bessel i0 function of x element-wise. bessel_i0e(...): Computes the Bessel i0e function of x element-wise. bessel_i1(...): Computes the Bessel i1 function of x element-wise. bessel_i1e(...): Computes the Bessel i1e ... | tensorflow.math.special |
tf.math.special.bessel_j0 Computes the Bessel j0 function of x element-wise. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.math.special.bessel_j0
tf.math.special.bessel_j0(
x, name=None
)
Modified Bessel function of order 0.
tf.math.special.bessel_j0([0.5, 1., 2... | tensorflow.math.special.bessel_j0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.