Math Ops

Summary

Typedefs
Mul typedef
Multiply
Neg typedef
Negate
ReduceAll typedef
All
ReduceAny typedef
Any
ReduceMax typedef
Max
ReduceMean typedef
Mean
ReduceMin typedef
Min
ReduceProd typedef
Prod
ReduceSum typedef
Sum
Sub typedef
Subtract
Classes
tensorflow::ops::Abs

Computes the absolute value of a tensor.

tensorflow::ops::AccumulateNV2

Returns the element-wise sum of a list of tensors.

tensorflow::ops::Acos

Computes acos of x element-wise.

tensorflow::ops::Acosh

Computes inverse hyperbolic cosine of x element-wise.

tensorflow::ops::Add

Returns x + y element-wise.

tensorflow::ops::AddN

Add all input tensors element wise.

tensorflow::ops::AddV2

Returns x + y element-wise.

tensorflow::ops::All

Computes the "logical and" of elements across dimensions of a tensor.

tensorflow::ops::Angle

Returns the argument of a complex number.

tensorflow::ops::Any

Computes the "logical or" of elements across dimensions of a tensor.

tensorflow::ops::ApproximateEqual

Returns the truth value of abs(x-y) < tolerance element-wise.

tensorflow::ops::ArgMax

Returns the index with the largest value across dimensions of a tensor.

tensorflow::ops::ArgMin

Returns the index with the smallest value across dimensions of a tensor.

tensorflow::ops::Asin

Computes the trignometric inverse sine of x element-wise.

tensorflow::ops::Asinh

Computes inverse hyperbolic sine of x element-wise.

tensorflow::ops::Atan

Computes the trignometric inverse tangent of x element-wise.

tensorflow::ops::Atan2

Computes arctangent of y/x element-wise, respecting signs of the arguments.

tensorflow::ops::Atanh

Computes inverse hyperbolic tangent of x element-wise.

tensorflow::ops::BatchMatMul

Multiplies slices of two tensors in batches.

tensorflow::ops::BatchMatMulV2

Multiplies slices of two tensors in batches.

tensorflow::ops::BesselI0e

Computes the Bessel i0e function of x element-wise.

tensorflow::ops::BesselI1e

Computes the Bessel i1e function of x element-wise.

tensorflow::ops::Betainc

Compute the regularized incomplete beta integral \(I_x(a, b)\).

tensorflow::ops::Bincount

Counts the number of occurrences of each value in an integer array.

tensorflow::ops::Bucketize

Bucketizes 'input' based on 'boundaries'.

tensorflow::ops::Cast

Cast x of type SrcT to y of DstT.

tensorflow::ops::Ceil

Returns element-wise smallest integer not less than x.

tensorflow::ops::ClipByValue

Clips tensor values to a specified min and max.

tensorflow::ops::CompareAndBitpack

Compare values of input to threshold and pack resulting bits into a uint8.

tensorflow::ops::Complex

Converts two real numbers to a complex number.

tensorflow::ops::ComplexAbs

Computes the complex absolute value of a tensor.

tensorflow::ops::Conj

Returns the complex conjugate of a complex number.

tensorflow::ops::Cos

Computes cos of x element-wise.

tensorflow::ops::Cosh

Computes hyperbolic cosine of x element-wise.

tensorflow::ops::Cross

Compute the pairwise cross product.

tensorflow::ops::Cumprod

Compute the cumulative product of the tensor x along axis.

tensorflow::ops::Cumsum

Compute the cumulative sum of the tensor x along axis.

tensorflow::ops::Digamma

