com.intel.analytics.bigdl.tensor

QuantizedTensorUnsupported

abstract class QuantizedTensorUnsupported[T] extends Tensor[T]

Linear Supertypes
Tensor[T], Activity, TensorMath[T], Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. QuantizedTensorUnsupported
  2. Tensor
  3. Activity
  4. TensorMath
  5. Serializable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new QuantizedTensorUnsupported()(implicit arg0: ClassTag[T])

Abstract Value Members

  1. abstract def copy(other: Tensor[T]): Tensor[T]

    Copy the value of the given tensor to the current.

    Copy the value of the given tensor to the current. They should have same size. It will use the old storage

    other

    source tensor

    returns

    current tensor

    Definition Classes
    Tensor
  2. abstract def dim(): Int

    A shortcut of nDimension()

    A shortcut of nDimension()

    Definition Classes
    Tensor
    See also

    nDimension()

  3. abstract def getTensorNumeric(): TensorNumeric[T]

    Return tensor numeric

    Return tensor numeric

    returns

    Definition Classes
    Tensor
  4. abstract def getTensorType: TensorType

    Return tensor type

    Return tensor type

    returns

    Dense / Quant

    Definition Classes
    Tensor
  5. abstract def nDimension(): Int

    Dimension number of the tensor.

    Dimension number of the tensor. For empty tensor, its dimension number is 0

    returns

    dimension number

    Definition Classes
    Tensor
  6. abstract def nElement(): Int

    Element number

    Element number

    returns

    element number

    Definition Classes
    Tensor
  7. abstract def set(): Tensor[T]

    Shrunk the size of the storage to 0, and also the tensor size

    Shrunk the size of the storage to 0, and also the tensor size

    returns

    Definition Classes
    Tensor
  8. abstract def set(other: Tensor[T]): Tensor[T]

    The Tensor is now going to "view" the same storage as the given tensor.

    The Tensor is now going to "view" the same storage as the given tensor. As the result, any modification in the elements of the Tensor will have an impact on the elements of the given tensor, and vice-versa. This is an efficient method, as there is no memory copy!

    other

    the given tensor

    returns

    current tensor

    Definition Classes
    Tensor
  9. abstract def size(dim: Int): Int

    size of the tensor on the given dimension

    size of the tensor on the given dimension

    dim

    dimension, count from 1

    returns

    size

    Definition Classes
    Tensor
  10. abstract def size(): Array[Int]

    Size of tensor.

    Size of tensor. Return an array of which each value represents the size on the dimension(i + 1), i is the index of the corresponding value. It will generate a new array each time method is invoked.

    returns

    size array

    Definition Classes
    Tensor
  11. abstract def stride(dim: Int): Int

    Jumps between elements on the given dimension in the storage.

    Jumps between elements on the given dimension in the storage.

    dim

    dimension, count from 1

    returns

    jump

    Definition Classes
    Tensor
  12. abstract def stride(): Array[Int]

    Jumps between elements on the each dimension in the storage.

    Jumps between elements on the each dimension in the storage. It will generate a new array each time method is invoked.

    returns

    strides array

    Definition Classes
    Tensor

