Class/Object

org.platanios.tensorflow.api.ops

Output

Related Docs: object Output | package ops

Permalink

final case class Output extends OutputLike with Product with Serializable

Representation of one of the outputs of an Op's computation.

An Output is a symbolic handle to one of the outputs of an Op. It does not hold the values of that op's output, but instead provides a means of computing those values in a TensorFlow Session.

This class has two primary purposes:

  1. An Output can be passed as input to another Op. This builds a dataflow connection between ops, which enables TensorFlow to execute an entire Graph that represents a large, multi-step computation. 2. After the graph has been launched in a Session, the value of an Output can be computed by passing it to Session.run. 3. Output.evaluate can also be used to compute the value of an Output If no session is provided, then the default session is used.

In the following example, c, d, and e are symbolic Output objects, whereas result is a Scala array that stores a concrete value:

val c = constant(Array(Array(1.0, 2.0), Array(3.0, 4.0)))
val d = constant(Array(Array(1.0, 1.0), Array(0.0, 1.0)))
val e = matmul(c, d)
val result = e.evaluate() // 'result' now holds the result of the matrix multiplication.
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Output
  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

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. def apply(firstIndexer: core.Indexer, otherIndexers: core.Indexer*): Output

    Permalink

    Creates an op that slices this op according to the provided indexers.

    Creates an op that slices this op according to the provided indexers.

    More details into how to construct and use indexers are provided in the Indexer documentation.

    firstIndexer

    First indexer to use.

    otherIndexers

    Rest of the indexers to use.

    returns

    Created op.

  5. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def consumers: Array[Input]

    Permalink

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

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

    Definition Classes
    OutputOutputLike
  8. def dataType: types.DataType

    Permalink

    Data type of this op output.

    Data type of this op output.

    Definition Classes
    OutputOutputLike
  9. def device: String

    Permalink

    Device on which this op output will be placed.

    Device on which this op output will be placed.

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

    Permalink
    Definition Classes
    AnyRef
  11. def equals(that: Any): Boolean

    Permalink
    Definition Classes
    Output → Equals → AnyRef → Any
  12. def finalize(): Unit

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

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

    Permalink

    Graph where the op belongs.

    Graph where the op belongs.

    Definition Classes
    OutputOutputLike
  15. def hashCode(): Int

    Permalink
    Definition Classes
    Output → AnyRef → Any
  16. val index: Int

    Permalink

    Output index.

  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def name: String

    Permalink

    Name of this op output.

    Name of this op output. This is simply set to "<op.name>:<index>".

    Definition Classes
    OutputOutputLike
  19. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  22. val op: Op

    Permalink

    Op whose output this class represents.

    Op whose output this class represents.

    Definition Classes
    OutputOutputLike
  23. def rank: Int

    Permalink

    Rank of the tensor that this op output represents.

  24. def setShape(shape: core.Shape): Unit

    Permalink

    Sets the shape of this op output to the provided shape.

    Sets the shape of this op output to the provided shape.

    This method can be useful in cases when shape inference fails, but the shape of the op output is known by the user of the library.

    shape

    Shape to use.

  25. def shape: core.Shape

    Permalink

    Shape of the tensor that this op output represents.

  26. def size: Long

    Permalink

    Size of the tensor that this op output represents.

  27. def slice(firstIndexer: core.Indexer, otherIndexers: core.Indexer*): Output

    Permalink

    Creates an op that slices this op according to the provided indexers.

    Creates an op that slices this op according to the provided indexers.

    More details into how to construct and use indexers are provided in the Indexer documentation.

    firstIndexer

    First indexer to use.

    otherIndexers

    Rest of the indexers to use.

    returns

    Created op.

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

    Permalink
    Definition Classes
    AnyRef
  29. def toOutput: Output

    Permalink

    Returns the Output that this OutputLike object represents.

    Returns the Output that this OutputLike object represents.

    Definition Classes
    OutputOutputLikeOutputConvertible
  30. 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
    OutputOutputLike
  31. def toString(): String

    Permalink
    Definition Classes
    Output → AnyRef → Any
  32. final def wait(): Unit

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

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