org.apache.mxnet

KVStore

Related Docs: object KVStore | package mxnet

class KVStore extends WarnIfNotDisposed

Linear Supertypes
WarnIfNotDisposed, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. KVStore
  2. WarnIfNotDisposed
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new KVStore(handle: KVStoreHandle)

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def barrier(): Unit

    Global barrier among all worker nodes

    Global barrier among all worker nodes

    For example, assume there are n machines, we want to let machine 0 first init the values, and then pull the inited value to all machines. Before pulling, we can place a barrier to guarantee that the initialization is finished.

  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. val creationTrace: Option[Array[StackTraceElement]]

    Attributes
    protected
    Definition Classes
    WarnIfNotDisposed
  8. def dispose(): Unit

    Release the native memory.

    Release the native memory. The object shall never be used after it is disposed.

  9. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected
    Definition Classes
    WarnIfNotDisposed → AnyRef
  12. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  14. def init(key: String, value: NDArray): Unit

  15. def init(keys: Array[String], values: Array[NDArray]): Unit

    Initialize a single or a sequence of key-value pairs into the store.

    Initialize a single or a sequence of key-value pairs into the store. For each key, one must init it before push and pull. Only worker 0's (rank == 0) data are used. This function returns after data have been initialized successfully

    keys

    The keys.

    values

    The values.

  16. def isDisposed: Boolean

    Attributes
    protected
    Definition Classes
    KVStoreWarnIfNotDisposed
  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. def loadOptimizerStates(fname: String): Unit

    Load optimizer (updater) state from file

    Load optimizer (updater) state from file

    fname

    Path to input states file.

  19. def logDisposeWarning(): Unit

    Attributes
    protected
    Definition Classes
    WarnIfNotDisposed
  20. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  23. def numDeadNode(nodeId: Int): Int

  24. def numWorkers: Int

    Get the number of worker nodes

    Get the number of worker nodes

    returns

    The number of worker nodes

  25. def pull(key: String, outs: Array[NDArray]): Unit

  26. def pull(key: String, outs: Array[NDArray], priority: Int): Unit

  27. def pull(key: String, out: NDArray, priority: Int = 0): Unit

  28. def pull(keys: Array[String], outs: Array[NDArray]): Unit

  29. def pull(keys: Array[String], outs: Array[NDArray], priority: Int): Unit

    Pull a single value or a sequence of values from the store.

    Pull a single value or a sequence of values from the store.

    Data consistency: 1. this function returns after adding an operator to the engine. But any further read on out will be blocked until it is finished. 2. pull is always called after all previous push and pull on the same key are finished 3. It pulls the newest value from the store.

    keys

    Keys

    outs

    According values

    priority

    The priority of the push operation. The higher the priority, the faster this action is likely to be executed before other push actions.

  30. def push(key: String, values: Array[NDArray]): Unit

  31. def push(key: String, values: Array[NDArray], priority: Int): Unit

  32. def push(key: String, value: NDArray, priority: Int = 0): Unit

  33. def push(keys: Array[String], values: Array[NDArray]): Unit

  34. def push(keys: Array[String], values: Array[NDArray], priority: Int): Unit

    Push a single or a sequence of key-value pairs into the store.

    Push a single or a sequence of key-value pairs into the store. Data consistency: 1. this function returns after adding an operator to the engine. 2. push is always called after all previous push and pull on the same key are finished 3. there is no synchronization between workers. One can use _barrier() to sync all workers

    keys

    Keys

    values

    According values

    priority

    The priority of the push operation. The higher the priority, the faster this action is likely to be executed before other push actions.

  35. def rank: Int

    Get the rank of this worker node

    Get the rank of this worker node

    returns

    The rank of this node, which is in [0, get_num_workers())

  36. def saveOptimizerStates(fname: String): Unit

    Save optimizer (updater) state to file

    Save optimizer (updater) state to file

    fname

    Path to output states file.

  37. def setBarrierBeforeExit(barrierBeforeExit: Boolean): Unit

    Whether to do barrier when the kvstore finalizes

    Whether to do barrier when the kvstore finalizes

    barrierBeforeExit

  38. def setOptimizer(optimizer: Optimizer): Unit

    Register an optimizer to the store If there are multiple machines, this process (should be a worker node) will pack this optimizer and send it to all servers.

    Register an optimizer to the store If there are multiple machines, this process (should be a worker node) will pack this optimizer and send it to all servers. It returns after this action is done.

    optimizer

    the optimizer

  39. def setUpdater(updater: MXKVStoreUpdater): Unit

    Set a push updater into the store.

    Set a push updater into the store.

    This function only changes the local store. Use setOptimizer for multi-machines.

    updater

    the updater function

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

    Definition Classes
    AnyRef
  41. def toString(): String

    Definition Classes
    AnyRef → Any
  42. def tracingEnabled: Boolean

    Attributes
    protected
    Definition Classes
    WarnIfNotDisposed
  43. def type: String

  44. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from WarnIfNotDisposed

Inherited from AnyRef

Inherited from Any

Ungrouped