Concrete Value Members

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

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

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

    Definition Classes
    AnyRef → Any
  4. def *(t: Tensor[T]): Tensor[T]

    Multiply a Tensor by another one, return the result in new allocated memory.

    Multiply a Tensor by another one, return the result in new allocated memory. The number of elements in the Tensors must match, but the sizes do not matter. The size of the returned Tensor will be the size of the first Tensor

    t
    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  5. def *(s: T): Tensor[T]

    multiply all elements of this with value not in place.

    multiply all elements of this with value not in place. It will allocate new memory.

    s
    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  6. def +(t: Tensor[T]): Tensor[T]

    Add a Tensor to another one, return the result in new allocated memory.

    Add a Tensor to another one, return the result in new allocated memory. The number of elements in the Tensors must match, but the sizes do not matter. The size of the returned Tensor will be the size of the first Tensor

    t
    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  7. def +(s: T): Tensor[T]

    Add all elements of this with value not in place.

    Add all elements of this with value not in place. It will allocate new memory.

    s
    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  8. def +(e: Either[Tensor[T], T]): Tensor[T]

    Definition Classes
    TensorMath
  9. def -(t: Tensor[T]): Tensor[T]

    Subtract a Tensor from another one, return the result in new allocated memory.

    Subtract a Tensor from another one, return the result in new allocated memory. The number of elements in the Tensors must match, but the sizes do not matter. The size of the returned Tensor will be the size of the first Tensor

    t
    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  10. def -(s: T): Tensor[T]

    subtract all elements of this with the value not in place.

    subtract all elements of this with the value not in place. It will allocate new memory.

    s
    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  11. def /(t: Tensor[T]): Tensor[T]

    Divide a Tensor by another one, return the result in new allocated memory.

    Divide a Tensor by another one, return the result in new allocated memory. The number of elements in the Tensors must match, but the sizes do not matter. The size of the returned Tensor will be the size of the first Tensor

    t
    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  12. def /(s: T): Tensor[T]

    divide all elements of this with value not in place.

    divide all elements of this with value not in place. It will allocate new memory.

    s
    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  13. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  15. def abs(x: Tensor[T]): Tensor[T]

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  16. def abs(): Tensor[T]

    replaces all elements in-place with the absolute values of the elements of this.

    replaces all elements in-place with the absolute values of the elements of this.

    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  17. def add(x: Tensor[T], y: Tensor[T]): Tensor[T]

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  18. def add(value: T): Tensor[T]

    x.

    x.add(value) : add value to all elements of x in place.

    value
    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  19. def add(x: Tensor[T], value: T, y: Tensor[T]): Tensor[T]

    z.

    z.add(x, value, y) puts the result of x + value * y in z.

    x
    value
    y
    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  20. def add(y: Tensor[T]): Tensor[T]

    accumulates all elements of y into this

    accumulates all elements of y into this

    y

    other tensor

    returns

    current tensor

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  21. def add(value: T, y: Tensor[T]): Tensor[T]

    x.

    x.add(value,y) multiply-accumulates values of y into x.

    value

    scalar

    y

    other tensor

    returns

    current tensor

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  22. def addSingletonDimension(t: Tensor[T], dim: Int): Tensor[T]

    view this.

    view this.tensor and add a Singleton Dimension to dim dimension

    t

    source tensor

    dim

    the specific dimension, default is 1

    returns

    this

    Definition Classes
    QuantizedTensorUnsupportedTensor
  23. def addcdiv(value: T, tensor1: Tensor[T], tensor2: Tensor[T]): Tensor[T]

    Performs the element-wise division of tensor1 by tensor2, multiply the result by the scalar value and add it to x.

    Performs the element-wise division of tensor1 by tensor2, multiply the result by the scalar value and add it to x. The number of elements must match, but sizes do not matter.

    value
    tensor1
    tensor2
    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  24. def addcmul(tensor1: Tensor[T], tensor2: Tensor[T]): Tensor[T]

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  25. def addcmul(value: T, tensor1: Tensor[T], tensor2: Tensor[T]): Tensor[T]

    Performs the element-wise multiplication of tensor1 by tensor2, multiply the result by the scalar value (1 if not present) and add it to x.

    Performs the element-wise multiplication of tensor1 by tensor2, multiply the result by the scalar value (1 if not present) and add it to x. The number of elements must match, but sizes do not matter.

    value
    tensor1
    tensor2

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  26. def addmm(v1: T, v2: T, mat1: Tensor[T], mat2: Tensor[T]): Tensor[T]

    res = v1 * res + v2 * mat1*mat2

    res = v1 * res + v2 * mat1*mat2

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  27. def addmm(v2: T, mat1: Tensor[T], mat2: Tensor[T]): Tensor[T]

    res = res + v2 * mat1 * mat2

    res = res + v2 * mat1 * mat2

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  28. def addmm(mat1: Tensor[T], mat2: Tensor[T]): Tensor[T]

    res = res + mat1 * mat2

    res = res + mat1 * mat2

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  29. def addmm(M: Tensor[T], mat1: Tensor[T], mat2: Tensor[T]): Tensor[T]

    res = M + (mat1*mat2)

    res = M + (mat1*mat2)

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  30. def addmm(v1: T, M: Tensor[T], v2: T, mat1: Tensor[T], mat2: Tensor[T]): Tensor[T]

    Performs a matrix-matrix multiplication between mat1 (2D tensor) and mat2 (2D tensor).

    Performs a matrix-matrix multiplication between mat1 (2D tensor) and mat2 (2D tensor). Optional values v1 and v2 are scalars that multiply M and mat1 * mat2 respectively. Optional value beta is a scalar that scales the result tensor, before accumulating the result into the tensor. Defaults to 1.0. If mat1 is a n x m matrix, mat2 a m x p matrix, M must be a n x p matrix.

    res = (v1 * M) + (v2 * mat1*mat2)

    v1
    M
    v2
    mat1
    mat2

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  31. def addmv(alpha: T, mat: Tensor[T], vec2: Tensor[T]): Tensor[T]

    res = res + alpha * (mat * vec2)

    res = res + alpha * (mat * vec2)

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  32. def addmv(beta: T, alpha: T, mat: Tensor[T], vec2: Tensor[T]): Tensor[T]

    res = beta * res + alpha * (mat * vec2)

    res = beta * res + alpha * (mat * vec2)

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  33. def addmv(beta: T, vec1: Tensor[T], alpha: T, mat: Tensor[T], vec2: Tensor[T]): Tensor[T]

    Performs a matrix-vector multiplication between mat (2D Tensor) and vec2 (1D Tensor) and add it to vec1.

    Performs a matrix-vector multiplication between mat (2D Tensor) and vec2 (1D Tensor) and add it to vec1. Optional values v1 and v2 are scalars that multiply vec1 and vec2 respectively.

    In other words, res = (beta * vec1) + alpha * (mat * vec2)

    Sizes must respect the matrix-multiplication operation: if mat is a n × m matrix, vec2 must be vector of size m and vec1 must be a vector of size n.

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  34. def addr(v1: T, t1: Tensor[T], v2: T, t2: Tensor[T], t3: Tensor[T]): Tensor[T]

    Performs the outer-product between vec1 (1D Tensor) and vec2 (1D Tensor).

    Performs the outer-product between vec1 (1D Tensor) and vec2 (1D Tensor). Optional values v1 and v2 are scalars that multiply mat and vec1 [out] vec2 respectively. In other words,res_ij = (v1 * mat_ij) + (v2 * vec1_i * vec2_j)

    v1
    t1
    v2
    t2
    t3
    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  35. def addr(v1: T, t1: Tensor[T], v2: T, t2: Tensor[T]): Tensor[T]

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  36. def addr(v1: T, t1: Tensor[T], t2: Tensor[T]): Tensor[T]

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  37. def addr(t1: Tensor[T], t2: Tensor[T]): Tensor[T]

    Performs the outer-product between vec1 (1D tensor) and vec2 (1D tensor).

    Performs the outer-product between vec1 (1D tensor) and vec2 (1D tensor). Optional values v1 and v2 are scalars that multiply mat and vec1 [out] vec2 respectively. In other words, res_ij = (v1 * mat_ij) + (v2 * vec1_i * vec2_j)

    t1
    t2
    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  38. def almostEqual(other: Tensor[T], delta: Double): Boolean

    Compare with other tensor.

    Compare with other tensor. The shape of the other tensor must be same with this tensor. If element wise difference is less than delta, return true.

    other
    delta
    returns

    Definition Classes
    Tensor
  39. def apply(t: Table): Tensor[T]

    Subset the tensor by apply the element of the given table to corresponding dimension of the tensor.

    Subset the tensor by apply the element of the given table to corresponding dimension of the tensor. The element of the given table can be an Int or another Table. An Int means select on current dimension; A table means narrow on current dimension, the table should has two elements, of which the first is start index and the second is the end index. An empty table is equals to Table(1, size_of_current_dimension) If the table length is less than the tensor dimension, the missing dimension is applied by an empty table

    t

    The table length should be less than or equal to the tensor dimensions

    returns

    Definition Classes
    QuantizedTensorUnsupportedTensor
    See also

    narrow

    select

  40. def apply(indexes: Array[Int]): T

    Query the value on a given index.

    Query the value on a given index. Tensor should not be empty

    indexes

    the indexes length should be same as the tensor dimension length and each value count from 1

    returns

    the value on the given index

    Definition Classes
    QuantizedTensorUnsupportedTensor
  41. def apply(index: Int): Tensor[T]

    Query tensor on a given index.

    Query tensor on a given index. Tensor should not be empty

    index

    count from 1

    returns

    Definition Classes
    QuantizedTensorUnsupportedTensor
  42. def apply1(func: (T) ⇒ T): Tensor[T]

    Apply a function to each element of the tensor and modified it value if it return a double

    Apply a function to each element of the tensor and modified it value if it return a double

    func

    applied function

    returns

    current tensor

    Definition Classes
    QuantizedTensorUnsupportedTensor
  43. def applyFun[A](t: Tensor[A], func: (A) ⇒ T)(implicit arg0: ClassTag[A]): Tensor[T]

    Apply a function to each element of the tensor t and set each value to self

    Apply a function to each element of the tensor t and set each value to self

    t

    tensor to be modified

    func

    applied function

    returns

    current tensor

    Definition Classes
    QuantizedTensorUnsupportedTensor
  44. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  45. def baddbmm(alpha: T, batch1: Tensor[T], batch2: Tensor[T]): Tensor[T]

    res_i = res_i + (alpha * batch1_i * batch2_i)

    res_i = res_i + (alpha * batch1_i * batch2_i)

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  46. def baddbmm(beta: T, alpha: T, batch1: Tensor[T], batch2: Tensor[T]): Tensor[T]

    res_i = (beta * res_i) + (alpha * batch1_i * batch2_i)

    res_i = (beta * res_i) + (alpha * batch1_i * batch2_i)

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  47. def baddbmm(beta: T, M: Tensor[T], alpha: T, batch1: Tensor[T], batch2: Tensor[T]): Tensor[T]

    Perform a batch matrix matrix multiplication of matrices and stored in batch1 and batch2 with batch add.

    Perform a batch matrix matrix multiplication of matrices and stored in batch1 and batch2 with batch add. batch1 and batch2 must be 3D Tensors each containing the same number of matrices. If batch1 is a b × n × m Tensor, batch2 a b × m × p Tensor, res will be a b × n × p Tensor.

    In other words, res_i = (beta * M_i) + (alpha * batch1_i * batch2_i)

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  48. def bernoulli(p: Double): Tensor[T]

    Fill with random value(bernoulli distribution).

    Fill with random value(bernoulli distribution). It will change the value of the current tensor and return itself

    returns

    current tensor

    Definition Classes
    QuantizedTensorUnsupportedTensor
  49. def bmm(batch1: Tensor[T], batch2: Tensor[T]): Tensor[T]

    res_i = res_i + batch1_i * batch2_i

    res_i = res_i + batch1_i * batch2_i

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  50. def cast[D](castTensor: Tensor[D])(implicit arg0: ClassTag[D], ev: TensorNumeric[D]): Tensor[D]

    Cast the currenct tensor to a tensor with tensor numeric type D and set cast value to castTensor

    Cast the currenct tensor to a tensor with tensor numeric type D and set cast value to castTensor

    D

    new numeric type

    castTensor

    the cast value set to this tensor

    returns

    return castTensort

    Definition Classes
    QuantizedTensorUnsupportedTensor
  51. def cdiv(x: Tensor[T], y: Tensor[T]): Tensor[T]

    Element-wise divide z.

    Element-wise divide z.cdiv(x, y) means z = x / y

    x

    tensor

    y

    tensor

    returns

    current tensor

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  52. def cdiv(y: Tensor[T]): Tensor[T]

    Element-wise divide x.

    Element-wise divide x.cdiv(y) all elements of x divide all elements of y. x = x / y

    y

    tensor

    returns

    current tensor

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  53. def ceil(): Tensor[T]

    Replaces all elements in-place with the ceil result of elements

    Replaces all elements in-place with the ceil result of elements

    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  54. def clamp(minValue: Float, maxValue: Float): Tensor[T]

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  55. def clone(): Tensor[T]

    Get a new tensor with same value and different storage

    Get a new tensor with same value and different storage

    returns

    new tensor

    Definition Classes
    Tensor → AnyRef
  56. def cmax(x: Tensor[T], y: Tensor[T]): Tensor[T]

    stores the element-wise maximum of x and y in z.

    stores the element-wise maximum of x and y in z. z.cmax(x, y) means z = max(x, y)

    x

    tensor

    y

    tensor

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  57. def cmax(y: Tensor[T]): Tensor[T]

    stores the element-wise maximum of x and y in x.

    stores the element-wise maximum of x and y in x. x.cmax(y) = max(x, y)

    y

    tensor

    returns

    current tensor

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  58. def cmax(value: T): Tensor[T]

    For each elements of the tensor, performs the max operation compared with the given value vector.

    For each elements of the tensor, performs the max operation compared with the given value vector.

    value
    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  59. def cmin(x: Tensor[T], y: Tensor[T]): Tensor[T]

    stores the element-wise maximum of x and y in z.

    stores the element-wise maximum of x and y in z. z.cmin(x, y) means z = min(x, y)

    x

    tensor

    y

    tensor

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  60. def cmin(y: Tensor[T]): Tensor[T]

    stores the element-wise maximum of x and y in x.

    stores the element-wise maximum of x and y in x. x.cmin(y) = min(x, y)

    y

    tensor

    returns

    current tensor

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  61. def cmul(x: Tensor[T], y: Tensor[T]): Tensor[T]

    Element-wise multiply z.

    Element-wise multiply z.cmul(x, y) equals z = x * y

    x

    tensor

    y

    tensor

    returns

    current tensor

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  62. def cmul(y: Tensor[T]): Tensor[T]

    Element-wise multiply x.

    Element-wise multiply x.cmul(y) multiplies all elements of x with corresponding elements of y. x = x * y

    y

    tensor

    returns

    current tensor

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  63. def contiguous(): Tensor[T]

    Get a contiguous tensor from current tensor

    Get a contiguous tensor from current tensor

    returns

    the current tensor if it's contiguous; or a new contiguous tensor with separated storage

    Definition Classes
    QuantizedTensorUnsupportedTensor
  64. def conv2(kernel: Tensor[T], vf: Char): Tensor[T]

    This function computes 2 dimensional convolution of a single image with a single kernel (2D output).

    This function computes 2 dimensional convolution of a single image with a single kernel (2D output). the dimensions of input and kernel need to be 2, and Input image needs to be bigger than kernel. The last argument controls if the convolution is a full ('F') or valid ('V') convolution. The default is valid convolution.

    kernel
    vf

    full ('F') or valid ('V') convolution.

    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  65. def diff(other: Tensor[T], count: Int, reverse: Boolean): Boolean

    Compare and print differences between two tensors

    Compare and print differences between two tensors

    other
    count
    returns

    true if there's difference, vice versa

    Definition Classes
    QuantizedTensorUnsupportedTensor
  66. def digamma(): Tensor[T]

    Computes Psi, the derivative of Lgamma (the log of the absolute value of Gamma(x)), element-wise and update the content inplace

    Computes Psi, the derivative of Lgamma (the log of the absolute value of Gamma(x)), element-wise and update the content inplace

    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  67. def dist(y: Tensor[T], norm: Int): T

    Performs the p-norm distance calculation between two tensors

    Performs the p-norm distance calculation between two tensors

    y

    the secode Tensor

    norm

    the norm of distance

    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  68. def div(y: Tensor[T]): Tensor[T]

    Element-wise divide x.

    Element-wise divide x.div(y) all elements of x divide all elements of y. x = x / y

    y

    tensor

    returns

    current tensor

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  69. def div(value: T): Tensor[T]

    divide all elements of this with value in-place.

    divide all elements of this with value in-place.

    value
    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  70. def dot(y: Tensor[T]): T

    Performs the dot product.

    Performs the dot product. The number of elements must match: both Tensors are seen as a 1D vector.

    y
    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  71. def emptyInstance(): Tensor[T]

    return a new empty tensor of the same type

    return a new empty tensor of the same type

    returns

    new tensor

    Definition Classes
    QuantizedTensorUnsupportedTensor
  72. def eq(x: Tensor[T], y: T): Tensor[T]

    Implements == operator comparing each element in x with y

    Implements == operator comparing each element in x with y

    y
    returns

    current tensor reference

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  73. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  74. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  75. def erf(): Tensor[T]

    Computes the reciprocal of this tensor element-wise and update the content inplace

    Computes the reciprocal of this tensor element-wise and update the content inplace

    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  76. def erfc(): Tensor[T]

    Computes the reciprocal of this tensor element-wise and update the content inplace

    Computes the reciprocal of this tensor element-wise and update the content inplace

    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  77. val errorString: String

  78. def exp(): Tensor[T]

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  79. def exp(y: Tensor[T]): Tensor[T]

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  80. def expand(sizes: Array[Int]): Tensor[T]

    Expanding a tensor allocates new memory, tensor where singleton dimensions can be expanded to multiple ones by setting the stride to 0.

    Expanding a tensor allocates new memory, tensor where singleton dimensions can be expanded to multiple ones by setting the stride to 0. Any dimension that has size 1 can be expanded to arbitrary value with new memory allocation. Attempting to expand along a dimension that does not have size 1 will result in an error.

    sizes

    the size that tensor will expend to

    returns

    Definition Classes
    QuantizedTensorUnsupportedTensor
  81. def expandAs(template: Tensor[T]): Tensor[T]

    This is equivalent to this.

    This is equivalent to this.expand(template.size())

    template

    the given tensor

    returns

    Definition Classes
    QuantizedTensorUnsupportedTensor
  82. def fill(v: T): Tensor[T]

    Fill with a given value.

    Fill with a given value. It will change the value of the current tensor and return itself

    v

    value to fill the tensor

    returns

    current tensor

    Definition Classes
    QuantizedTensorUnsupportedTensor
  83. def finalize(): Unit

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

    Replaces all elements in-place with the floor result of elements

    Replaces all elements in-place with the floor result of elements

    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  85. def floor(y: Tensor[T]): Tensor[T]

    Populate the given tensor with the floor result of elements

    Populate the given tensor with the floor result of elements

    y
    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  86. def forceFill(v: Any): Tensor[T]

    Fill with a given value.

    Fill with a given value. It will change the value of the current tensor and return itself

    Note the value should be an instance of T

    v

    value to fill the tensor

    returns

    current tensor

    Definition Classes
    QuantizedTensorUnsupportedTensor
  87. def gather(dim: Int, index: Tensor[T], src: Tensor[T]): Tensor[T]

    change this tensor with values from the original tensor by gathering a number of values from each "row", where the rows are along the dimension dim.

    change this tensor with values from the original tensor by gathering a number of values from each "row", where the rows are along the dimension dim.

    dim
    index
    src
    returns

    this

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  88. def ge(x: Tensor[T], value: Double): Tensor[T]

    Implements >= operator comparing each element in x with value

    Implements >= operator comparing each element in x with value

    x
    value
    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  89. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  90. def getType(): TensorDataType

    return the tensor datatype( DoubleType or FloatType)

    return the tensor datatype( DoubleType or FloatType)

    returns

    Definition Classes
    QuantizedTensorUnsupportedTensor
  91. def gt(x: Tensor[T], y: Tensor[T]): Tensor[T]

    Implements > operator comparing each element in x with y

    Implements > operator comparing each element in x with y

    x
    y
    returns

    current tensor reference

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  92. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  93. def index(dim: Int, index: Tensor[T], y: Tensor[T]): Tensor[T]

    Accumulate the elements of tensor into the original tensor by adding to the indices in the order given in index.

    Accumulate the elements of tensor into the original tensor by adding to the indices in the order given in index. The shape of tensor must exactly match the elements indexed or an error will be thrown.

    dim
    index
    y
    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  94. def indexAdd(dim: Int, index: Tensor[T], y: Tensor[T]): Tensor[T]

    Accumulate the elements of tensor into the original tensor by adding to the indices in the order given in index.

    Accumulate the elements of tensor into the original tensor by adding to the indices in the order given in index. The shape of tensor must exactly match the elements indexed or an error will be thrown.

    dim
    index
    y
    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  95. def inv(): Tensor[T]

    Computes the reciprocal of this tensor element-wise and update the content inplace

    Computes the reciprocal of this tensor element-wise and update the content inplace

    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  96. def isContiguous(): Boolean

    Check if the tensor is contiguous on the storage

    Check if the tensor is contiguous on the storage

    returns

    true if it's contiguous

    Definition Classes
    QuantizedTensorUnsupportedTensor
  97. def isEmpty: Boolean

    returns

    whether this tensor is an empty tensor. Note that nDimension == 0 is not sufficient to determine a tensor is empty, because a scalar tensor's nDimension is also 0.

    Definition Classes
    QuantizedTensorUnsupportedTensor
  98. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  99. def isSameSizeAs(other: Tensor[_]): Boolean

    Check if the size is same with the give tensor

    Check if the size is same with the give tensor

    other

    tensor to be compared

    returns

    true if they have same size

    Definition Classes
    QuantizedTensorUnsupportedTensor
  100. def isScalar: Boolean

    returns

    whether this tensor is a scalar

    Definition Classes
    QuantizedTensorUnsupportedTensor
  101. def isTable: Boolean

    Return false because it's not a Table

    Return false because it's not a Table

    returns

    false

    Definition Classes
    TensorActivity
  102. def isTensor: Boolean

    Return true because it's a Tensor implemented from Activity

    Return true because it's a Tensor implemented from Activity

    returns

    true

    Definition Classes
    TensorActivity
  103. def le(x: Tensor[T], y: Tensor[T]): Tensor[T]

    Implements <= operator comparing each element in x with y

    Implements <= operator comparing each element in x with y

    x
    y
    returns

    current tensor reference

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  104. def log(): Tensor[T]

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  105. def log(y: Tensor[T]): Tensor[T]

    Replaces all elements in-place with the elements of lnx

    Replaces all elements in-place with the elements of lnx

    y
    returns

    current tensor reference

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  106. def log1p(): Tensor[T]

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  107. def log1p(y: Tensor[T]): Tensor[T]

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  108. def logGamma(): Tensor[T]

    Computes the log of the absolute value of Gamma(x) element-wise, and update the content inplace

    Computes the log of the absolute value of Gamma(x) element-wise, and update the content inplace

    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  109. def lt(x: Tensor[T], y: Tensor[T]): Tensor[T]

    Implements < operator comparing each element in x with y

    Implements < operator comparing each element in x with y

    x
    y
    returns

    current tensor reference

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  110. def map(other: Tensor[T], func: (T, T) ⇒ T): Tensor[T]

    Map value of another tensor to corresponding value of current tensor and apply function on the two value and change the value of the current tensor The another tensor should has the same size of the current tensor

    Map value of another tensor to corresponding value of current tensor and apply function on the two value and change the value of the current tensor The another tensor should has the same size of the current tensor

    other

    another tensor

    func

    applied function

    returns

    current tensor

    Definition Classes
    QuantizedTensorUnsupportedTensor
  111. def maskedCopy(mask: Tensor[T], y: Tensor[T]): Tensor[T]

    Copies the elements of tensor into mask locations of itself.

    Copies the elements of tensor into mask locations of itself.

    mask
    y
    returns

    current tensor reference

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  112. def maskedFill(mask: Tensor[T], e: T): Tensor[T]

    Fills the masked elements of itself with value val

    Fills the masked elements of itself with value val

    mask
    e
    returns

    current tensor reference

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  113. def maskedSelect(mask: Tensor[T], y: Tensor[T]): Tensor[T]

    Returns a new Tensor which contains all elements aligned to a 1 in the corresponding mask.

    Returns a new Tensor which contains all elements aligned to a 1 in the corresponding mask.

    mask
    y
    returns

    current tensor reference

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  114. def max(values: Tensor[T], indices: Tensor[T], dim: Int): (Tensor[T], Tensor[T])

    performs the max operation over the dimension n

    performs the max operation over the dimension n

    values
    indices
    dim
    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  115. def max(dim: Int): (Tensor[T], Tensor[T])

    performs the max operation over the dimension n

    performs the max operation over the dimension n

    dim
    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  116. def max(): T

    returns the single biggest element of x

    returns the single biggest element of x

    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  117. def mean(dim: Int): Tensor[T]

    performs the mean operation over the dimension dim.

    performs the mean operation over the dimension dim.

    dim
    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  118. def mean(): T

    returns the mean of all elements of this.

    returns the mean of all elements of this.

    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  119. def min(values: Tensor[T], indices: Tensor[T], dim: Int): (Tensor[T], Tensor[T])

    performs the min operation over the dimension n

    performs the min operation over the dimension n

    values
    indices
    dim
    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  120. def min(dim: Int): (Tensor[T], Tensor[T])

    performs the min operation over the dimension n

    performs the min operation over the dimension n

    dim
    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  121. def min(): T

    returns the single minimum element of x

    returns the single minimum element of x

    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  122. def mm(mat1: Tensor[T], mat2: Tensor[T]): Tensor[T]

    res = mat1*mat2

    res = mat1*mat2

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  123. def mul(x: Tensor[T], value: T): Tensor[T]

    put the result of x * value in current tensor

    put the result of x * value in current tensor

    value
    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  124. def mul(value: T): Tensor[T]

    multiply all elements of this with value in-place.

    multiply all elements of this with value in-place.

    value
    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  125. def mv(mat: Tensor[T], vec2: Tensor[T]): Tensor[T]

    res = res + (mat * vec2)

    res = res + (mat * vec2)

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  126. def narrow(dim: Int, index: Int, size: Int): Tensor[T]

    Get a subset of the tensor on dim-th dimension.

    Get a subset of the tensor on dim-th dimension. The offset is given by index, and length is give by size. The important difference with select is that it will not reduce the dimension number. For Instance tensor = 1 2 3 4 5 6 tensor.narrow(1, 1, 1) is [1 2 3] tensor.narrow(2, 2, 2) is 2 3 5 6

    dim
    index
    size
    returns

    Definition Classes
    QuantizedTensorUnsupportedTensor
  127. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  128. def negative(x: Tensor[T]): Tensor[T]

    Computes numerical negative value element-wise.

    Computes numerical negative value element-wise. y = -x

    x
    returns

    this tensor

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  129. def norm(value: Int): T

    returns the sum of the n-norms on the Tensor x

    returns the sum of the n-norms on the Tensor x

    value

    the n-norms

    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  130. def norm(y: Tensor[T], value: Int, dim: Int): Tensor[T]

    returns the p-norms of the Tensor x computed over the dimension dim.

    returns the p-norms of the Tensor x computed over the dimension dim.

    y

    result buffer

    value
    dim
    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  131. def notEqualValue(value: Double): Boolean

    Element wise inequality between tensor and given value

    Element wise inequality between tensor and given value

    value
    returns

    Definition Classes
    Tensor
  132. final def notify(): Unit

    Definition Classes
    AnyRef
  133. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  134. def numNonZeroByRow(): Array[Int]

    Count the number of non-zero elements in first dimension.

    Count the number of non-zero elements in first dimension. For SparseTensor only.

    returns

    an array number of non-zero elements in first dimension.

    Definition Classes
    Tensor
  135. def pow(n: T): Tensor[T]

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  136. def pow(y: Tensor[T], n: T): Tensor[T]

    Replaces all elements in-place with the elements of x to the power of n

    Replaces all elements in-place with the elements of x to the power of n

    y
    n
    returns

    current tensor reference

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  137. def prod(x: Tensor[T], dim: Int): Tensor[T]

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  138. def prod(): T

    returns the product of the elements of this

    returns the product of the elements of this

    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  139. def rand(lowerBound: Double, upperBound: Double): Tensor[T]

    Fill with random value(uniform distribution between [lowerBound, upperBound]) It will change the value of the current tensor and return itself

    Fill with random value(uniform distribution between [lowerBound, upperBound]) It will change the value of the current tensor and return itself

    returns

    current tensor

    Definition Classes
    QuantizedTensorUnsupportedTensor
  140. def rand(): Tensor[T]

    Fill with random value(uniform distribution).

    Fill with random value(uniform distribution). It will change the value of the current tensor and return itself

    returns

    current tensor

    Definition Classes
    QuantizedTensorUnsupportedTensor
  141. def randn(mean: Double, stdv: Double): Tensor[T]

    Fill with random value(normal gaussian distribution with the specified mean and stdv).

    Fill with random value(normal gaussian distribution with the specified mean and stdv). It will change the value of the current tensor and return itself

    returns

    current tensor

    Definition Classes
    QuantizedTensorUnsupportedTensor
  142. def randn(): Tensor[T]

    Fill with random value(normal gaussian distribution).

    Fill with random value(normal gaussian distribution). It will change the value of the current tensor and return itself

    returns

    current tensor

    Definition Classes
    QuantizedTensorUnsupportedTensor
  143. def range(xmin: Double, xmax: Double, step: Int): Tensor[T]

    resize this tensor size to floor((xmax - xmin) / step) + 1 and set values from xmin to xmax with step (default to 1).

    resize this tensor size to floor((xmax - xmin) / step) + 1 and set values from xmin to xmax with step (default to 1).

    xmin
    xmax
    step
    returns

    this tensor

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  144. def reduce(dim: Int, result: Tensor[T], reducer: (T, T) ⇒ T): Tensor[T]

    Reduce along the given dimension with the given reducer, and copy the result to the result tensor

    Reduce along the given dimension with the given reducer, and copy the result to the result tensor

    dim
    result
    reducer

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  145. def repeatTensor(sizes: Array[Int]): Tensor[T]

    Repeating a tensor allocates new memory, unless result is provided, in which case its memory is resized.

    Repeating a tensor allocates new memory, unless result is provided, in which case its memory is resized. sizes specify the number of times the tensor is repeated in each dimension.

    sizes
    returns

    Definition Classes
    QuantizedTensorUnsupportedTensor
  146. def reshape(sizes: Array[Int]): Tensor[T]

    create a new tensor without any change of the tensor

    create a new tensor without any change of the tensor

    sizes

    the size of the new Tensor

    returns

    Definition Classes
    QuantizedTensorUnsupportedTensor
  147. def resize(size1: Int, size2: Int, size3: Int, size4: Int, size5: Int): QuantizedTensorUnsupported.this.type

    Definition Classes
    QuantizedTensorUnsupportedTensor
  148. def resize(size1: Int, size2: Int, size3: Int, size4: Int): QuantizedTensorUnsupported.this.type

    Definition Classes
    QuantizedTensorUnsupportedTensor
  149. def resize(size1: Int, size2: Int, size3: Int): QuantizedTensorUnsupported.this.type

    Definition Classes
    QuantizedTensorUnsupportedTensor
  150. def resize(size1: Int, size2: Int): QuantizedTensorUnsupported.this.type

    Definition Classes
    QuantizedTensorUnsupportedTensor
  151. def resize(size1: Int): QuantizedTensorUnsupported.this.type

    Definition Classes
    QuantizedTensorUnsupportedTensor
  152. def resize(sizes: Array[Int], strides: Array[Int]): QuantizedTensorUnsupported.this.type

    Resize the current tensor to the give shape

    Resize the current tensor to the give shape

    sizes

    Array describe the size

    strides

    Array describe the jumps

    returns

    Definition Classes
    QuantizedTensorUnsupportedTensor
  153. def resize(sizes: Array[Int], nElement: Int): Tensor[T]

    Definition Classes
    Tensor
  154. def resizeAs(src: Tensor[_]): Tensor[T]

    Resize the current tensor to the same size of the given tensor.

    Resize the current tensor to the same size of the given tensor. It will still use the same storage if the storage is sufficient for the new size

    src

    target tensor

    returns

    current tensor

    Definition Classes
    QuantizedTensorUnsupportedTensor
  155. def save(path: String, overWrite: Boolean): QuantizedTensorUnsupported.this.type

    Save the tensor to given path

    Save the tensor to given path

    path
    overWrite
    returns

    Definition Classes
    QuantizedTensorUnsupportedTensor
  156. def scatter(dim: Int, index: Tensor[T], src: Tensor[T]): Tensor[T]

    Writes all values from tensor src into this tensor at the specified indices

    Writes all values from tensor src into this tensor at the specified indices

    dim
    index
    src
    returns

    this

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  157. def select(dim: Int, index: Int): Tensor[T]

    Remove the dim-th dimension and return the subset part.

    Remove the dim-th dimension and return the subset part. For instance tensor = 1 2 3 4 5 6 tensor.select(1, 1) is [1 2 3] tensor.select(1, 2) is [4 5 6] tensor.select(2, 3) is [3 6]

    dim
    index
    returns

    Definition Classes
    QuantizedTensorUnsupportedTensor
  158. def set(storage: Storage[T], storageOffset: Int, sizes: Array[Int], strides: Array[Int]): Tensor[T]

    The Tensor is now going to "view" the given storage, starting at position storageOffset (>=1) with the given dimension sizes and the optional given strides.

    The Tensor is now going to "view" the given storage, starting at position storageOffset (>=1) with the given dimension sizes and the optional given strides. As the result, any modification in the elements of the Storage will have an impact on the elements of the Tensor, and vice-versa. This is an efficient method, as there is no memory copy!

    If only storage is provided, the whole storage will be viewed as a 1D Tensor.

    storage
    storageOffset
    sizes
    strides
    returns

    current tensor

    Definition Classes
    QuantizedTensorUnsupportedTensor
  159. def setValue(value: T): QuantizedTensorUnsupported.this.type

    Set value for a scalar tensor

    Set value for a scalar tensor

    value

    the written value

    returns

    Definition Classes
    QuantizedTensorUnsupportedTensor
  160. def setValue(d1: Int, d2: Int, d3: Int, d4: Int, d5: Int, value: T): QuantizedTensorUnsupported.this.type

    Definition Classes
    QuantizedTensorUnsupportedTensor
  161. def setValue(d1: Int, d2: Int, d3: Int, d4: Int, value: T): QuantizedTensorUnsupported.this.type

    Definition Classes
    QuantizedTensorUnsupportedTensor
  162. def setValue(d1: Int, d2: Int, d3: Int, value: T): QuantizedTensorUnsupported.this.type

    Definition Classes
    QuantizedTensorUnsupportedTensor
  163. def setValue(d1: Int, d2: Int, value: T): QuantizedTensorUnsupported.this.type

    Definition Classes
    QuantizedTensorUnsupportedTensor
  164. def setValue(d1: Int, value: T): QuantizedTensorUnsupported.this.type

    Write the value on a given position.

    Write the value on a given position. The number of parameters should be equal to the dimension number of the tensor.

    d1

    ,( d2, d3, d4, d5) the given position

    value

    the written value

    returns

    Definition Classes
    QuantizedTensorUnsupportedTensor
  165. def sign(): Tensor[T]

    returns a new Tensor with the sign (+/- 1 or 0) of the elements of x.

    returns a new Tensor with the sign (+/- 1 or 0) of the elements of x.

    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  166. def split(dim: Int): Array[Tensor[T]]

    spilt one tensor into multi tensor along the dim dimension

    spilt one tensor into multi tensor along the dim dimension

    dim

    the specific dimension

    returns

    Definition Classes
    QuantizedTensorUnsupportedTensor
  167. def split(size: Int, dim: Int): Array[Tensor[T]]

    Splits current tensor along dimension dim into a result table of Tensors of size size (a number) or less (in the case of the last Tensor).

    Splits current tensor along dimension dim into a result table of Tensors of size size (a number) or less (in the case of the last Tensor). The sizes of the non-dim dimensions remain unchanged. Internally, a series of narrows are performed along dimensions dim. Argument dim defaults to 1.

    size
    dim
    returns

    Definition Classes
    QuantizedTensorUnsupportedTensor
  168. def sqrt(y: Tensor[T]): Tensor[T]

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  169. def sqrt(): Tensor[T]

    replaces all elements in-place with the square root of the elements of this.

    replaces all elements in-place with the square root of the elements of this.

    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  170. def square(): Tensor[T]

    Replaces all elements in-place with the elements of x squared

    Replaces all elements in-place with the elements of x squared

    returns

    current tensor reference

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  171. def squeeze(dim: Int): Tensor[T]

    Removes given dimensions of the tensor if it's singleton

    Removes given dimensions of the tensor if it's singleton

    returns

    current tensor

    Definition Classes
    QuantizedTensorUnsupportedTensor
  172. def squeeze(): Tensor[T]

    Removes all singleton dimensions of the tensor

    Removes all singleton dimensions of the tensor

    returns

    current tensor

    Definition Classes
    QuantizedTensorUnsupportedTensor
  173. def squeezeNewTensor(): Tensor[T]

    Create a new tensor that removes all singleton dimensions of the tensor

    Create a new tensor that removes all singleton dimensions of the tensor

    returns

    create a new tensor

    Definition Classes
    QuantizedTensorUnsupportedTensor
  174. def storage(): Storage[T]

    Get the storage

    Get the storage

    returns

    storage

    Definition Classes
    QuantizedTensorUnsupportedTensor
  175. def storageOffset(): Int

    tensor offset on the storage

    tensor offset on the storage

    returns

    storage offset, count from 1

    Definition Classes
    QuantizedTensorUnsupportedTensor
  176. def sub(value: T): Tensor[T]

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  177. def sub(x: Tensor[T], y: Tensor[T]): Tensor[T]

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  178. def sub(y: Tensor[T]): Tensor[T]

    subtracts all elements of y from this

    subtracts all elements of y from this

    y

    other tensor

    returns

    current tensor

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  179. def sub(x: Tensor[T], value: T, y: Tensor[T]): Tensor[T]

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  180. def sub(value: T, y: Tensor[T]): Tensor[T]

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  181. def sum(x: Tensor[T], dim: Int): Tensor[T]

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  182. def sum(dim: Int): Tensor[T]

    performs the sum operation over the dimension dim

    performs the sum operation over the dimension dim

    dim
    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  183. def sum(): T

    returns the sum of the elements of this

    returns the sum of the elements of this

    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  184. def sumSquare(): T

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  185. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  186. def t(): Tensor[T]

    Shortcut of transpose(1, 2) for 2D tensor

    Shortcut of transpose(1, 2) for 2D tensor

    Definition Classes
    QuantizedTensorUnsupportedTensor
    See also

    transpose()

  187. def tanh(y: Tensor[T]): Tensor[T]

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  188. def tanh(): Tensor[T]

    replaces all elements in-place with the tanh root of the elements of this.

    replaces all elements in-place with the tanh root of the elements of this.

    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  189. def toArray(): Array[T]

    Convert 1D tensor to an array.

    Convert 1D tensor to an array. If the tensor is not 1D, an exception will be thrown out.

    returns

    Definition Classes
    QuantizedTensorUnsupportedTensor
  190. def toBreezeMatrix(): DenseMatrix[T]

    convert the tensor to BreezeMatrix, the dimension of the tensor need to be 2.

    convert the tensor to BreezeMatrix, the dimension of the tensor need to be 2.

    returns

    BrzDenseMatrix

    Definition Classes
    QuantizedTensorUnsupportedTensor
  191. def toBreezeVector(): DenseVector[T]

    convert the tensor to BreezeVector, the dimension of the tensor need to be 1.

    convert the tensor to BreezeVector, the dimension of the tensor need to be 1.

    returns

    BrzDenseVector

    Definition Classes
    QuantizedTensorUnsupportedTensor
  192. def toMLlibMatrix(): Matrix

    convert the tensor to MLlibMatrix, the dimension of the tensor need to be 2, and tensor need to be continuous.

    convert the tensor to MLlibMatrix, the dimension of the tensor need to be 2, and tensor need to be continuous.

    returns

    Matrix

    Definition Classes
    QuantizedTensorUnsupportedTensor
  193. def toMLlibVector(): Vector

    convert the tensor to MLlibVector, the dimension of the tensor need to be 1, and tensor need to be continuous.

    convert the tensor to MLlibVector, the dimension of the tensor need to be 1, and tensor need to be continuous.

    returns

    Vector

    Definition Classes
    QuantizedTensorUnsupportedTensor
  194. def toString(): String

    Definition Classes
    AnyRef → Any
  195. def toTable: Table

    Definition Classes
    TensorActivity
  196. def toTensor[D](implicit ev: TensorNumeric[D]): Tensor[D]

    Definition Classes
    QuantizedTensorUnsupportedActivity
  197. def topk(k: Int, dim: Int, increase: Boolean, result: Tensor[T], indices: Tensor[T], sortedResult: Boolean = true): (Tensor[T], Tensor[T])

    Get the top k smallest values and their indices.

    Get the top k smallest values and their indices.

    k
    dim

    dimension, default is the last dimension

    increase

    sort order, set it to true if you want to get the smallest top k values

    result

    result buffer

    indices

    indices buffer

    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  198. def transpose(dim1: Int, dim2: Int): Tensor[T]

    * Create a new tensor which exchanges the given dimensions of the current tensor

    * Create a new tensor which exchanges the given dimensions of the current tensor

    dim1

    dimension to be exchanged, count from one

    dim2

    dimension to be exchanged, count from one

    returns

    new tensor

    Definition Classes
    QuantizedTensorUnsupportedTensor
  199. def unary_-(): Tensor[T]

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  200. def unfold(dim: Int, size: Int, step: Int): Tensor[T]

    Returns a tensor which contains all slices of size @param size in the dimension @param dim.

    Returns a tensor which contains all slices of size @param size in the dimension @param dim. Step between two slices is given by @param step.

    dim
    size
    step

    Step between two slices

    returns

    new tensor

    Definition Classes
    QuantizedTensorUnsupportedTensor
  201. def uniform(args: T*): T

    return pseudo-random numbers, require 0<=args.

    return pseudo-random numbers, require 0<=args.length<=2 if args.length = 0, return [0, 1) if args.length = 1, return [1, args(0)] or [args(0), 1] if args.length = 2, return [args(0), args(1)]

    args

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  202. def update(filter: (T) ⇒ Boolean, value: T): Unit

    Update the value meeting the filter criteria with the give value

    Update the value meeting the filter criteria with the give value

    filter

    filter

    value

    value to update

    Definition Classes
    QuantizedTensorUnsupportedTensor
  203. def update(t: Table, src: Tensor[T]): Unit

    Copy the given tensor value to the select subset of the current tensor The element of the given table can be an Int or another Table.

    Copy the given tensor value to the select subset of the current tensor The element of the given table can be an Int or another Table. An Int means select on current dimension; A table means narrow on current dimension, the table should has two elements, of which the first is start index and the second is the end index. An empty table is equals to Table(1, size_of_current_dimension) If the table length is less than the tensor dimension, the missing dimension is applied by an empty table

    t

    subset table

    src

    tensor to copy

    Definition Classes
    QuantizedTensorUnsupportedTensor
  204. def update(t: Table, value: T): Unit

    Fill the select subset of the current tensor with the given value.

    Fill the select subset of the current tensor with the given value. The element of the given table can be an Int or another Table. An Int means select on current dimension; A tablemeans narrow on current dimension, the table should has two elements, of which the first is start index and the second is the end index. An empty table is equals to Table(1, size_of_current_dimension) If the table length is less than the tensor dimension, the missing dimension is applied by an empty table

    t

    subset table

    value

    value to write

    Definition Classes
    QuantizedTensorUnsupportedTensor
  205. def update(indexes: Array[Int], value: T): Unit

    Write the value to the value indexed by the given index array

    Write the value to the value indexed by the given index array

    indexes

    index array. It should has same length with the tensor dimension

    value

    value to write

    Definition Classes
    QuantizedTensorUnsupportedTensor
  206. def update(index: Int, src: Tensor[T]): Unit

    Copy the give tensor value to the select subset of the current tensor by the given index.

    Copy the give tensor value to the select subset of the current tensor by the given index. The subset should has the same size of the given tensor

    index

    index

    src

    tensor to write

    Definition Classes
    QuantizedTensorUnsupportedTensor
  207. def update(index: Int, value: T): Unit

    For tensor(i) = value.

    For tensor(i) = value. If tensor(i) is another tensor, it will fill the selected subset by the given value

    index

    index

    value

    value to write

    Definition Classes
    QuantizedTensorUnsupportedTensor
  208. def value(): T

    returns

    the value of a scalar. Requires the tensor to be a scalar.

    Definition Classes
    QuantizedTensorUnsupportedTensor
  209. def valueAt(d1: Int, d2: Int, d3: Int, d4: Int, d5: Int): T

    Definition Classes
    QuantizedTensorUnsupportedTensor
  210. def valueAt(d1: Int, d2: Int, d3: Int, d4: Int): T

    Definition Classes
    QuantizedTensorUnsupportedTensor
  211. def valueAt(d1: Int, d2: Int, d3: Int): T

    Definition Classes
    QuantizedTensorUnsupportedTensor
  212. def valueAt(d1: Int, d2: Int): T

    Definition Classes
    QuantizedTensorUnsupportedTensor
  213. def valueAt(d1: Int): T

    Query the value on a given position.

    Query the value on a given position. The number of parameters should be equal to the dimension number of the tensor. Tensor should not be empty.

    d1

    ,( d2, d3, d4, d5) the given position

    returns

    the value on a given position

    Definition Classes
    QuantizedTensorUnsupportedTensor
  214. def view(sizes: Array[Int]): Tensor[T]

    Definition Classes
    QuantizedTensorUnsupportedTensor
  215. def view(sizes: Int*): Tensor[T]

    Return a new tensor with specified sizes.

    Return a new tensor with specified sizes. The input tensor must be contiguous, and the elements number in the given sizes must be equal to the current tensor

    sizes
    returns

    new tensor

    Definition Classes
    Tensor
  216. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  219. def xcorr2(kernel: Tensor[T], vf: Char): Tensor[T]

    This function operates with same options and input/output configurations as conv2, but performs cross-correlation of the input with the kernel k.

    This function operates with same options and input/output configurations as conv2, but performs cross-correlation of the input with the kernel k.

    kernel
    vf

    full ('F') or valid ('V') convolution.

    returns

    Definition Classes
    QuantizedTensorUnsupportedTensorMath
  220. def zero(): Tensor[T]

    Fill with zero.

    Fill with zero. It will change the value of the current tensor and return itself

    returns

    current tensor

    Definition Classes
    QuantizedTensorUnsupportedTensor
  221. def zipWith[A, B](t1: Tensor[A], t2: Tensor[B], func: (A, B) ⇒ T)(implicit arg0: ClassTag[A], arg1: ClassTag[B]): Tensor[T]

    Zip values of two other tensors with applying the function func on each two values element-wisely and assign the result value to the current tensor

    Zip values of two other tensors with applying the function func on each two values element-wisely and assign the result value to the current tensor

    The two given tensors should has the same size of the current tensor

    A

    numeric type of tensor 1

    B

    numeric type of tensor 2

    t1

    tensor 1

    t2

    tensor 2

    func

    zip with the function

    returns

    self

    Definition Classes
    QuantizedTensorUnsupportedTensor

Inherited from Tensor[T]

Inherited from Activity

Inherited from TensorMath[T]

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped