Trait

com.thoughtworks.compute.Tensors

FillTensor

Related Doc: package Tensors

Permalink

trait FillTensor extends InlineTensor

Source
Tensors.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. FillTensor
  2. InlineTensor
  3. Tensor
  4. AnyRef
  5. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def padding: Float

    Permalink

    Definition Classes
    Tensor
  2. abstract def shape: Array[Int]

    Permalink

    Returns the sizes of each dimension of this Tensor.

    Returns the sizes of each dimension of this Tensor.

    Definition Classes
    Tensor
    Note

    The returned array should be considered as immutable. Changing the array is an undefined behavior.

    ,

    The return value will be Array.empty if this Tensor is a scalar.

  3. abstract def value: Float

    Permalink

Concrete Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def %(rightHandSide: Tensor): InlineTensor

    Permalink

    Definition Classes
    Tensor
  4. def *(rightHandSide: Tensor): InlineTensor

    Permalink

    Definition Classes
    Tensor
  5. def +(rightHandSide: Tensor): InlineTensor

    Permalink

    Definition Classes
    Tensor
  6. def -(rightHandSide: Tensor): InlineTensor

    Permalink

    Definition Classes
    Tensor
  7. def ->[B](y: B): (FillTensor, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from FillTensor to ArrowAssoc[FillTensor] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  8. def /(rightHandSide: Tensor): InlineTensor

    Permalink

    Definition Classes
    Tensor
  9. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. def broadcast(newShape: Array[Int]): Tensor

    Permalink

    Definition Classes
    Tensor
  12. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. lazy val closure: (trees)#FloatTerm

    Permalink
    Definition Classes
    FillTensorTensor
  14. def doCache: Do[CachedTensor]

    Permalink

    Allocates device-side cache that are managed by the RAII.scala library.

    Allocates device-side cache that are managed by the RAII.scala library.

    Definition Classes
    Tensor
  15. def ensuring(cond: (FillTensor) ⇒ Boolean, msg: ⇒ Any): FillTensor

    Permalink
    Implicit information
    This member is added by an implicit conversion from FillTensor to Ensuring[FillTensor] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: (FillTensor) ⇒ Boolean): FillTensor

    Permalink
    Implicit information
    This member is added by an implicit conversion from FillTensor to Ensuring[FillTensor] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: Boolean, msg: ⇒ Any): FillTensor

    Permalink
    Implicit information
    This member is added by an implicit conversion from FillTensor to Ensuring[FillTensor] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: Boolean): FillTensor

    Permalink
    Implicit information
    This member is added by an implicit conversion from FillTensor to Ensuring[FillTensor] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  21. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. def flatArray: Future[Array[Trees.FloatTrees.FloatTerm.JvmValue]]

    Permalink

    Returns an asynchronous task to read this Tensor into a scala.Array, which is linearized in row-major order.

    Returns an asynchronous task to read this Tensor into a scala.Array, which is linearized in row-major order.

    Definition Classes
    Tensor
  23. def flatBuffer: Do[FloatBuffer]

    Permalink

    Returns a RAII managed asynchronous task to read this Tensor into an off-heap memory, which is linearized in row-major order.

    Returns a RAII managed asynchronous task to read this Tensor into an off-heap memory, which is linearized in row-major order.

    Definition Classes
    Tensor
  24. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from FillTensor to StringFormat[FillTensor] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  25. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  26. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  27. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  28. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  29. def nonInline: NonInlineTensor

    Permalink

    Definition Classes
    InlineTensorTensor
  30. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  32. def permute(dimensions: Array[Int]): TransformedTensor

    Permalink

    Definition Classes
    Tensor
  33. def read1DArray: Future[Array[Float]]

    Permalink

    Returns an asynchronous task to read this Tensor into a scala.Array

    Returns an asynchronous task to read this Tensor into a scala.Array

    Definition Classes
    Tensor
  34. def read1DSeq: Future[Seq[Float]]

    Permalink

    Returns an asynchronous task to read this Tensor into a scala.Seq

    Returns an asynchronous task to read this Tensor into a scala.Seq

    Definition Classes
    Tensor
  35. def read2DArray: Future[Array[Array[Float]]]

    Permalink

    Returns an asynchronous task to read this Tensor into a 2D scala.Array

    Returns an asynchronous task to read this Tensor into a 2D scala.Array

    Definition Classes
    Tensor
  36. def read2DSeq: Future[Seq[Seq[Float]]]

    Permalink

    Returns an asynchronous task to read this Tensor into a 2D scala.Seq

    Returns an asynchronous task to read this Tensor into a 2D scala.Seq

    Definition Classes
    Tensor
  37. def read3DArray: Future[Array[Array[Array[Float]]]]

    Permalink

    Returns an asynchronous task to read this Tensor into a 3D scala.Array

    Returns an asynchronous task to read this Tensor into a 3D scala.Array

    Definition Classes
    Tensor
  38. def read3DSeq: Future[Seq[Seq[Seq[Float]]]]

    Permalink

    Returns an asynchronous task to read this Tensor into a 3D scala.Seq

    Returns an asynchronous task to read this Tensor into a 3D scala.Seq

    Definition Classes
    Tensor
  39. def read4DArray: Future[Array[Array[Array[Array[Float]]]]]

    Permalink

    Returns an asynchronous task to read this Tensor into a 4D scala.Array

    Returns an asynchronous task to read this Tensor into a 4D scala.Array

    Definition Classes
    Tensor
  40. def read4DSeq: Future[Seq[Seq[Seq[Seq[Float]]]]]

    Permalink

    Returns an asynchronous task to read this Tensor into a 4D scala.Seq

    Returns an asynchronous task to read this Tensor into a 4D scala.Seq

    Definition Classes
    Tensor
  41. def read5DArray: Future[Array[Array[Array[Array[Array[Float]]]]]]

    Permalink

    Returns an asynchronous task to read this Tensor into a 5D scala.Array

    Returns an asynchronous task to read this Tensor into a 5D scala.Array

    Definition Classes
    Tensor
  42. def read5DSeq: Future[Seq[Seq[Seq[Seq[Seq[Float]]]]]]

    Permalink

    Returns an asynchronous task to read this Tensor into a 5D scala.Seq

    Returns an asynchronous task to read this Tensor into a 5D scala.Seq

    Definition Classes
    Tensor
  43. def readScalar: Future[Float]

    Permalink

    Returns an asynchronous task to read this Tensor into a scala.Float

    Returns an asynchronous task to read this Tensor into a scala.Float

    Definition Classes
    Tensor
  44. def reshape(newShape: Array[Int]): NonInlineTensor

    Permalink

    Returns a new Tensor of new shape and the same data of this Tensor.

    Returns a new Tensor of new shape and the same data of this Tensor.

    Definition Classes
    Tensor
    Note

    The data in this Tensor is considered as row-major order when reshape. You can create another column-major version reshape by reversing the shape:

    def columnMajorReshape[Category <: Tensors](tensor: Category#Tensor, newShape: Array[Int]): Category#Tensor = {
      tensor.permute(tensor.shape.indices.reverse.toArray).reshape(newShape.reverse).permute(newShape.indices.reverse.toArray)
    }
  45. def scale(newShape: Array[Int]): TransformedTensor

    Permalink

    Definition Classes
    Tensor
  46. def split(dimension: Int): IndexedSeq[TransformedTensor]

    Permalink

    Definition Classes
    Tensor
  47. def sum: NonInlineTensor

    Permalink

    Definition Classes
    Tensor
  48. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  49. def toString(): String

    Permalink

    Definition Classes
    Tensor → AnyRef → Any
  50. def translate(offset: Array[Double], newShape: Array[Int] = shape): TransformedTensor

    Permalink

    Definition Classes
    Tensor
  51. def transpose: TransformedTensor

    Permalink

    Definition Classes
    Tensor
  52. def unary_+: FillTensor.this.type

    Permalink

    Definition Classes
    Tensor
  53. def unary_-: InlineTensor

    Permalink

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. def [B](y: B): (FillTensor, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from FillTensor to ArrowAssoc[FillTensor] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from FillTensor to any2stringadd[FillTensor] performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (fillTensor: any2stringadd[FillTensor]).+(other)
    Definition Classes
    any2stringadd

Inherited from InlineTensor

Inherited from Tensor

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from FillTensor to any2stringadd[FillTensor]

Inherited by implicit conversion StringFormat from FillTensor to StringFormat[FillTensor]

Inherited by implicit conversion Ensuring from FillTensor to Ensuring[FillTensor]

Inherited by implicit conversion ArrowAssoc from FillTensor to ArrowAssoc[FillTensor]

General information

Methods that provides general information of this Tensor.

Slow actions

Actions that can actually perform delayed operations in order to read the data from the device to JVM, or change the internal state of this Tensor.

Delayed operators

Operators that return new Tensors of delay-evaluated computational graphs. The actually computation will be only performed when Slow actions are called.

Ungrouped