Object

org.platanios.tensorflow.api.ops

Gradients

Related Doc: package ops

Permalink

object Gradients

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Gradients
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. sealed trait AggregationMethod extends AnyRef

    Permalink

    Aggregation method used to combine gradients.

    Aggregation method used to combine gradients.

    Computing partial derivatives can require aggregating gradient contributions. All such aggregation methods are represented as objects extending this trait.

  2. sealed trait GatingMethod extends AnyRef

    Permalink

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. object AccumulateAggregationMethod extends AggregationMethod

    Permalink

    Gradient aggregation method that simply adds up the collected gradients, without first waiting for all of them to become available at once.

    Gradient aggregation method that simply adds up the collected gradients, without first waiting for all of them to become available at once.

    The benefit of using this method is that its inputs can be combined in any order and this can allow the expression to be evaluated with a smaller memory footprint. With this method, it is possible to compute a sum of terms which are much larger than total GPU memory.

  5. object AddAggregationMethod extends AggregationMethod

    Permalink

    Gradient aggregation method that simply adds up the collected gradients.

  6. object GraphGating extends GatingMethod

    Permalink
  7. object NoGating extends GatingMethod

    Permalink
  8. object OpGating extends GatingMethod

    Permalink
  9. object Registry

    Permalink

    Registry that contains the gradient functions to be used when creating gradient ops.

    Registry that contains the gradient functions to be used when creating gradient ops. Gradient functions for all types of ops that are being differentiated need to be registered using either the Registry.register or the Registry.registerNonDifferentiable functions. In an attempt to obtain the gradient of an op whose type has no gradient function registered, a NoSuchElementException will be thrown.

  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. def ccGradients(y: Array[Output], x: Array[Output], dx: Array[Output] = null): Array[Output]

    Permalink

    Adds ops to the graph to compute the partial derivatives of the sum of ys with respect to the xs, using the C++ gradients support of the TensorFlow native library.

    Adds ops to the graph to compute the partial derivatives of the sum of ys with respect to the xs, using the C++ gradients support of the TensorFlow native library.

    Note that the C++ gradients support of the TensorFlow native library is incomplete and will not be sufficient for many use cases. It is mainly exposed as means of comparison to the Scala API functionality.

    The result of this function is an array containing: d(y_1 + y_2 + ...)/dx_1, d(y_1 + y_2 + ...)/dx_2, ....

    y

    Tensors whose partial derivatives are computed.

    x

    Tensors with respect to which the gradients are computed.

    dx

    Tensors to use as the initial gradients. They represent the symbolic partial derivatives of some loss function L with respect to y. If null, then ones are used. The number of tensors in dx must match the number of tensors in y.

    returns

    Partial derivatives of the ys given each one of the xs.

  12. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. def gradients(ys: Seq[Output], xs: Seq[Output], dys: Seq[OutputLike] = null, gateGradients: Boolean = false, aggregationMethod: AggregationMethod = AddAggregationMethod, colocateGradientsWithOps: Boolean = false, name: String = "Gradients"): Seq[OutputLike]

    Permalink
  18. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  20. val logger: Logger

    Permalink
  21. final def ne(arg0: AnyRef): Boolean

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

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

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

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped