Object

org.platanios.tensorflow.horovod

hvd

Related Doc: package horovod

Permalink

object hvd extends API

Linear Supertypes
API, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. hvd
  2. API
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class BroadcastGlobalVariablesHook extends api.tf.learn.Hook with Product with Serializable

    Permalink

    Hooks that will broadcast all global variables from root rank to all other processes during initialization.

    Hooks that will broadcast all global variables from root rank to all other processes during initialization.

    This is necessary to ensure consistent initialization of all workers when training is started with random weights or restored from a checkpoint.

    Definition Classes
    API
  2. class DistributedOptimizer extends api.ops.API.train.Optimizer

    Permalink
    Definition Classes
    API

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 DistributedOptimizer

    Permalink
    Definition Classes
    API
  5. def allReduce[O <: OutputLike](value: O, average: Boolean = true, deviceDense: String = "", deviceSparse: String = ""): O

    Permalink

    Performs an all-reduce operation on value.

    Performs an all-reduce operation on value.

    This function performs a bandwidth-optimal ring all-reduce on the input tensor. If the input is indexed slices, then this function instead does an all-gather on the values and the indices, effectively doing an all-reduce on the represented tensor.

    value

    Value to reduce.

    average

    If true, the average over all ranks will be computed.

    deviceDense

    Device to use for dense tensor reduce operations. Defaults to a GPU if Horovod was built with HOROVOD_GPU_ALLREDUCE.

    deviceSparse

    Device to use for sparse tensor reduce operations. Defaults to a GPU if Horovod was built with HOROVOD_GPU_ALLGATHER.

    returns

    Reduced tensor value.

    Definition Classes
    API
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def broadcastGlobalVariables(rootRank: Int): Op

    Permalink

    Broadcasts all global variables from root rank to all other processes.

    Broadcasts all global variables from root rank to all other processes.

    rootRank

    Rank of the process from which the global variable values will be broadcasted to all other processes.

    returns

    Created broadcast op.

    Definition Classes
    API
  8. def clone(): AnyRef

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  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 hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. def initialize(): Unit

    Permalink

    Initializes Horovod.

    Initializes Horovod.

    Definition Classes
    API
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def localRank: Int

    Permalink

    Returns the local Horovod rank of the calling process, within the node that it is running on.

    Returns the local Horovod rank of the calling process, within the node that it is running on. For example, if there are seven processes running on a node, their local ranks will be zero through six, inclusive.

    Definition Classes
    API
    Annotations
    @throws( ... )
    Exceptions thrown

    IllegalStateException If Horovod has not been initialized yet.

  17. def localSize: Int

    Permalink

    Returns the number of Horovod processes within the node the current process is running on.

    Returns the number of Horovod processes within the node the current process is running on.

    Definition Classes
    API
    Annotations
    @throws( ... )
    Exceptions thrown

    IllegalStateException If Horovod has not been initialized yet.

  18. def mpiThreadsSupported: Boolean

    Permalink

    Returns a flag indicating whether MPI multi-threading is supported.

    Returns a flag indicating whether MPI multi-threading is supported. If MPI multi-threading is supported, users may mix and match Horovod usage with other MPI libraries.

    Definition Classes
    API
    Annotations
    @throws( ... )
    Exceptions thrown

    IllegalStateException If Horovod has not been initialized yet.

  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. def rank: Int

    Permalink

    Returns the Horovod rank of the calling process.

    Returns the Horovod rank of the calling process.

    Definition Classes
    API
    Annotations
    @throws( ... )
    Exceptions thrown

    IllegalStateException If Horovod has not been initialized yet.

  23. def size: Int

    Permalink

    Returns the number of Horovod processes.

    Returns the number of Horovod processes.

    Definition Classes
    API
    Annotations
    @throws( ... )
    Exceptions thrown

    IllegalStateException If Horovod has not been initialized yet.

  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 API

Inherited from AnyRef

Inherited from Any

Ungrouped