Class

org.platanios.tensorflow.api.tensors

TensorIndexedSlices

Related Doc: package tensors

Permalink

final case class TensorIndexedSlices extends TensorLike with Product with Serializable

Sparse representation of a set of tensor slices at given indices.

This class if a simple wrapper for a pair (or a set of three) of Tensor objects:

An TensorIndexedSlices is typically used to represent a subset of a larger Output, dense, of shape [LARGE0, D1, ..., Dn], where LARGE0 >> D0. The values in indices are the indices in the first dimension of the slices that have been extracted from the larger tensor.

The dense Tensor, dense, represented by TensorIndexedSlices, slices, has:

dense(slices.indices(i), ::, ::, ...) = slices.values(i, ::, ::, ...)

The TensorIndexedSlices class is used primarily in the definition of gradients for operations that have sparse gradients, such as gather.

Note that this is different than SparseTensor which uses multi-dimensional indices and scalar values.

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

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

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

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. val dataType: types.DataType

    Permalink

    Data type of these tensor indexed slices.

    Data type of these tensor indexed slices.

    Definition Classes
    TensorIndexedSlicesTensorLike
  7. val denseShape: Tensor

    Permalink

    Shape of the corresponding dense Tensor.

  8. val device: String

    Permalink

    Device on which these tensor indexed slices will be placed.

    Device on which these tensor indexed slices will be placed.

    Definition Classes
    TensorIndexedSlicesTensorLike
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. val indices: Tensor

    Permalink

    Indices along the first dimension of the corresponding dense Tensor.

  13. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    AnyRef
  15. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  17. val shape: core.Shape

    Permalink

    Shape of these tensor indexed slices.

    Shape of these tensor indexed slices.

    Definition Classes
    TensorIndexedSlicesTensorLike
  18. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    TensorIndexedSlices → AnyRef → Any
  20. def toTensor: Tensor

    Permalink

    Returns the Tensor that this TensorLike object represents.

    Returns the Tensor that this TensorLike object represents.

    Definition Classes
    TensorIndexedSlicesTensorLike
    Annotations
    @throws( ... )
  21. def toTensorIndexedSlices: TensorIndexedSlices

    Permalink

    Returns an TensorIndexedSlices that has the same value as this TensorLike.

    Returns an TensorIndexedSlices that has the same value as this TensorLike.

    returns

    TensorIndexedSlices that has the same value as this TensorLike.

    Definition Classes
    TensorIndexedSlicesTensorLike
  22. val values: Tensor

    Permalink

    Values corresponding to the provided indices.

  23. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from TensorLike

Inherited from AnyRef

Inherited from Any

Ungrouped