class Tensor[T] extends TensorLike[T] with utilities.Closeable with Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Tensor
- Serializable
- Closeable
- TensorLike
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def %(other: Tensor[T])(implicit ev: core.types.IsNotQuantized[T]): Tensor[T]
- def &&(other: Tensor[Boolean])(implicit ev: =:=[T, Boolean]): Tensor[Boolean]
- def *(other: Tensor[T])(implicit ev: core.types.IsNotQuantized[T]): Tensor[T]
- def **(other: Tensor[T])(implicit ev: core.types.IsNotQuantized[T]): Tensor[T]
- def +(other: Tensor[T])(implicit ev: core.types.IsNotQuantized[T]): Tensor[T]
- def -(other: Tensor[T])(implicit ev: core.types.IsNotQuantized[T]): Tensor[T]
- def /(other: Tensor[T])(implicit ev: core.types.IsNotQuantized[T]): Tensor[T]
- def <(other: Tensor[T])(implicit ev: core.types.IsNumeric[T]): Tensor[Boolean]
- def <=(other: Tensor[T])(implicit ev: core.types.IsNumeric[T]): Tensor[Boolean]
- def =!=(other: Tensor[T])(implicit ev: core.types.IsNumeric[T]): Tensor[Boolean]
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def ===(other: Tensor[T])(implicit ev: core.types.IsNumeric[T]): Tensor[Boolean]
- def >(other: Tensor[T])(implicit ev: core.types.IsNumeric[T]): Tensor[Boolean]
- def >=(other: Tensor[T])(implicit ev: core.types.IsNumeric[T]): Tensor[Boolean]
- def ^(other: Tensor[T])(implicit ev: core.types.IsNotQuantized[T]): Tensor[T]
- def apply(firstIndexer: core.Indexer, otherIndexers: core.Indexer*): Tensor[T]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asUntyped: Tensor[Any]
- Definition Classes
- Tensor → TensorLike
- def bitcastTo[R](dataType: core.types.DataType[R])(implicit ev: core.types.IsNumeric[T]): Tensor[R]
- def bitcastTo[R](implicit arg0: core.types.TF[R], ev: core.types.IsNumeric[T]): Tensor[R]
- def castTo[R](dataType: core.types.DataType[R], truncate: Boolean): Tensor[R]
- def castTo[R](truncate: Boolean)(implicit arg0: core.types.TF[R]): Tensor[R]
- def castTo[R](dataType: core.types.DataType[R]): Tensor[R]
- def castTo[R](implicit arg0: core.types.TF[R]): Tensor[R]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def close(): Unit
- val closeFn: () ⇒ Unit
- def copyToDevice(device: String): Tensor[T]
- def cpu(): Tensor[T]
-
val
dataType: core.types.DataType[T]
- Definition Classes
- Tensor → TensorLike
-
val
device: String
- Definition Classes
- Tensor → TensorLike
- def entriesIterator: Iterator[T]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(that: Any): Boolean
- Definition Classes
- Tensor → AnyRef → Any
-
implicit
val
evTTF: core.types.TF[T]
- Attributes
- protected
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def gpu(gpuIndex: Int = 0): Tensor[T]
-
def
hashCode(): Int
- Definition Classes
- Tensor → AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def rank: Int
-
def
scalar: T
- Annotations
- @throws( ... )
-
val
shape: core.Shape
- Definition Classes
- Tensor → TensorLike
- def size: Long
- def slice(firstIndexer: core.Indexer, otherIndexers: core.Indexer*): Tensor[T]
- def summarize(maxEntries: Int = 6, flattened: Boolean = false, includeInfo: Boolean = true): String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def toBoolean: Tensor[Boolean]
- def toByte: Tensor[Byte]
- def toComplexDouble: Tensor[core.types.ComplexDouble]
- def toComplexFloat: Tensor[core.types.ComplexFloat]
- def toDouble: Tensor[Double]
- def toFloat: Tensor[Float]
- def toHalf: Tensor[core.types.Half]
- def toInt: Tensor[Int]
- def toLong: Tensor[Long]
- def toOutput: ops.Output[T]
-
def
toProto: TensorProto
- Definition Classes
- Tensor → Serializable
- def toQByte: Tensor[core.types.QByte]
- def toQInt: Tensor[core.types.QInt]
- def toQShort: Tensor[core.types.QShort]
- def toQUByte: Tensor[core.types.QUByte]
- def toQUShort: Tensor[core.types.QUShort]
- def toResource: Tensor[core.types.Resource]
- def toShort: Tensor[Short]
-
def
toString(): String
- Definition Classes
- Tensor → AnyRef → Any
- def toStringTensor: Tensor[String]
-
def
toTensor: Tensor[T]
- Definition Classes
- Tensor → TensorLike
-
def
toTensorIndexedSlices: TensorIndexedSlices[T]
- Definition Classes
- Tensor → TensorLike
- def toTensorProto: TensorProto
- def toTruncatedHalf: Tensor[core.types.TruncatedHalf]
- def toUByte: Tensor[core.types.UByte]
- def toUInt: Tensor[core.types.UInt]
- def toULong: Tensor[core.types.ULong]
- def toUShort: Tensor[core.types.UShort]
- def toVariant: Tensor[core.types.Variant]
- def unary_!(implicit ev: =:=[T, Boolean]): Tensor[Boolean]
- def unary_-(implicit ev: core.types.IsNotQuantized[T]): Tensor[T]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def writeNPY(file: Path, fortranOrder: Boolean = false): Unit
- def ||(other: Tensor[Boolean])(implicit ev: =:=[T, Boolean]): Tensor[Boolean]