Class

org.platanios.tensorflow.api.ops.control_flow

XLAControlFlowContext

Related Doc: package control_flow

Permalink

abstract class XLAControlFlowContext extends Context

Base class for XLA and TPU control flow contexts.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. XLAControlFlowContext
  2. Context
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new XLAControlFlowContext(values: Set[String] = mutable.Set.empty, externalValues: Map[String, Output] = mutable.Map.empty)

    Permalink

    values

    Set of values that have already been seen in this context.

    externalValues

    Set of values referenced by but external to this context.

    Attributes
    protected

Abstract Value Members

  1. abstract def add(output: Output): Output

    Permalink

    Adds output to the current context and its outer context recursively.

    Adds output to the current context and its outer context recursively.

    Definition Classes
    Context
  2. abstract def backPropagate: Boolean

    Permalink

    Returns true if back-propagation is supported for this control flow context.

    Returns true if back-propagation is supported for this control flow context.

    Definition Classes
    Context
  3. abstract def gradientLoopState: Option[GradientLoopState]

    Permalink

    Gradient loop state for this context, used for back-propagation.

    Gradient loop state for this context, used for back-propagation.

    Definition Classes
    Context
  4. abstract val name: String

    Permalink

    Name of this control flow context.

    Name of this control flow context.

    Definition Classes
    Context

Concrete 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 add(op: Op): Unit

    Permalink

    Adds op to the current context.

    Adds op to the current context.

    Definition Classes
    Context
  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 condContext: Option[CondContext]

    Permalink

    Returns the cond context containing this context.

    Returns the cond context containing this context.

    Definition Classes
    Context
  8. def controlPivot: Option[Op]

    Permalink

    Returns the control pivot op output for this context.

    Returns the control pivot op output for this context.

    Definition Classes
    Context
  9. def enter(): Unit

    Permalink

    Enters this control flow context.

    Enters this control flow context.

    Definition Classes
    Context
  10. def enterGradientColocation(colocationOps: Set[Op], gradientUID: String): Unit

    Permalink

    Enters a control flow context for building a gradient colocated with colocationOps.

    Enters a control flow context for building a gradient colocated with colocationOps.

    Definition Classes
    Context
  11. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def exit(): Unit

    Permalink

    Exits this control flow context.

    Exits this control flow context.

    Definition Classes
    Context
  14. def exitGradientColocation(colocationOps: Set[Op], gradientUID: String): Unit

    Permalink

    Exits a control flow context for building a gradient colocated with colocationOps.

    Exits a control flow context for building a gradient colocated with colocationOps.

    Definition Classes
    Context
  15. def exitResult(result: Seq[OutputLike]): Unit

    Permalink

    Makes a sequence of tensors available in the outer context.

    Makes a sequence of tensors available in the outer context.

    Definition Classes
    Context
  16. def finalize(): Unit

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  23. val outerContext: Option[Context]

    Permalink

    Control flow context containing this context.

    Control flow context containing this context.

    Definition Classes
    Context
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. def toProto(exportScope: String): GeneratedMessageV3

    Permalink

    Alias for toValuesDef.

    Alias for toValuesDef.

    Definition Classes
    Context
  26. def toProto: GeneratedMessageV3

    Permalink

    Converts this object to its corresponding ProtoBuf object.

    Converts this object to its corresponding ProtoBuf object.

    returns

    ProtoBuf object corresponding to this object.

    Definition Classes
    ContextSerializable
  27. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  28. def toValuesDef(exportScope: String = null): ValuesDef

    Permalink

    Constructs and returns a ValuesDef object that represents this control flow context.

    Constructs and returns a ValuesDef object that represents this control flow context.

    exportScope

    Optional string specifying the name scope to remove. Only the ops within this name scope will be included in the resulting ProtoBuf object and the export scope will be stripped from their names to allow for easy import into new name scopes.

    returns

    Constructed ValuesDef.

    Definition Classes
    Context
  29. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. def whileLoopContext(stopContext: Option[Context] = None): Option[WhileLoopContext]

    Permalink

    Returns the while context containing this context.

    Returns the while context containing this context.

    Definition Classes
    Context
  33. def xlaContext: Option[XLAControlFlowContext]

    Permalink

    Returns the XLA context containing this context.

    Returns the XLA context containing this context.

    Definition Classes
    XLAControlFlowContextContext

Inherited from Context

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped