Object

org.platanios.tensorflow.api.ops

Math

Related Doc: package ops

Permalink

object Math extends Math

Linear Supertypes
Math, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Math
  2. Math
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class MathOps(output: Output) extends Product with Serializable

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def abs[T <: OutputLike](x: T, name: String = "Abs")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathAbs

    $OpDocMathAbs

    x

    Input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, INT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  5. def accumulateN(inputs: Seq[Output], shape: core.Shape = null, name: String = "AccumulateN"): Output

    Permalink

    $OpDocMathAccumulateN

    $OpDocMathAccumulateN

    inputs

    Input tensors.

    shape

    Shape of the elements of inputs (in case it's not known statically and needs to be retained).

    name

    Created op name.

    returns

    Created op output.

    Definition Classes
    Math
    Annotations
    @throws( ... )
    Exceptions thrown

    InvalidArgumentException If any of the inputs has a different data type and/or shape than the rest.

  6. def acos[T](x: T, name: String = "Acos")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathAcos

    $OpDocMathAcos

    x

    Input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, INT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  7. def acosh[T](x: T, name: String = "ACosh")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathAcosh

    $OpDocMathAcosh

    x

    Input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, INT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  8. def add(x: Output, y: Output, name: String = "Add"): Output

    Permalink

    $OpDocMathAdd

    $OpDocMathAdd

    x

    First input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, UINT8, INT8, INT16, INT32, INT64, COMPLEX64, COMPLEX128, or STRING.

    y

    Second input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, UINT8, INT8, INT16, INT32, INT64, COMPLEX64, COMPLEX128, or STRING.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  9. def addN(inputs: Seq[Output], name: String = "AddN"): Output

    Permalink

    $OpDocMathAddN

    $OpDocMathAddN

    inputs

    Input tensors.

    name

    Created op name.

    returns

    Created op output.

    Definition Classes
    Math
  10. def all(input: Output, axes: Output = null, keepDims: Boolean = false, name: String = "All"): Output

    Permalink

    $OpDocMathAll

    $OpDocMathAll

    input

    Input tensor to reduce.

    axes

    Integer tensor containing the axes to reduce. If null, then all axes are reduced.

    keepDims

    If true, retain the reduced axes.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  11. def angle[T <: OutputLike](input: T, name: String = "Angle")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathAngle

    $OpDocMathAngle

    input

    Input tensor.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
    Annotations
    @throws( ... )
    Exceptions thrown

    IllegalArgumentException If the provided tensor is not numeric.

  12. def any(input: Output, axes: Output = null, keepDims: Boolean = false, name: String = "Any"): Output

    Permalink

    $OpDocMathAny

    $OpDocMathAny

    input

    Input tensor to reduce.

    axes

    Integer tensor containing the axes to reduce. If null, then all axes are reduced.

    keepDims

    If true, retain the reduced axes.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  13. def approximatelyEqual(x: Output, y: Output, tolerance: Float = 0.00001f, name: String = "ApproximatelyEqual"): Output

    Permalink

    $OpDocMathApproximatelyEqual

    $OpDocMathApproximatelyEqual

    x

    First input tensor.

    y

    Second input tensor.

    tolerance

    Comparison tolerance value.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  14. def argmax(input: Output, axes: Output = 0, outputDataType: types.DataType = INT64, name: String = "ArgMax"): Output

    Permalink

    $OpDocMathArgmax

    $OpDocMathArgmax

    input

    Input tensor.

    axes

    Integer tensor containing the axes to reduce. If null, then all axes are reduced.

    outputDataType

    Data type for the output tensor. Must be INT32 or INT64.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  15. def argmin(input: Output, axes: Output = 0, outputDataType: types.DataType = INT64, name: String = "ArgMin"): Output

    Permalink

    $OpDocMathArgmin

    $OpDocMathArgmin

    input

    Input tensor.

    axes

    Integer tensor containing the axes to reduce. If null, then all axes are reduced.

    outputDataType

    Data type for the output tensor. Must be INT32 or INT64.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
    Annotations
    @throws( ... )
    Exceptions thrown

    IllegalArgumentException If axes data type or outputDataType is not INT32 or INT64.

  16. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  17. def asin[T](x: T, name: String = "Asin")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathAsin

    $OpDocMathAsin

    x

    Input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, INT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  18. def asinh[T](x: T, name: String = "ASinh")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathAsinh

    $OpDocMathAsinh

    x

    Input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, INT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  19. def atan[T](x: T, name: String = "Atan")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathAtan

    $OpDocMathAtan

    x

    Input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, INT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  20. def atan2(x: Output, y: Output, name: String = "ATan2"): Output

    Permalink

    $OpDocMathAtan2

    $OpDocMathAtan2

    x

    First input tensor that must be one of the following types: FLOAT32, or FLOAT64.

    y

    Second input tensor that must be one of the following types: FLOAT32, or FLOAT64.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  21. def atanh[T](x: T, name: String = "ATanh")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathAtanh

    $OpDocMathAtanh

    x

    Input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, INT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  22. def binCount(input: Output, weights: Output = null, minLength: Output = null, maxLength: Output = null, dataType: types.DataType = INT32, name: String = "BinCount"): Output

    Permalink

    $OpDocMathBinCount

    $OpDocMathBinCount

    input

    INT32 tensor containing non-negative values.

    weights

    If not null, this tensor must have the same shape as input. For each value in input, the corresponding bin count will be incremented by the corresponding weight instead of 1.

    minLength

    If not null, this ensures the output has length at least minLength, padding with zeros at the end, if necessary.

    maxLength

    If not null, this skips values in input that are equal or greater than maxLength, ensuring that the output has length at most maxLength.

    dataType

    If weights is null, this determines the data type used for the output tensor (i.e., the tensor containing the bin counts).

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  23. def bucketize(input: Output, boundaries: Seq[Float], name: String = "Bucketize"): Output

    Permalink

    $OpDocMathBucketize

    $OpDocMathBucketize

    input

    Numeric tensor to bucketize.

    boundaries

    Sorted sequence of Floats specifying the boundaries of the buckets.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  24. def ceil[T](x: T, name: String = "Ceil")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathCeil

    $OpDocMathCeil

    x

    Input tensor that must be one of the following types: HALF, FLOAT32, or FLOAT64.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  25. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. def complex(real: Output, imag: Output, name: String = "Complex"): Output

    Permalink

    $OpDocMathComplex

    $OpDocMathComplex

    real

    Tensor containing the real component. Must have FLOAT32 or FLOAT64 data type.

    imag

    Tensor containing the imaginary component. Must have FLOAT32 or FLOAT64 data type.

    name

    Name for the created op.

    returns

    Created op output with data type being either COMPLEX64 or COMPLEX128.

    Definition Classes
    Math
  27. def conjugate[T <: OutputLike](input: T, name: String = "Conjugate")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathConjugate

    $OpDocMathConjugate

    input

    Input tensor.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
    Annotations
    @throws( ... )
    Exceptions thrown

    IllegalArgumentException If the provided tensor is not numeric.

  28. def cos[T](x: T, name: String = "Cos")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathCos

    $OpDocMathCos

    x

    Input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, INT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  29. def cosh[T](x: T, name: String = "Cosh")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathCosh

    $OpDocMathCosh

    x

    Input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, INT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  30. def countNonZero(input: Output, axes: Output = null, keepDims: Boolean = false, name: String = "CountNonZero"): Output

    Permalink

    $OpDocMathCountNonZero

    $OpDocMathCountNonZero

    input

    Input tensor to reduce.

    axes

    Integer array containing the axes to reduce. If null, then all axes are reduced.

    keepDims

    If true, retain the reduced axes.

    name

    Name for the created op.

    returns

    Created op output with INT64 data type.

    Definition Classes
    Math
  31. def countNonZeroSparse[T <: OutputLike](input: T, name: String = "CountNonZero"): Output

    Permalink

    $OpDocMathCountNonZero

    $OpDocMathCountNonZero

    input

    Input tensor for which to count the number of non-zero entries.

    name

    Name for the created op.

    returns

    Created op output with INT64 data type.

    Definition Classes
    Math
  32. def cross(a: Output, b: Output, name: String = "Cross"): Output

    Permalink

    $OpDocMathCross

    $OpDocMathCross

    a

    First input tensor.

    b

    Second input tensor.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  33. def cumprod(input: Output, axis: Output = 0, exclusive: Boolean = false, reverse: Boolean = false, name: String = "CumProd"): Output

    Permalink

    $OpDocMathCumprod

    $OpDocMathCumprod

    input

    Input tensor.

    axis

    INT32 tensor containing the axis along which to perform the cumulative product.

    exclusive

    Boolean value indicating whether to perform an exclusive cumulative product.

    reverse

    Boolean value indicating whether to perform a reverse cumulative product.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  34. def cumsum(input: Output, axis: Output = 0, exclusive: Boolean = false, reverse: Boolean = false, name: String = "CumSum"): Output

    Permalink

    $OpDocMathCumsum

    $OpDocMathCumsum

    input

    Input tensor.

    axis

    INT32 tensor containing the axis along which to perform the cumulative sum.

    exclusive

    Boolean value indicating whether to perform an exclusive cumulative sum.

    reverse

    Boolean value indicating whether to perform a reverse cumulative sum.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  35. def diag(diagonal: Output, name: String = "Diag"): Output

    Permalink

    $OpDocMathDiag

    $OpDocMathDiag

    diagonal

    Diagonal values, represented as a rank-K tensor, where K can be at most 3.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  36. def diagPart(input: Output, name: String = "DiagPart"): Output

    Permalink

    $OpDocMathDiagPart

    $OpDocMathDiagPart

    input

    Rank-K input tensor, where K is either 2, 4, or 6.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  37. def digamma[T](x: T, name: String = "Digamma")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathDigamma

    $OpDocMathDigamma

    x

    Input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, INT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  38. def divide(x: Output, y: Output, name: String = "Div"): Output

    Permalink

    $OpDocMathDivide

    $OpDocMathDivide

    x

    First input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, UINT8, INT8, INT16, INT32, INT64, COMPLEX64, or COMPLEX128.

    y

    Second input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, UINT8, INT8, INT16, INT32, INT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  39. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  40. def equal(x: Output, y: Output, name: String = "Equal"): Output

    Permalink

    $OpDocMathEqual

    $OpDocMathEqual

    x

    First input tensor.

    y

    Second input tensor.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  41. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  42. def erf[T](x: T, name: String = "Erf")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathErf

    $OpDocMathErf

    x

    Input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, INT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  43. def erfc[T](x: T, name: String = "Erfc")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathErfc

    $OpDocMathErfc

    x

    Input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, INT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  44. def exp[T](x: T, name: String = "Exp")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathExp

    $OpDocMathExp

    x

    Input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, INT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  45. def expm1[T](x: T, name: String = "Expm1")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathExpm1

    $OpDocMathExpm1

    x

    Input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, INT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  46. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  47. def floor[T](x: T, name: String = "Floor")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathFloor

    $OpDocMathFloor

    x

    Input tensor that must be one of the following types: HALF, FLOAT32, or FLOAT64.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  48. def floorMod(x: Output, y: Output, name: String = "FloorMod"): Output

    Permalink

    $OpDocMathFloorMod

    $OpDocMathFloorMod

    x

    First input tensor that must be one of the following types: FLOAT32, FLOAT64, INT32, or INT64.

    y

    Second input tensor that must be one of the following types: FLOAT32, FLOAT64, INT32, or INT64.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  49. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  50. def greater(x: Output, y: Output, name: String = "Greater"): Output

    Permalink

    OpDocMathGreater

    OpDocMathGreater

    x

    First input tensor.

    y

    Second input tensor.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  51. def greaterEqual(x: Output, y: Output, name: String = "GreaterEqual"): Output

    Permalink

    OpDocMathGreaterEqual

    OpDocMathGreaterEqual

    x

    First input tensor.

    y

    Second input tensor.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  52. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  53. def igamma(a: Output, x: Output, name: String = "Igamma"): Output

    Permalink

    $OpDocMathIgamma

    $OpDocMathIgamma

    a

    First input tensor that must be one of the following types: FLOAT32, or FLOAT64.

    x

    Second input tensor that must be one of the following types: FLOAT32, or FLOAT64.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  54. def igammac(a: Output, x: Output, name: String = "Igammac"): Output

    Permalink

    $OpDocMathIgammac

    $OpDocMathIgammac

    a

    First input tensor that must be one of the following types: FLOAT32, or FLOAT64.

    x

    Second input tensor that must be one of the following types: FLOAT32, or FLOAT64.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  55. def imag[T <: OutputLike](input: T, name: String = "Imag")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathImag

    $OpDocMathImag

    input

    Input tensor.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  56. def incompleteBeta(a: Output, b: Output, x: Output, name: String = "IncompleteBeta"): Output

    Permalink

    $OpDocMathIncompleteBeta

    $OpDocMathIncompleteBeta

    a

    First input tensor that must be one of the following types: FLOAT32, or FLOAT64.

    b

    Second input tensor that must be one of the following types: FLOAT32, or FLOAT64.

    x

    Third input tensor that must be one of the following types: FLOAT32, or FLOAT64.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  57. def isFinite[T](x: T, name: String = "IsFinite")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathIsFinite

    $OpDocMathIsFinite

    x

    Input tensor that must be one of the following types: HALF, FLOAT32, or FLOAT64.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  58. def isInf[T](x: T, name: String = "IsInf")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathIsInf

    $OpDocMathIsInf

    x

    Input tensor that must be one of the following types: HALF, FLOAT32, or FLOAT64.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  59. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  60. def isNaN[T](x: T, name: String = "IsNaN")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathIsNaN

    $OpDocMathIsNaN

    x

    Input tensor that must be one of the following types: HALF, FLOAT32, or FLOAT64.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  61. def less(x: Output, y: Output, name: String = "Less"): Output

    Permalink

    OpDocMathLess

    OpDocMathLess

    x

    First input tensor.

    y

    Second input tensor.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  62. def lessEqual(x: Output, y: Output, name: String = "LessEqual"): Output

    Permalink

    OpDocMathLessEqual

    OpDocMathLessEqual

    x

    First input tensor.

    y

    Second input tensor.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  63. def linspace(start: Output, stop: Output, numberOfValues: Output, name: String = "LinSpace"): Output

    Permalink

    $OpDocMathLinspace

    $OpDocMathLinspace

    start

    Rank 0 (i.e., scalar) tensor that contains the starting value of the number sequence.

    stop

    Rank 0 (i.e., scalar) tensor that contains the ending value (inclusive) of the number sequence.

    numberOfValues

    Rank 0 (i.e., scalar) tensor that contains the number of values in the number sequence.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  64. def log[T](x: T, name: String = "Log")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathLog

    $OpDocMathLog

    x

    Input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, INT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  65. def log1p[T](x: T, name: String = "Log1p")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathLog1p

    $OpDocMathLog1p

    x

    Input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, INT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  66. def logGamma[T](x: T, name: String = "Lgamma")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathLogGamma

    $OpDocMathLogGamma

    x

    Input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, INT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  67. def logSigmoid[T](x: T, name: String = "LogSigmoid")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathLogSigmoid

    $OpDocMathLogSigmoid

    x

    Input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, INT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  68. def logSumExp(input: Output, axes: Output = null, keepDims: Boolean = false, name: String = "LogSumExp"): Output

    Permalink

    $OpDocMathLogSumExp

    $OpDocMathLogSumExp

    input

    Input tensor to reduce.

    axes

    Integer tensor containing the axes to reduce. If null, then all axes are reduced.

    keepDims

    If true, retain the reduced axes.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  69. def logicalAnd(x: Output, y: Output, name: String = "LogicalAnd"): Output

    Permalink

    $OpDocMathLogicalAnd

    $OpDocMathLogicalAnd

    x

    First input tensor.

    y

    Second input tensor.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  70. def logicalNot(x: Output, name: String = "LogicalNot"): Output

    Permalink

    $OpDocMathLogicalNot

    $OpDocMathLogicalNot

    x

    Input tensor.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  71. def logicalOr(x: Output, y: Output, name: String = "LogicalOr"): Output

    Permalink

    $OpDocMathLogicalOr

    $OpDocMathLogicalOr

    x

    First input tensor.

    y

    Second input tensor.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  72. def logicalXOr(x: Output, y: Output, name: String = "LogicalXOr"): Output

    Permalink

    $OpDocMathLogicalXOr

    $OpDocMathLogicalXOr

    x

    First input tensor.

    y

    Second input tensor.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  73. def matmul(a: Output, b: Output, transposeA: Boolean = false, transposeB: Boolean = false, conjugateA: Boolean = false, conjugateB: Boolean = false, aIsSparse: Boolean = false, bIsSparse: Boolean = false, name: String = "MatMul"): Output

    Permalink

    $OpDocMathMatmul

    $OpDocMathMatmul

    a

    First input tensor with data type one of: BFLOAT16, FLOAT16, FLOAT32, FLOAT64, INT32, COMPLEX64, COMPLEX128.

    b

    Second input tensor with data type one of: BFLOAT16, FLOAT16, FLOAT32, FLOAT64, INT32, COMPLEX64, COMPLEX128.

    transposeA

    If true, a is transposed before the multiplication.

    transposeB

    If true, b is transposed before the multiplication.

    conjugateA

    If true, a is conjugated before the multiplication.

    conjugateB

    If true, b is conjugated before the multiplication.

    aIsSparse

    If true, a is treated as a sparse matrix (i.e., it is assumed it contains many zeros).

    bIsSparse

    If true, b is treated as a sparse matrix (i.e., it is assumed it contains many zeros).

    name

    Name for the created op.

    returns

    Created op output that has the same data type as a and b and where each inner-most matrix is the product of the corresponding matrices in a and b.

    Definition Classes
    Math
  74. def matrixBandPart(input: Output, numSubDiagonals: Output, numSuperDiagonals: Output, name: String = "MatrixBandPart"): Output

    Permalink

    $OpDocMathMatrixBandPart

    $OpDocMathMatrixBandPart

    input

    Input tensor.

    numSubDiagonals

    Scalar INT64 tensor that contains the number of sub-diagonals to keep. If negative, the entire lower triangle is kept.

    numSuperDiagonals

    Scalar INT64 tensor that contains the number of super-diagonals to keep. If negative, the entire upper triangle is kept.

    name

    Name for the created op.

    Definition Classes
    Math
  75. def matrixDiag(diagonal: Output, name: String = "MatrixDiag"): Output

    Permalink

    $OpDocMathMatrixDiag

    $OpDocMathMatrixDiag

    diagonal

    Rank-K input tensor, where K >= 1.

    name

    Name for the created op.

    returns

    Created op output with rank equal to K + 1 and shape equal to the shape of diagonal, with its last dimension duplicated.

    Definition Classes
    Math
  76. def matrixDiagPart(input: Output, name: String = "MatrixDiagPart"): Output

    Permalink

    $OpDocMathMatrixDiagPart

    $OpDocMathMatrixDiagPart

    input

    Rank-K tensor, where K >= 2.

    name

    Name for the created op.

    returns

    Created op output containing the diagonal(s) and having shape equal to input.shape[:-2] + [min(input.shape[-2:])].

    Definition Classes
    Math
  77. def matrixSetDiag(input: Output, diagonal: Output, name: String = "MatrixSetDiag"): Output

    Permalink

    $OpDocMathMatrixSetDiag

    $OpDocMathMatrixSetDiag

    input

    Rank-K+1 tensor, where K >= 2.

    diagonal

    Rank-K tensor, where K >= 1.

    name

    Name for the created op.

    returns

    Created op output with rank equal to K + 1 and shape equal to the shape of input.

    Definition Classes
    Math
  78. def max(input: Output, axes: Output = null, keepDims: Boolean = false, name: String = "Max"): Output

    Permalink

    $OpDocMathMax

    $OpDocMathMax

    input

    Input tensor to reduce.

    axes

    Integer tensor containing the axes to reduce. If null, then all axes are reduced.

    keepDims

    If true, retain the reduced axes.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  79. def maximum(x: Output, y: Output, name: String = "Maximum"): Output

    Permalink

    $OpDocMathMaximum

    $OpDocMathMaximum

    x

    First input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, or INT64.

    y

    Second input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, or INT64.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  80. def mean(input: Output, axes: Output = null, keepDims: Boolean = false, name: String = "Mean"): Output

    Permalink

    $OpDocMathMean

    $OpDocMathMean

    input

    Input tensor to reduce.

    axes

    Integer tensor containing the axes to reduce. If null, then all axes are reduced.

    keepDims

    If true, retain the reduced axes.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  81. def min(input: Output, axes: Output = null, keepDims: Boolean = false, name: String = "Min"): Output

    Permalink

    $OpDocMathMin

    $OpDocMathMin

    input

    Input tensor to reduce.

    axes

    Integer tensor containing the axes to reduce. If null, then all axes are reduced.

    keepDims

    If true, retain the reduced axes.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  82. def minimum(x: Output, y: Output, name: String = "Minimum"): Output

    Permalink

    $OpDocMathMinimum

    $OpDocMathMinimum

    x

    First input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, or INT64.

    y

    Second input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, or INT64.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  83. def mod(x: Output, y: Output, name: String = "Mod"): Output

    Permalink

    $OpDocMathMod

    $OpDocMathMod

    x

    First input tensor that must be one of the following types: FLOAT32, FLOAT64, INT32, or INT64.

    y

    Second input tensor that must be one of the following types: FLOAT32, FLOAT64, INT32, or INT64.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  84. def multiply(x: Output, y: Output, name: String = "Mul"): Output

    Permalink

    $OpDocMathMultiply

    $OpDocMathMultiply

    x

    First input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, UINT8, INT8, INT16, INT32, INT64, COMPLEX64, or COMPLEX128.

    y

    Second input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, UINT8, INT8, INT16, INT32, INT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  85. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  86. def negate[T](x: T, name: String = "Negate")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathNegate

    $OpDocMathNegate

    x

    Input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, INT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  87. def notEqual(x: Output, y: Output, name: String = "NotEqual"): Output

    Permalink

    $OpDocMathNotEqual

    $OpDocMathNotEqual

    x

    First input tensor.

    y

    Second input tensor.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  88. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  89. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  90. def polygamma(n: Output, x: Output, name: String = "Polygamma"): Output

    Permalink

    $OpDocMathPolygamma

    $OpDocMathPolygamma

    n

    First input tensor that must be one of the following types: FLOAT32, or FLOAT64.

    x

    Second input tensor that must be one of the following types: FLOAT32, or FLOAT64.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  91. def pow(x: Output, y: Output, name: String = "Pow"): Output

    Permalink

    $OpDocMathPow

    $OpDocMathPow

    x

    First input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, INT64, COMPLEX64, or COMPLEX128.

    y

    Second input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, INT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  92. def prod(input: Output, axes: Output = null, keepDims: Boolean = false, name: String = "Prod"): Output

    Permalink

    $OpDocMathProd

    $OpDocMathProd

    input

    Input tensor to reduce.

    axes

    Integer tensor containing the axes to reduce. If null, then all axes are reduced.

    keepDims

    If true, retain the reduced axes.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  93. def range(start: Output, limit: Output, delta: Output = Basic.constant(1), dataType: types.DataType = null, name: String = "Range"): Output

    Permalink

    $OpDocMathRange

    $OpDocMathRange

    start

    Rank 0 (i.e., scalar) tensor that contains the starting value of the number sequence.

    limit

    Rank 0 (i.e., scalar) tensor that contains the ending value (exclusive) of the number sequence.

    delta

    Rank 0 (i.e., scalar) tensor that contains the difference between consecutive numbers in the sequence.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  94. def real[T <: OutputLike](input: T, name: String = "Real")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathReal

    $OpDocMathReal

    input

    Input tensor.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  95. def realDivide(x: Output, y: Output, name: String = "RealDiv"): Output

    Permalink

    $OpDocMathRealDivide

    $OpDocMathRealDivide

    x

    First input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, UINT8, INT8, INT16, INT32, INT64, COMPLEX64, or COMPLEX128.

    y

    Second input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, UINT8, INT8, INT16, INT32, INT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  96. def reciprocal[T](x: T, name: String = "Reciprocal")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathReciprocal

    $OpDocMathReciprocal

    x

    Input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, INT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  97. def round[T](x: T, name: String = "Round")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathRound

    $OpDocMathRound

    x

    Input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  98. def roundInt[T](x: T, name: String = "RoundInt")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathRoundInt

    $OpDocMathRoundInt

    x

    Input tensor that must be one of the following types: HALF, FLOAT32, or FLOAT64.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  99. def rsqrt[T](x: T, name: String = "Rsqrt")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathRsqrt

    $OpDocMathRsqrt

    x

    Input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, INT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  100. def scalarMul[T](scalar: Output, tensor: T, name: String = "ScalarMul")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathScalarMul

    $OpDocMathScalarMul

    scalar

    Scalar tensor.

    tensor

    Tensor to multiply the scalar tensor with.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  101. def segmentMax(data: Output, segmentIndices: Output, name: String = "SegmentMax"): Output

    Permalink

    $OpDocMathSegmentMax

    $OpDocMathSegmentMax

    data

    Data (must have a numeric data type -- i.e., representing a number).

    segmentIndices

    Segment indices (must have data type of INT32 or INT64). Values should be sorted and can be repeated.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  102. def segmentMean(data: Output, segmentIndices: Output, name: String = "SegmentMean"): Output

    Permalink

    $OpDocMathSegmentMean

    $OpDocMathSegmentMean

    data

    Data (must have a numeric data type -- i.e., representing a number).

    segmentIndices

    Segment indices (must have data type of INT32 or INT64). Values should be sorted and can be repeated.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  103. def segmentMin(data: Output, segmentIndices: Output, name: String = "SegmentMin"): Output

    Permalink

    $OpDocMathSegmentMin

    $OpDocMathSegmentMin

    data

    Data (must have a numeric data type -- i.e., representing a number).

    segmentIndices

    Segment indices (must have data type of INT32 or INT64). Values should be sorted and can be repeated.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  104. def segmentProd(data: Output, segmentIndices: Output, name: String = "SegmentProd"): Output

    Permalink

    $OpDocMathSegmentProd

    $OpDocMathSegmentProd

    data

    Data (must have a numeric data type -- i.e., representing a number).

    segmentIndices

    Segment indices (must have data type of INT32 or INT64). Values should be sorted and can be repeated.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  105. def segmentSum(data: Output, segmentIndices: Output, name: String = "SegmentSum"): Output

    Permalink

    $OpDocMathSegmentSum

    $OpDocMathSegmentSum

    data

    Data (must have a numeric data type -- i.e., representing a number).

    segmentIndices

    Segment indices (must have data type of INT32 or INT64). Values should be sorted and can be repeated.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  106. def select(condition: Output, x: Output, y: Output, name: String = "Select"): Output

    Permalink

    $OpDocMathSelect

    $OpDocMathSelect

    condition

    Boolean condition tensor.

    x

    Tensor which may have the same shape as condition. If condition has rank 1, then t may have a higher rank, but its first dimension must match the size of condition.

    y

    Tensor with the same data type and shape as t.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  107. def sigmoid[T](x: T, name: String = "Sigmoid")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathSigmoid

    $OpDocMathSigmoid

    x

    Input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, INT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  108. def sign[T](x: T, name: String = "Sign")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathSign

    $OpDocMathSign

    x

    Input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, INT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  109. def sin[T](x: T, name: String = "Sin")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathSin

    $OpDocMathSin

    x

    Input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, INT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  110. def sinh[T](x: T, name: String = "Sinh")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathSinh

    $OpDocMathSinh

    x

    Input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, INT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  111. def sparseSegmentMean(data: Output, indices: Output, segmentIndices: Output, numSegments: Output = null, name: String = "SparseSegmentMean"): Output

    Permalink

    $OpDocMathSparseSegmentMean

    $OpDocMathSparseSegmentMean

    data

    Data (must have a numeric data type -- i.e., representing a number).

    indices

    One-dimensional tensor with rank equal to that of segmentIndices.

    segmentIndices

    Segment indices (must have data type of INT32 or INT64). Values should be sorted and can be repeated.

    numSegments

    Optional INT32 scalar indicating the size of the output tensor.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  112. def sparseSegmentSum(data: Output, indices: Output, segmentIndices: Output, numSegments: Output = null, name: String = "SparseSegmentSum"): Output

    Permalink

    $OpDocMathSparseSegmentSum

    $OpDocMathSparseSegmentSum

    data

    Data (must have a numeric data type -- i.e., representing a number).

    indices

    One-dimensional tensor with rank equal to that of segmentIndices.

    segmentIndices

    Segment indices (must have data type of INT32 or INT64). Values should be sorted and can be repeated.

    numSegments

    Optional INT32 scalar indicating the size of the output tensor.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  113. def sparseSegmentSumSqrtN(data: Output, indices: Output, segmentIndices: Output, numSegments: Output = null, name: String = "SparseSegmentSumSqrtN"): Output

    Permalink

    $OpDocMathSparseSegmentSumSqrtN

    $OpDocMathSparseSegmentSumSqrtN

    data

    Data (must have a numeric data type -- i.e., representing a number).

    indices

    One-dimensional tensor with rank equal to that of segmentIndices.

    segmentIndices

    Segment indices (must have data type of INT32 or INT64). Values should be sorted and can be repeated.

    numSegments

    Optional INT32 scalar indicating the size of the output tensor.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  114. def sqrt[T](x: T, name: String = "Sqrt")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathSqrt

    $OpDocMathSqrt

    x

    Input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, INT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  115. def square[T](x: T, name: String = "Square")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathSquare

    $OpDocMathSquare

    x

    Input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, INT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  116. def squaredDifference(x: Output, y: Output, name: String = "SquaredDifference"): Output

    Permalink

    $OpDocMathSquaredDifference

    $OpDocMathSquaredDifference

    x

    First input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, INT64, COMPLEX64, or COMPLEX128.

    y

    Second input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, INT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  117. def subtract(x: Output, y: Output, name: String = "Sub"): Output

    Permalink

    $OpDocMathSubtract

    $OpDocMathSubtract

    x

    First input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, INT64, COMPLEX64, or COMPLEX128.

    y

    Second input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, INT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  118. def sum(input: Output, axes: Output = null, keepDims: Boolean = false, name: String = "Sum"): Output

    Permalink

    $OpDocMathSum

    $OpDocMathSum

    input

    Input tensor to reduce.

    axes

    Integer tensor containing the axes to reduce. If null, then all axes are reduced.

    keepDims

    If true, retain the reduced axes.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  119. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  120. def tan[T](x: T, name: String = "Tan")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathTan

    $OpDocMathTan

    x

    Input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, INT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  121. def tanh[T](x: T, name: String = "Tanh")(implicit arg0: OutputOps[T]): T

    Permalink

    $OpDocMathTanh

    $OpDocMathTanh

    x

    Input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, INT32, INT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  122. def tensorDot(a: Output, b: Output, axesA: Seq[Int], axesB: Seq[Int], name: String): Output

    Permalink

    $OpDocMathTensorDot

    $OpDocMathTensorDot

    a

    First tensor.

    b

    Second tensor.

    axesA

    Axes to contract in a.

    axesB

    Axes to contract in b.

    name

    Name for the created ops.

    returns

    Created op output.

    Definition Classes
    Math
  123. def tensorDot(a: Output, b: Output, axesA: Seq[Int], axesB: Seq[Int]): Output

    Permalink

    $OpDocMathTensorDot

    $OpDocMathTensorDot

    a

    First tensor.

    b

    Second tensor.

    axesA

    Axes to contract in a.

    axesB

    Axes to contract in b.

    returns

    Created op output.

    Definition Classes
    Math
  124. def tensorDot(a: Output, b: Output, numAxes: Int, name: String): Output

    Permalink

    $OpDocMathTensorDot

    $OpDocMathTensorDot

    a

    First tensor.

    b

    Second tensor.

    numAxes

    Number of axes to contract.

    name

    Name for the created ops.

    returns

    Created op output.

    Definition Classes
    Math
  125. def tensorDot(a: Output, b: Output, numAxes: Int): Output

    Permalink

    $OpDocMathTensorDot

    $OpDocMathTensorDot

    a

    First tensor.

    b

    Second tensor.

    numAxes

    Number of axes to contract.

    returns

    Created op output.

    Definition Classes
    Math
  126. def tensorDotDynamic(a: Output, b: Output, axesA: Output, axesB: Output, name: String = "TensorDot"): Output

    Permalink

    Dynamic version (i.e., where axesA and axesB may be symbolic tensors) of the tensorDot op.

    Dynamic version (i.e., where axesA and axesB may be symbolic tensors) of the tensorDot op.

    $OpDocMathTensorDot

    a

    First tensor.

    b

    Second tensor.

    axesA

    Axes to contract in a.

    axesB

    Axes to contract in b.

    name

    Name for the created ops.

    returns

    Created op output.

    Definition Classes
    Math
  127. def tensorDotDynamic(a: Output, b: Output, axesA: Output, axesB: Output): Output

    Permalink

    Dynamic version (i.e., where axesA and axesB may be symbolic tensors) of the tensorDot op.

    Dynamic version (i.e., where axesA and axesB may be symbolic tensors) of the tensorDot op.

    $OpDocMathTensorDot

    a

    First tensor.

    b

    Second tensor.

    axesA

    Axes to contract in a.

    axesB

    Axes to contract in b.

    returns

    Created op output.

    Definition Classes
    Math
  128. def tensorDotDynamic(a: Output, b: Output, numAxes: Output, name: String): Output

    Permalink

    Dynamic version (i.e., where numAxes may be a symbolic tensor) of the tensorDot op.

    Dynamic version (i.e., where numAxes may be a symbolic tensor) of the tensorDot op.

    $OpDocMathTensorDot

    a

    First tensor.

    b

    Second tensor.

    numAxes

    Number of axes to contract.

    name

    Name for the created ops.

    returns

    Created op output.

    Definition Classes
    Math
  129. def tensorDotDynamic(a: Output, b: Output, numAxes: Output): Output

    Permalink

    Dynamic version (i.e., where numAxes may be a symbolic tensor) of the tensorDot op.

    Dynamic version (i.e., where numAxes may be a symbolic tensor) of the tensorDot op.

    $OpDocMathTensorDot

    a

    First tensor.

    b

    Second tensor.

    numAxes

    Number of axes to contract.

    returns

    Created op output.

    Definition Classes
    Math
  130. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  131. def trace(input: Output, name: String = "Trace"): Output

    Permalink

    $OpDocMathTrace

    $OpDocMathTrace

    input

    Input tensor.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  132. def truncateDivide(x: Output, y: Output, name: String = "TruncateDiv"): Output

    Permalink

    $OpDocMathTruncateDivide

    $OpDocMathTruncateDivide

    x

    First input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, UINT8, INT8, INT16, INT32, INT64, COMPLEX64, or COMPLEX128.

    y

    Second input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, UINT8, INT8, INT16, INT32, INT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  133. def truncateMod(x: Output, y: Output, name: String = "TruncateMod"): Output

    Permalink

    $OpDocMathTruncateMod

    $OpDocMathTruncateMod

    x

    First input tensor that must be one of the following types: FLOAT32, FLOAT64, INT32, or INT64.

    y

    Second input tensor that must be one of the following types: FLOAT32, FLOAT64, INT32, or INT64.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  134. def unsortedSegmentMax(data: Output, segmentIndices: Output, segmentsNumber: Output, name: String = "UnsortedSegmentMax"): Output

    Permalink

    $OpDocMathUnsortedSegmentMax

    $OpDocMathUnsortedSegmentMax

    data

    Data (must have a numeric data type -- i.e., representing a number).

    segmentIndices

    Segment indices (must have data type of INT32 or INT64).

    segmentsNumber

    Number of segments (must have data type of INT32).

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  135. def unsortedSegmentMean(data: Output, segmentIndices: Output, segmentsNumber: Output, name: String = "UnsortedSegmentMean"): Output

    Permalink

    $OpDocMathUnsortedSegmentMean

    $OpDocMathUnsortedSegmentMean

    data

    Data (must have a numeric data type -- i.e., representing a number).

    segmentIndices

    Segment indices (must have data type of INT32 or INT64).

    segmentsNumber

    Number of segments (must have data type of INT32).

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  136. def unsortedSegmentMin(data: Output, segmentIndices: Output, segmentsNumber: Output, name: String = "UnsortedSegmentMin"): Output

    Permalink

    $OpDocMathUnsortedSegmentMin

    $OpDocMathUnsortedSegmentMin

    data

    Data (must have a numeric data type -- i.e., representing a number).

    segmentIndices

    Segment indices (must have data type of INT32 or INT64).

    segmentsNumber

    Number of segments (must have data type of INT32).

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  137. def unsortedSegmentN(data: Output, segmentIndices: Output, segmentsNumber: Output, name: String = "UnsortedSegmentN"): Output

    Permalink

    Helper function for unsortedSegmentMean and unsortedSegmentSqrtN that computes the number of segment entries with zero entries set to 1, in order to allow for division by N.

    Helper function for unsortedSegmentMean and unsortedSegmentSqrtN that computes the number of segment entries with zero entries set to 1, in order to allow for division by N.

    data

    Data (must have a numeric data type -- i.e., representing a number).

    segmentIndices

    Segment indices (must have data type of INT32 or INT64).

    segmentsNumber

    Number of segments (must have data type of INT32).

    returns

    Created op output.

    Attributes
    protected
    Definition Classes
    Math
  138. def unsortedSegmentProd(data: Output, segmentIndices: Output, segmentsNumber: Output, name: String = "UnsortedSegmentProd"): Output

    Permalink

    $OpDocMathUnsortedSegmentProd

    $OpDocMathUnsortedSegmentProd

    data

    Data (must have a numeric data type -- i.e., representing a number).

    segmentIndices

    Segment indices (must have data type of INT32 or INT64).

    segmentsNumber

    Number of segments (must have data type of INT32).

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  139. def unsortedSegmentSqrtN(data: Output, segmentIndices: Output, segmentsNumber: Output, name: String = "UnsortedSegmentSqrtN"): Output

    Permalink

    $OpDocMathUnsortedSegmentSqrtN

    $OpDocMathUnsortedSegmentSqrtN

    data

    Data (must have a numeric data type -- i.e., representing a number).

    segmentIndices

    Segment indices (must have data type of INT32 or INT64).

    segmentsNumber

    Number of segments (must have data type of INT32).

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  140. def unsortedSegmentSum(data: Output, segmentIndices: Output, segmentsNumber: Output, name: String = "UnsortedSegmentSum"): Output

    Permalink

    $OpDocMathUnsortedSegmentSum

    $OpDocMathUnsortedSegmentSum

    data

    Data (must have a numeric data type -- i.e., representing a number).

    segmentIndices

    Segment indices (must have data type of INT32 or INT64).

    segmentsNumber

    Number of segments (must have data type of INT32).

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
  141. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  142. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  143. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  144. def zerosFraction(input: Output, name: String = "ZerosFraction"): Output

    Permalink

    $OpDocMathZerosFraction

    $OpDocMathZerosFraction

    input

    Input tensor.

    name

    Name for the created op.

    returns

    Created op output, with FLOAT32 data type.

    Definition Classes
    Math
  145. def zeta(x: Output, q: Output, name: String = "Zeta"): Output

    Permalink

    $OpDocMathZeta

    $OpDocMathZeta

    x

    First input tensor that must be one of the following types: FLOAT32, or FLOAT64.

    q

    Second input tensor that must be one of the following types: FLOAT32, or FLOAT64.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math

Deprecated Value Members

  1. def floorDivide(x: Output, y: Output, name: String = "FloorDiv"): Output

    Permalink

    $OpDocMathFloorDivide

    $OpDocMathFloorDivide

    x

    First input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, UINT8, INT8, INT16, INT32, INT64, COMPLEX64, or COMPLEX128.

    y

    Second input tensor that must be one of the following types: HALF, FLOAT32, FLOAT64, UINT8, INT8, INT16, INT32, INT64, COMPLEX64, or COMPLEX128.

    name

    Name for the created op.

    returns

    Created op output.

    Definition Classes
    Math
    Annotations
    @deprecated
    Deprecated

    (Since version 0.1) Use truncateDivide instead.

Inherited from Math

Inherited from AnyRef

Inherited from Any

MathOps

Ungrouped