Packages

class Tensor[T] extends TensorLike[T] with utilities.Closeable with Serializable

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Tensor
  2. Serializable
  3. Closeable
  4. TensorLike
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Tensor(nativeHandleWrapper: NativeHandleWrapper, closeFn: () => Unit)
    Attributes
    protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def %(other: Tensor[T])(implicit ev: core.types.IsNotQuantized[T]): Tensor[T]
  4. def &&(other: Tensor[Boolean])(implicit ev: =:=[T, Boolean]): Tensor[Boolean]
  5. def *(other: Tensor[T])(implicit ev: core.types.IsNotQuantized[T]): Tensor[T]
  6. def **(other: Tensor[T])(implicit ev: core.types.IsNotQuantized[T]): Tensor[T]
  7. def +(other: Tensor[T])(implicit ev: core.types.IsNotQuantized[T]): Tensor[T]
  8. def -(other: Tensor[T])(implicit ev: core.types.IsNotQuantized[T]): Tensor[T]
  9. def /(other: Tensor[T])(implicit ev: core.types.IsNotQuantized[T]): Tensor[T]
  10. def <(other: Tensor[T])(implicit ev: core.types.IsNumeric[T]): Tensor[Boolean]
  11. def <=(other: Tensor[T])(implicit ev: core.types.IsNumeric[T]): Tensor[Boolean]
  12. def =!=(other: Tensor[T])(implicit ev: core.types.IsNumeric[T]): Tensor[Boolean]
  13. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def ===(other: Tensor[T])(implicit ev: core.types.IsNumeric[T]): Tensor[Boolean]
  15. def >(other: Tensor[T])(implicit ev: core.types.IsNumeric[T]): Tensor[Boolean]
  16. def >=(other: Tensor[T])(implicit ev: core.types.IsNumeric[T]): Tensor[Boolean]
  17. def ^(other: Tensor[T])(implicit ev: core.types.IsNotQuantized[T]): Tensor[T]
  18. def apply(firstIndexer: core.Indexer, otherIndexers: core.Indexer*): Tensor[T]
  19. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  20. def asUntyped: Tensor[Any]
    Definition Classes
    TensorTensorLike
  21. def bitcastTo[R](dataType: core.types.DataType[R])(implicit ev: core.types.IsNumeric[T]): Tensor[R]
  22. def bitcastTo[R](implicit arg0: core.types.TF[R], ev: core.types.IsNumeric[T]): Tensor[R]
  23. def castTo[R](dataType: core.types.DataType[R], truncate: Boolean): Tensor[R]
  24. def castTo[R](truncate: Boolean)(implicit arg0: core.types.TF[R]): Tensor[R]
  25. def castTo[R](dataType: core.types.DataType[R]): Tensor[R]
  26. def castTo[R](implicit arg0: core.types.TF[R]): Tensor[R]
  27. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  28. def close(): Unit
    Definition Classes
    TensorCloseable
  29. val closeFn: () => Unit
    Attributes
    protected
    Definition Classes
    TensorCloseable
  30. def copyToDevice(device: String): Tensor[T]
  31. def cpu(): Tensor[T]
  32. val dataType: core.types.DataType[T]
    Definition Classes
    TensorTensorLike
  33. val device: String
    Definition Classes
    TensorTensorLike
  34. def entriesIterator: Iterator[T]
  35. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  36. def equals(that: Any): Boolean
    Definition Classes
    Tensor → AnyRef → Any
  37. implicit val evTTF: core.types.TF[T]
    Attributes
    protected
  38. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  39. def getElementAtFlattenedIndex(index: Int): T
  40. def gpu(gpuIndex: Int = 0): Tensor[T]
  41. def hashCode(): Int
    Definition Classes
    Tensor → AnyRef → Any
  42. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  43. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  44. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  45. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  46. def rank: Int
  47. def scalar: T
    Annotations
    @throws(scala.this.throws.<init>$default$1[org.platanios.tensorflow.api.core.exception.InvalidShapeException])
  48. val shape: core.Shape
    Definition Classes
    TensorTensorLike
  49. def size: Long
  50. def slice(firstIndexer: core.Indexer, otherIndexers: core.Indexer*): Tensor[T]
  51. def summarize(maxEntries: Int = 6, flattened: Boolean = false, includeInfo: Boolean = true): String
  52. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  53. def toArray(implicit classTag: ClassTag[T]): Array[T]
  54. def toBoolean: Tensor[Boolean]
  55. def toByte: Tensor[Byte]
  56. def toComplexDouble: Tensor[core.types.ComplexDouble]
  57. def toComplexFloat: Tensor[core.types.ComplexFloat]
  58. def toDouble: Tensor[Double]
  59. def toFloat: Tensor[Float]
  60. def toHalf: Tensor[core.types.Half]
  61. def toInt: Tensor[Int]
  62. def toLong: Tensor[Long]
  63. def toOutput: ops.Output[T]
  64. def toProto: TensorProto
    Definition Classes
    TensorSerializable
  65. def toQByte: Tensor[core.types.QByte]
  66. def toQInt: Tensor[core.types.QInt]
  67. def toQShort: Tensor[core.types.QShort]
  68. def toQUByte: Tensor[core.types.QUByte]
  69. def toQUShort: Tensor[core.types.QUShort]
  70. def toResource: Tensor[core.types.Resource]
  71. def toShort: Tensor[Short]
  72. def toString(): String
    Definition Classes
    Tensor → AnyRef → Any
  73. def toStringTensor: Tensor[String]
  74. def toTensor: Tensor[T]
    Definition Classes
    TensorTensorLike
  75. def toTensorIndexedSlices: TensorIndexedSlices[T]
    Definition Classes
    TensorTensorLike
  76. def toTensorProto: TensorProto
  77. def toTruncatedHalf: Tensor[core.types.TruncatedHalf]
  78. def toUByte: Tensor[core.types.UByte]
  79. def toUInt: Tensor[core.types.UInt]
  80. def toULong: Tensor[core.types.ULong]
  81. def toUShort: Tensor[core.types.UShort]
  82. def toVariant: Tensor[core.types.Variant]
  83. def unary_!(implicit ev: =:=[T, Boolean]): Tensor[Boolean]
  84. def unary_-(implicit ev: core.types.IsNotQuantized[T]): Tensor[T]
  85. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  86. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  87. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  88. def writeNPY(file: Path, fortranOrder: Boolean = false): Unit
  89. def ||(other: Tensor[Boolean])(implicit ev: =:=[T, Boolean]): Tensor[Boolean]

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Serializable

Inherited from utilities.Closeable

Inherited from TensorLike[T]

Inherited from AnyRef

Inherited from Any

Ungrouped