Computes Psi, the derivative of Lgamma (the log of the absolute value of.

tensorflow::ops::Div

Returns x / y element-wise.

tensorflow::ops::DivNoNan

Returns 0 if the denominator is zero.

tensorflow::ops::Equal

Returns the truth value of (x == y) element-wise.

tensorflow::ops::Erf

Computes the Gauss error function of x element-wise.

tensorflow::ops::Erfc

Computes the complementary error function of x element-wise.

tensorflow::ops::EuclideanNorm

Computes the euclidean norm of elements across dimensions of a tensor.

tensorflow::ops::Exp

Computes exponential of x element-wise.

tensorflow::ops::Expm1

Computes exp(x) - 1 element-wise.

tensorflow::ops::Floor

Returns element-wise largest integer not greater than x.

tensorflow::ops::FloorDiv

Returns x // y element-wise.

tensorflow::ops::FloorMod

Returns element-wise remainder of division.

tensorflow::ops::Greater

Returns the truth value of (x > y) element-wise.

tensorflow::ops::GreaterEqual

Returns the truth value of (x >= y) element-wise.

tensorflow::ops::HistogramFixedWidth

Return histogram of values.

tensorflow::ops::Igamma

Compute the lower regularized incomplete Gamma function P(a, x).

tensorflow::ops::Igammac

Compute the upper regularized incomplete Gamma function Q(a, x).

tensorflow::ops::Imag

Returns the imaginary part of a complex number.

tensorflow::ops::Inv

Computes the reciprocal of x element-wise.

tensorflow::ops::IsFinite

Returns which elements of x are finite.

tensorflow::ops::IsInf

Returns which elements of x are Inf.

tensorflow::ops::IsNan

Returns which elements of x are NaN.

tensorflow::ops::Less

Returns the truth value of (x < y) element-wise.

tensorflow::ops::LessEqual

Returns the truth value of (x <= y) element-wise.

tensorflow::ops::Lgamma

Computes the log of the absolute value of Gamma(x) element-wise.

tensorflow::ops::LinSpace

Generates values in an interval.

tensorflow::ops::Log

Computes natural logarithm of x element-wise.

tensorflow::ops::Log1p

Computes natural logarithm of (1 + x) element-wise.

tensorflow::ops::LogicalAnd

Returns the truth value of x AND y element-wise.

tensorflow::ops::LogicalNot

Returns the truth value of NOT x element-wise.

tensorflow::ops::LogicalOr

Returns the truth value of x OR y element-wise.

tensorflow::ops::MatMul

Multiply the matrix "a" by the matrix "b".

tensorflow::ops::Max

Computes the maximum of elements across dimensions of a tensor.

tensorflow::ops::Maximum

Returns the max of x and y (i.e.

tensorflow::ops::Mean

Computes the mean of elements across dimensions of a tensor.

tensorflow::ops::Min

Computes the minimum of elements across dimensions of a tensor.

tensorflow::ops::Minimum

Returns the min of x and y (i.e.

tensorflow::ops::Mod

Returns element-wise remainder of division.

tensorflow::ops::MulNoNan

Returns x * y element-wise.

tensorflow::ops::Multiply

Returns x * y element-wise.

tensorflow::ops::Negate

Computes numerical negative value element-wise.

tensorflow::ops::NextAfter

Returns the next representable value of x1 in the direction of x2, element-wise.

tensorflow::ops::NotEqual

Returns the truth value of (x != y) element-wise.

tensorflow::ops::Polygamma

Compute the polygamma function \(^{(n)}(x)\).

tensorflow::ops::Pow

Computes the power of one value to another.

tensorflow::ops::Prod

Computes the product of elements across dimensions of a tensor.

tensorflow::ops::QuantizeDownAndShrinkRange

Convert the quantized 'input' tensor into a lower-precision 'output', using the.

tensorflow::ops::QuantizedAdd

Returns x + y element-wise, working on quantized buffers.

tensorflow::ops::QuantizedMatMul

Perform a quantized matrix multiplication of a by the matrix b.

tensorflow::ops::QuantizedMul

Returns x * y element-wise, working on quantized buffers.

tensorflow::ops::Range

Creates a sequence of numbers.

tensorflow::ops::Real

Returns the real part of a complex number.

tensorflow::ops::RealDiv

Returns x / y element-wise for real types.

tensorflow::ops::Reciprocal

Computes the reciprocal of x element-wise.

tensorflow::ops::RequantizationRange

Computes a range that covers the actual values present in a quantized tensor.

tensorflow::ops::Requantize

Converts the quantized input tensor into a lower-precision output.

tensorflow::ops::Rint

Returns element-wise integer closest to x.

tensorflow::ops::Round

Rounds the values of a tensor to the nearest integer, element-wise.

tensorflow::ops::Rsqrt

Computes reciprocal of square root of x element-wise.

tensorflow::ops::SegmentMax

Computes the maximum along segments of a tensor.

tensorflow::ops::SegmentMean

Computes the mean along segments of a tensor.

tensorflow::ops::SegmentMin

Computes the minimum along segments of a tensor.

tensorflow::ops::SegmentProd

Computes the product along segments of a tensor.

tensorflow::ops::SegmentSum

Computes the sum along segments of a tensor.

tensorflow::ops::SelectV2

TODO: add doc.

tensorflow::ops::Sigmoid

Computes sigmoid of x element-wise.

tensorflow::ops::Sign

Returns an element-wise indication of the sign of a number.

tensorflow::ops::Sin

Computes sine of x element-wise.

tensorflow::ops::Sinh

Computes hyperbolic sine of x element-wise.

tensorflow::ops::SparseMatMul

Multiply matrix "a" by matrix "b".

tensorflow::ops::SparseSegmentMean

Computes the mean along sparse segments of a tensor.

tensorflow::ops::SparseSegmentMeanGrad

Computes gradients for SparseSegmentMean.

tensorflow::ops::SparseSegmentMeanWithNumSegments

Computes the mean along sparse segments of a tensor.

tensorflow::ops::SparseSegmentSqrtN

Computes the sum along sparse segments of a tensor divided by the sqrt of N.

tensorflow::ops::SparseSegmentSqrtNGrad

Computes gradients for SparseSegmentSqrtN.

tensorflow::ops::SparseSegmentSqrtNWithNumSegments

Computes the sum along sparse segments of a tensor divided by the sqrt of N.

tensorflow::ops::SparseSegmentSum

Computes the sum along sparse segments of a tensor.

tensorflow::ops::SparseSegmentSumWithNumSegments

Computes the sum along sparse segments of a tensor.

tensorflow::ops::Sqrt

Computes square root of x element-wise.

tensorflow::ops::Square

Computes square of x element-wise.

tensorflow::ops::SquaredDifference

Returns (x - y)(x - y) element-wise.

tensorflow::ops::Subtract

Returns x - y element-wise.

tensorflow::ops::Sum

Computes the sum of elements across dimensions of a tensor.

tensorflow::ops::Tan

Computes tan of x element-wise.

tensorflow::ops::Tanh

Computes hyperbolic tangent of x element-wise.

tensorflow::ops::TruncateDiv

Returns x / y element-wise for integer types.

tensorflow::ops::TruncateMod

Returns element-wise remainder of division.

tensorflow::ops::UnsortedSegmentMax

Computes the maximum along segments of a tensor.

tensorflow::ops::UnsortedSegmentMin

Computes the minimum along segments of a tensor.

tensorflow::ops::UnsortedSegmentProd

Computes the product along segments of a tensor.

tensorflow::ops::UnsortedSegmentSum

Computes the sum along segments of a tensor.

tensorflow::ops::Where3

Selects elements from x or y, depending on condition.

tensorflow::ops::Xdivy

Returns 0 if x == 0, and x / y otherwise, elementwise.

tensorflow::ops::Xlogy

Returns 0 if x == 0, and x * log(y) otherwise, elementwise.

tensorflow::ops::Zeta

Compute the Hurwitz zeta function \((x, q)\).

Typedefs

Mul

Multiply Mul

Neg

Negate Neg

ReduceAll

All ReduceAll

ReduceAny

Any ReduceAny

ReduceMax

Max ReduceMax

ReduceMean

Mean ReduceMean

ReduceMin

Min ReduceMin

ReduceProd

Prod ReduceProd

ReduceSum

Sum ReduceSum

Sub

Subtract Sub

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r1.15/api_docs/cc/group/math-ops