Class

org.platanios.tensorflow.api.tensors.ops.Math

MathOps

Related Doc: package Math

Permalink

case class MathOps(tensor: Tensor) extends Product with Serializable

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MathOps
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MathOps(tensor: Tensor)

    Permalink

Value Members

  1. def !=(other: Tensor): Tensor

    Permalink

    $OpDocMathNotEqual

    $OpDocMathNotEqual

    returns

    Result as a new tensor.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def %(other: Tensor): Tensor

    Permalink

    $OpDocMathMod

    $OpDocMathMod

    returns

    Result as a new tensor.

  5. def &&(other: Tensor): Tensor

    Permalink

    $OpDocMathLogicalAnd

    $OpDocMathLogicalAnd

    returns

    Result as a new tensor.

  6. def *(other: Tensor): Tensor

    Permalink

    $OpDocMathMultiply

    $OpDocMathMultiply

    returns

    Result as a new tensor.

  7. def **(other: Tensor): Tensor

    Permalink

    $OpDocMathPow

    $OpDocMathPow

    returns

    Result as a new tensor.

  8. def +(other: Tensor): Tensor

    Permalink

    $OpDocMathAdd

    $OpDocMathAdd

    returns

    Result as a new tensor.

  9. def -(other: Tensor): Tensor

    Permalink

    $OpDocMathSubtract

    $OpDocMathSubtract

    returns

    Result as a new tensor.

  10. def /(other: Tensor): Tensor

    Permalink

    $OpDocMathDivide

    $OpDocMathDivide

    returns

    Result as a new tensor.

  11. def <(other: Tensor): Tensor

    Permalink

    $OpDocMathLess

    $OpDocMathLess

    returns

    Result as a new tensor.

  12. def <=(other: Tensor): Tensor

    Permalink

    $OpDocMathLessEqual

    $OpDocMathLessEqual

    returns

    Result as a new tensor.

  13. def ==(other: Tensor): Tensor

    Permalink

    $OpDocMathEqual

    $OpDocMathEqual

    returns

    Result as a new tensor.

  14. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  15. def >(other: Tensor): Tensor

    Permalink

    $OpDocMathGreater

    $OpDocMathGreater

    returns

    Result as a new tensor.

  16. def >=(other: Tensor): Tensor

    Permalink

    $OpDocMathGreaterEqual

    $OpDocMathGreaterEqual

    returns

    Result as a new tensor.

  17. def ^(other: Tensor): Tensor

    Permalink

    $OpDocMathPow

    $OpDocMathPow

    returns

    Result as a new tensor.

  18. def abs: Tensor

    Permalink

    $OpDocMathAbs

    $OpDocMathAbs

    returns

    Result as a new tensor.

  19. def acos: Tensor

    Permalink

    $OpDocMathAcos

    $OpDocMathAcos

    returns

    Result as a new tensor.

  20. def acosh: Tensor

    Permalink

    $OpDocMathAcosh

    $OpDocMathAcosh

    returns

    Result as a new tensor.

  21. def add(other: Tensor): Tensor

    Permalink

    $OpDocMathAdd

    $OpDocMathAdd

    returns

    Result as a new tensor.

  22. def all(axes: Tensor = null, keepDims: Boolean = false): Tensor

    Permalink

    $OpDocMathAll

    $OpDocMathAll

    axes

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

    keepDims

    If true, retain the reduced axes.

    returns

    Result as a new tensor.

  23. def angle: Tensor

    Permalink

    $OpDocMathAngle

    $OpDocMathAngle

    returns

    Result as a new tensor.

  24. def any(axes: Tensor = null, keepDims: Boolean = false): Tensor

    Permalink

    $OpDocMathAny

    $OpDocMathAny

    axes

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

    keepDims

    If true, retain the reduced axes.

    returns

    Result as a new tensor.

  25. def approximatelyEqual(other: Tensor): Tensor

    Permalink

    $OpDocMathApproximatelyEqual

    $OpDocMathApproximatelyEqual

    returns

    Result as a new tensor.

  26. def argmax(axes: Tensor = 0, outputDataType: types.DataType = INT64): Tensor

    Permalink

    $OpDocMathArgmax

    $OpDocMathArgmax

    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.

    returns

    Result as a new tensor.

  27. def argmin(axes: Tensor = 0, outputDataType: types.DataType = INT64): Tensor

    Permalink

    $OpDocMathArgmin

    $OpDocMathArgmin

    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.

    returns

    Result as a new tensor.

  28. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  29. def asin: Tensor

    Permalink

    $OpDocMathAsin

    $OpDocMathAsin

    returns

    Result as a new tensor.

  30. def asinh: Tensor

    Permalink

    $OpDocMathAsinh

    $OpDocMathAsinh

    returns

    Result as a new tensor.

  31. def atan: Tensor

    Permalink

    $OpDocMathAtan

    $OpDocMathAtan

    returns

    Result as a new tensor.

  32. def atan2(other: Tensor): Tensor

    Permalink

    $OpDocMathAtan2

    $OpDocMathAtan2

    returns

    Result as a new tensor.

  33. def atanh: Tensor

    Permalink

    $OpDocMathAtanh

    $OpDocMathAtanh

    returns

    Result as a new tensor.

  34. def binCount(weights: Tensor = null, minLength: Tensor = null, maxLength: Tensor = null, dataType: types.DataType = INT32): Tensor

    Permalink

    $OpDocMathBinCount

    $OpDocMathBinCount

    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).

    returns

    Result as a new tensor.

  35. def bitcast(dataType: types.DataType): Tensor

    Permalink

    $OpDocMathBitcast

    $OpDocMathBitcast

    dataType

    Target data type.

    returns

    Result as a new tensor.

  36. def bucketize(boundaries: Seq[Float]): Tensor

    Permalink

    $OpDocMathBucketize

    $OpDocMathBucketize

    boundaries

    Sorted sequence of Floats specifying the boundaries of the buckets.

    returns

    Result as a new tensor.

  37. def cast(dataType: types.DataType): Tensor

    Permalink

    $OpDocMathCast

    $OpDocMathCast

    dataType

    Target data type.

    returns

    Result as a new tensor.

  38. def ceil: Tensor

    Permalink

    $OpDocMathCeil

    $OpDocMathCeil

    returns

    Result as a new tensor.

  39. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. def conjugate: Tensor

    Permalink

    $OpDocMathConjugate

    $OpDocMathConjugate

    returns

    Result as a new tensor.

  41. def cos: Tensor

    Permalink

    $OpDocMathCos

    $OpDocMathCos

    returns

    Result as a new tensor.

  42. def cosh: Tensor

    Permalink

    $OpDocMathCosh

    $OpDocMathCosh

    returns

    Result as a new tensor.

  43. def countNonZero(axes: Tensor = null, keepDims: Boolean = false): Tensor

    Permalink

    $OpDocMathCountNonZero

    $OpDocMathCountNonZero

    axes

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

    keepDims

    If true, retain the reduced axes.

    returns

    Result as a new tensor.

  44. def cross(other: Tensor): Tensor

    Permalink

    $OpDocMathCross

    $OpDocMathCross

    other

    Tensor to multiply with.

    returns

    Result as a new tensor.

  45. def cumprod(axis: Tensor = 0, exclusive: Boolean = false, reverse: Boolean = false): Tensor

    Permalink

    $OpDocMathCumprod

    $OpDocMathCumprod

    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.

    returns

    Result as a new tensor.

  46. def cumsum(axis: Tensor = 0, exclusive: Boolean = false, reverse: Boolean = false): Tensor

    Permalink

    $OpDocMathCumsum

    $OpDocMathCumsum

    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.

    returns

    Result as a new tensor.

  47. def diag: Tensor

    Permalink

    $OpDocMathDiag

    $OpDocMathDiag

    returns

    Result as a new tensor.

  48. def diagPart: Tensor

    Permalink

    $OpDocMathDiagPart

    $OpDocMathDiagPart

    returns

    Result as a new tensor.

  49. def digamma: Tensor

    Permalink

    $OpDocMathDigamma

    $OpDocMathDigamma

    returns

    Result as a new tensor.

  50. def divide(other: Tensor): Tensor

    Permalink

    $OpDocMathDivide

    $OpDocMathDivide

    returns

    Result as a new tensor.

  51. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  52. def equal(other: Tensor): Tensor

    Permalink

    $OpDocMathEqual

    $OpDocMathEqual

    returns

    Result as a new tensor.

  53. def erc: Tensor

    Permalink

    $OpDocMathErfc

    $OpDocMathErfc

    returns

    Result as a new tensor.

  54. def erf: Tensor

    Permalink

    $OpDocMathErf

    $OpDocMathErf

    returns

    Result as a new tensor.

  55. def exp: Tensor

    Permalink

    $OpDocMathExp

    $OpDocMathExp

    returns

    Result as a new tensor.

  56. def expm1: Tensor

    Permalink

    $OpDocMathExpm1

    $OpDocMathExpm1

    returns

    Result as a new tensor.

  57. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  58. def floor: Tensor

    Permalink

    $OpDocMathFloor

    $OpDocMathFloor

    returns

    Result as a new tensor.

  59. def floorMod(other: Tensor): Tensor

    Permalink

    $OpDocMathFloorMod

    $OpDocMathFloorMod

    returns

    Result as a new tensor.

  60. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  61. def greater(other: Tensor): Tensor

    Permalink

    $OpDocMathGreater

    $OpDocMathGreater

    returns

    Result as a new tensor.

  62. def greaterEqual(other: Tensor): Tensor

    Permalink

    $OpDocMathGreaterEqual

    $OpDocMathGreaterEqual

    returns

    Result as a new tensor.

  63. def igamma(other: Tensor): Tensor

    Permalink

    $OpDocMathIgamma

    $OpDocMathIgamma

    returns

    Result as a new tensor.

  64. def igammac(other: Tensor): Tensor

    Permalink

    $OpDocMathIgammac

    $OpDocMathIgammac

    returns

    Result as a new tensor.

  65. def imag: Tensor

    Permalink

    $OpDocMathImag

    $OpDocMathImag

    returns

    Result as a new tensor.

  66. def isFinite: Tensor

    Permalink

    $OpDocMathIsFinite

    $OpDocMathIsFinite

    returns

    Result as a new tensor.

  67. def isInf: Tensor

    Permalink

    $OpDocMathIsInf

    $OpDocMathIsInf

    returns

    Result as a new tensor.

  68. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  69. def isNaN: Tensor

    Permalink

    $OpDocMathIsNaN

    $OpDocMathIsNaN

    returns

    Result as a new tensor.

  70. def less(other: Tensor): Tensor

    Permalink

    $OpDocMathLess

    $OpDocMathLess

    returns

    Result as a new tensor.

  71. def lessEqual(other: Tensor): Tensor

    Permalink

    $OpDocMathLessEqual

    $OpDocMathLessEqual

    returns

    Result as a new tensor.

  72. def log: Tensor

    Permalink

    $OpDocMathLog

    $OpDocMathLog

    returns

    Result as a new tensor.

  73. def log1p: Tensor

    Permalink

    $OpDocMathLog1p

    $OpDocMathLog1p

    returns

    Result as a new tensor.

  74. def logGamma: Tensor

    Permalink

    $OpDocMathLogGamma

    $OpDocMathLogGamma

    returns

    Result as a new tensor.

  75. def logSumExp(axes: Seq[Int] = null, keepDims: Boolean = false): Tensor

    Permalink

    $OpDocMathLogSumExp

    $OpDocMathLogSumExp

    axes

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

    keepDims

    If true, retain the reduced axes.

    returns

    Result as a new tensor.

  76. def logicalAnd(other: Tensor): Tensor

    Permalink

    $OpDocMathLogicalAnd

    $OpDocMathLogicalAnd

    returns

    Result as a new tensor.

  77. def logicalNot: Tensor

    Permalink

    $OpDocMathLogicalNot

    $OpDocMathLogicalNot

    returns

    Result as a new tensor.

  78. def logicalOr(other: Tensor): Tensor

    Permalink

    $OpDocMathLogicalOr

    $OpDocMathLogicalOr

    returns

    Result as a new tensor.

  79. def logicalXOr(other: Tensor): Tensor

    Permalink

    $OpDocMathLogicalXOr

    $OpDocMathLogicalXOr

    returns

    Result as a new tensor.

  80. def matmul(other: Tensor, transposeA: Boolean = false, transposeB: Boolean = false, conjugateA: Boolean = false, conjugateB: Boolean = false, aIsSparse: Boolean = false, bIsSparse: Boolean = false): Tensor

    Permalink

    $OpDocMathMatmul

    $OpDocMathMatmul

    other

    Tensor to multiply with, with data type one of: BFLOAT16, FLOAT16, FLOAT32, FLOAT64, INT32, COMPLEX64, COMPLEX128.

    transposeA

    If true, this tensor is transposed before the multiplication.

    transposeB

    If true, other is transposed before the multiplication.

    conjugateA

    If true, this tensor is conjugated before the multiplication.

    conjugateB

    If true, other is conjugated before the multiplication.

    aIsSparse

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

    bIsSparse

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

    returns

    Result as a new tensor.

  81. def matrixBandPart(numSubDiagonals: Tensor, numSuperDiagonals: Tensor): Tensor

    Permalink

    $OpDocMathMatrixBandPart

    $OpDocMathMatrixBandPart

    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.

    returns

    Result as a new tensor containing the expected banded tensor and has rank K and same shape as input.

  82. def matrixDiag: Tensor

    Permalink

    $OpDocMathMatrixDiag

    $OpDocMathMatrixDiag

    returns

    Result as a new tensor with rank equal to K + 1 and shape equal to the shape of diagonal, with its last dimension duplicated.

  83. def matrixDiagPart: Tensor

    Permalink

    $OpDocMathMatrixDiagPart

    $OpDocMathMatrixDiagPart

    returns

    Result as a new tensor containing the diagonal(s) and having shape equal to input.shape[:-2] + [min(input.shape[-2:])].

  84. def matrixSetDiag(diagonal: Tensor): Tensor

    Permalink

    $OpDocMathMatrixSetDiag

    $OpDocMathMatrixSetDiag

    diagonal

    Rank-K tensor, where K >= 1.

    returns

    Result as a new tensor with rank equal to K + 1 and shape equal to the shape of input.

  85. def max(axes: Tensor = null, keepDims: Boolean = false): Tensor

    Permalink

    $OpDocMathMax

    $OpDocMathMax

    axes

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

    keepDims

    If true, retain the reduced axes.

    returns

    Result as a new tensor.

  86. def maximum(other: Tensor): Tensor

    Permalink

    $OpDocMathMaximum

    $OpDocMathMaximum

    returns

    Result as a new tensor.

  87. def mean(axes: Tensor = null, keepDims: Boolean = false): Tensor

    Permalink

    $OpDocMathMean

    $OpDocMathMean

    axes

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

    keepDims

    If true, retain the reduced axes.

    returns

    Result as a new tensor.

  88. def min(axes: Tensor = null, keepDims: Boolean = false): Tensor

    Permalink

    $OpDocMathMin

    $OpDocMathMin

    axes

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

    keepDims

    If true, retain the reduced axes.

    returns

    Result as a new tensor.

  89. def minimum(other: Tensor): Tensor

    Permalink

    $OpDocMathMinimum

    $OpDocMathMinimum

    returns

    Result as a new tensor.

  90. def mod(other: Tensor): Tensor

    Permalink

    $OpDocMathMod

    $OpDocMathMod

    returns

    Result as a new tensor.

  91. def multiply(other: Tensor): Tensor

    Permalink

    $OpDocMathMultiply

    $OpDocMathMultiply

    returns

    Result as a new tensor.

  92. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  93. def negate: Tensor

    Permalink

    $OpDocMathNegate

    $OpDocMathNegate

    returns

    Result as a new tensor.

  94. def notEqual(other: Tensor): Tensor

    Permalink

    $OpDocMathNotEqual

    $OpDocMathNotEqual

    returns

    Result as a new tensor.

  95. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  97. def polygamma(other: Tensor): Tensor

    Permalink

    $OpDocMathPolygamma

    $OpDocMathPolygamma

    returns

    Result as a new tensor.

  98. def pow(other: Tensor): Tensor

    Permalink

    $OpDocMathPow

    $OpDocMathPow

    returns

    Result as a new tensor.

  99. def prod(axes: Tensor = null, keepDims: Boolean = false): Tensor

    Permalink

    $OpDocMathProd

    $OpDocMathProd

    axes

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

    keepDims

    If true, retain the reduced axes.

    returns

    Result as a new tensor.

  100. def real: Tensor

    Permalink

    $OpDocMathReal

    $OpDocMathReal

    returns

    Result as a new tensor.

  101. def realDivide(other: Tensor): Tensor

    Permalink

    $OpDocMathRealDivide

    $OpDocMathRealDivide

    returns

    Result as a new tensor.

  102. def reciprocal: Tensor

    Permalink

    $OpDocMathReciprocal

    $OpDocMathReciprocal

    returns

    Result as a new tensor.

  103. def round: Tensor

    Permalink

    $OpDocMathRound

    $OpDocMathRound

    returns

    Result as a new tensor.

  104. def roundInt: Tensor

    Permalink

    $OpDocMathRoundInt

    $OpDocMathRoundInt

    returns

    Result as a new tensor.

  105. def rsqrt: Tensor

    Permalink

    $OpDocMathRsqrt

    $OpDocMathRsqrt

    returns

    Result as a new tensor.

  106. def segmentMax(segmentIndices: Tensor): Tensor

    Permalink

    $OpDocMathSegmentMax

    $OpDocMathSegmentMax

    segmentIndices

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

    returns

    Result as a new tensor.

  107. def segmentMean(segmentIndices: Tensor): Tensor

    Permalink

    $OpDocMathSegmentMean

    $OpDocMathSegmentMean

    segmentIndices

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

    returns

    Result as a new tensor.

  108. def segmentMin(segmentIndices: Tensor): Tensor

    Permalink

    $OpDocMathSegmentMin

    $OpDocMathSegmentMin

    segmentIndices

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

    returns

    Result as a new tensor.

  109. def segmentProd(segmentIndices: Tensor): Tensor

    Permalink

    $OpDocMathSegmentProd

    $OpDocMathSegmentProd

    segmentIndices

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

    returns

    Result as a new tensor.

  110. def segmentSum(segmentIndices: Tensor): Tensor

    Permalink

    $OpDocMathSegmentSum

    $OpDocMathSegmentSum

    segmentIndices

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

    returns

    Result as a new tensor.

  111. def sigmoid: Tensor

    Permalink

    $OpDocMathSigmoid

    $OpDocMathSigmoid

    returns

    Result as a new tensor.

  112. def sign: Tensor

    Permalink

    $OpDocMathSign

    $OpDocMathSign

    returns

    Result as a new tensor.

  113. def sin: Tensor

    Permalink

    $OpDocMathSin

    $OpDocMathSin

    returns

    Result as a new tensor.

  114. def sinh: Tensor

    Permalink

    $OpDocMathSinh

    $OpDocMathSinh

    returns

    Result as a new tensor.

  115. def sparseSegmentMean(indices: Tensor, segmentIndices: Tensor, numSegments: Tensor = null): Tensor

    Permalink

    $OpDocMathSparseSegmentMean

    $OpDocMathSparseSegmentMean

    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.

    returns

    Result as a new tensor.

  116. def sparseSegmentSum(indices: Tensor, segmentIndices: Tensor, numSegments: Tensor = null): Tensor

    Permalink

    $OpDocMathSparseSegmentSum

    $OpDocMathSparseSegmentSum

    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.

    returns

    Result as a new tensor.

  117. def sparseSegmentSumSqrtN(indices: Tensor, segmentIndices: Tensor, numSegments: Tensor = null): Tensor

    Permalink

    $OpDocMathSparseSegmentSumSqrtN

    $OpDocMathSparseSegmentSumSqrtN

    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.

    returns

    Result as a new tensor.

  118. def sqrt: Tensor

    Permalink

    $OpDocMathSqrt

    $OpDocMathSqrt

    returns

    Result as a new tensor.

  119. def square: Tensor

    Permalink

    $OpDocMathSquare

    $OpDocMathSquare

    returns

    Result as a new tensor.

  120. def squaredDifference(other: Tensor): Tensor

    Permalink

    $OpDocMathSquaredDifference

    $OpDocMathSquaredDifference

    returns

    Result as a new tensor.

  121. def subtract(other: Tensor): Tensor

    Permalink

    $OpDocMathSubtract

    $OpDocMathSubtract

    returns

    Result as a new tensor.

  122. def sum(axes: Tensor = null, keepDims: Boolean = false): Tensor

    Permalink

    $OpDocMathSum

    $OpDocMathSum

    axes

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

    keepDims

    If true, retain the reduced axes.

    returns

    Result as a new tensor.

  123. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  124. def tan: Tensor

    Permalink

    $OpDocMathTan

    $OpDocMathTan

    returns

    Result as a new tensor.

  125. def tanh: Tensor

    Permalink

    $OpDocMathTanh

    $OpDocMathTanh

    returns

    Result as a new tensor.

  126. val tensor: Tensor

    Permalink
  127. def tensorDot(other: Tensor, axesA: Tensor, axesB: Tensor): Tensor

    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

    other

    Tensor to contract with.

    axesA

    Axes to contract in a.

    axesB

    Axes to contract in b.

    returns

    Created op output.

  128. def tensorDot(other: Tensor, numAxes: Tensor): Tensor

    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

    other

    Tensor to contract with.

    numAxes

    Number of axes to contract.

    returns

    Created op output.

  129. def trace: Tensor

    Permalink

    $OpDocMathTrace

    $OpDocMathTrace

    returns

    Result as a new tensor.

  130. def truncateDivide(other: Tensor): Tensor

    Permalink

    $OpDocMathTruncateDivide

    $OpDocMathTruncateDivide

    returns

    Result as a new tensor.

  131. def truncateMod(other: Tensor): Tensor

    Permalink

    $OpDocMathTruncateMod

    $OpDocMathTruncateMod

    returns

    Result as a new tensor.

  132. def unary_!: Tensor

    Permalink

    $OpDocMathLogicalNot

    $OpDocMathLogicalNot

    returns

    Result as a new tensor.

  133. def unary_-: Tensor

    Permalink

    $OpDocMathNegate

    $OpDocMathNegate

    returns

    Result as a new tensor.

  134. def unsortedSegmentMax(segmentIndices: Tensor, segmentsNumber: Tensor): Tensor

    Permalink

    $OpDocMathUnsortedSegmentMax

    $OpDocMathUnsortedSegmentMax

    segmentIndices

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

    segmentsNumber

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

    returns

    Result as a new tensor.

  135. def unsortedSegmentSum(segmentIndices: Tensor, segmentsNumber: Tensor): Tensor

    Permalink

    $OpDocMathUnsortedSegmentSum

    $OpDocMathUnsortedSegmentSum

    segmentIndices

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

    segmentsNumber

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

    returns

    Result as a new tensor.

  136. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  139. def zerosFraction: Tensor

    Permalink

    $OpDocMathZerosFraction

    $OpDocMathZerosFraction

    returns

    Result as a new tensor, with FLOAT32 data type.

  140. def zeta(other: Tensor): Tensor

    Permalink

    $OpDocMathZeta

    $OpDocMathZeta

    returns

    Result as a new tensor.

  141. def ||(other: Tensor): Tensor

    Permalink

    $OpDocMathLogicalOr

    $OpDocMathLogicalOr

    returns

    Result as a new tensor.

Deprecated Value Members

  1. def floorDivide(other: Tensor): Tensor

    Permalink

    $OpDocMathFloorDivide

    $OpDocMathFloorDivide

    returns

    Result as a new tensor.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.1) Use truncateDivide instead.

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

MathOps

Ungrouped