Class

org.platanios.tensorflow.api.ops

OutputIndexedSlices

Related Doc: package ops

Permalink

final case class OutputIndexedSlices(indices: Output, values: Output, denseShape: Output = null) extends OutputLike 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 Output objects:

An OutputIndexedSlices 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 Output, dense, represented by OutputIndexedSlices, slices, has:

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

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

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

indices

Indices along the first dimension of the corresponding dense Output.

values

Values corresponding to the provided indices.

denseShape

Shape of the corresponding dense Output.

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

Instance Constructors

  1. new OutputIndexedSlices(indices: Output, values: Output, denseShape: Output = null)

    Permalink

    indices

    Indices along the first dimension of the corresponding dense Output.

    values

    Values corresponding to the provided indices.

    denseShape

    Shape of the corresponding dense Output.

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. def consumers: Array[Input]

    Permalink

    Consumers of these indexed slices (i.e., ops that use this op output as one of their inputs).

    Consumers of these indexed slices (i.e., ops that use this op output as one of their inputs).

    Definition Classes
    OutputIndexedSlicesOutputLike
  7. def dataType: types.DataType

    Permalink

    Data type of these op output indexed slices.

    Data type of these op output indexed slices.

    Definition Classes
    OutputIndexedSlicesOutputLike
  8. val denseShape: Output

    Permalink

    Shape of the corresponding dense Output.

  9. def device: String

    Permalink

    Device on which these op output indexed slices will be placed.

    Device on which these op output indexed slices will be placed.

    Definition Classes
    OutputIndexedSlicesOutputLike
  10. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def graph: core.Graph

    Permalink

    Graph that contains values, indices, and denseShape.

    Graph that contains values, indices, and denseShape.

    Definition Classes
    OutputIndexedSlicesOutputLike
  14. val indices: Output

    Permalink

    Indices along the first dimension of the corresponding dense Output.

  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def name: String

    Permalink

    Name of this op output indexed slices.

    Name of this op output indexed slices.

    Definition Classes
    OutputIndexedSlicesOutputLike
  17. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  20. def op: Op

    Permalink

    Op that outputs these indexed slices.

    Op that outputs these indexed slices.

    Definition Classes
    OutputIndexedSlicesOutputLike
  21. def shape: core.Shape

    Permalink

    Gets the Shape corresponding to the shape of the dense tensor that these indexed slices represent.

    Gets the Shape corresponding to the shape of the dense tensor that these indexed slices represent.

    returns

    Dense tensor shape.

  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. def toOutput: Output

    Permalink

    Returns the Output that this OutputLike object represents.

    Returns the Output that this OutputLike object represents.

    Definition Classes
    OutputIndexedSlicesOutputLikeOutputConvertible
  24. def toOutputIndexedSlices(optimize: Boolean = true): OutputIndexedSlices

    Permalink

    Returns an OutputIndexedSlices that has the same value as this OutputLike.

    Returns an OutputIndexedSlices that has the same value as this OutputLike.

    optimize

    Boolean flag indicating whether to optimize this conversion by using a constant op with the shape of this tensor at graph creation time (instead of execution time), if known.

    returns

    OutputIndexedSlices that has the same value as this OutputLike.

    Definition Classes
    OutputIndexedSlicesOutputLike
  25. def toString(): String

    Permalink
    Definition Classes
    OutputIndexedSlices → AnyRef → Any
  26. val values: Output

    Permalink

    Values corresponding to the provided indices.

  27. final def wait(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. 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 OutputLike

Inherited from OutputConvertible

Inherited from AnyRef

Inherited from Any

Ungrouped