org.apache.mxnet

Executor

Related Docs: object Executor | package mxnet

class Executor extends WarnIfNotDisposed

Symbolic Executor component of MXNet
WARNING: it is your responsibility to clear this object through dispose().

See also

Symbol.bind : to create executor

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

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. var _argDict: Map[String, NDArray]

    Attributes
    protected
  5. var _auxDict: Map[String, NDArray]

    Attributes
    protected
  6. var _gradDict: Map[String, NDArray]

    Attributes
    protected
  7. def argDict: Map[String, NDArray]

    Get dictionary representation of argument arrrays.

    Get dictionary representation of argument arrrays.

    returns

    The dictionary that maps name of arguments to NDArrays.

    Exceptions thrown

    IllegalArgumentException if there are duplicated names in the arguments.

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def auxDict: Map[String, NDArray]

    Get dictionary representation of auxiliary states arrays.

    Get dictionary representation of auxiliary states arrays.

    returns

    The dictionary that maps name of auxiliary states to NDArrays.

    Exceptions thrown

    IllegalArgumentException if there are duplicated names in the auxiliary states.

  10. def backward(): Unit

  11. def backward(outGrad: NDArray): Unit

  12. def backward(outGrads: Array[NDArray]): Unit

    Do backward pass to get the gradient of arguments.

    Do backward pass to get the gradient of arguments.

    outGrads

    Gradient on the outputs to be propagated back. This parameter is only needed when bind is called on outputs that are not a loss function.

  13. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def copyParamsFrom(argParams: Map[String, NDArray]): Unit

  15. def copyParamsFrom(argParams: Map[String, NDArray], allowExtraParams: Boolean): Unit

  16. def copyParamsFrom(argParams: Map[String, NDArray], auxParams: Map[String, NDArray], allowExtraParams: Boolean = false): Unit

    Copy parameters from arg_params, aux_params into executor's internal array.

    Copy parameters from arg_params, aux_params into executor's internal array.

    argParams

    : dict of name to NDArray of arguments

    auxParams

    : dict of name to NDArray of auxiliary states.

    allowExtraParams

    Whether allow extra parameters that are not needed by symbol If this is True, no error will be thrown when arg_params or aux_params contain extra parameters that is not needed by the executor.

    Exceptions thrown

    IllegalArgumentException If there is additional parameters in the dict but allow_extra_params=False

  17. val creationTrace: Option[Array[StackTraceElement]]

    Attributes
    protected
    Definition Classes
    WarnIfNotDisposed
  18. def debugStr: String

    Get a debug string about internal execution plan.

    Get a debug string about internal execution plan.

    returns

    Debug string of the executor.

  19. def dispose(): Unit

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

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

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

    Attributes
    protected
    Definition Classes
    WarnIfNotDisposed → AnyRef
  23. def forward(): Unit

  24. def forward(isTrain: Boolean, kwargs: (String, NDArray)*): Unit

    Calculate the outputs specified by the binded symbol.

    Calculate the outputs specified by the binded symbol.

    isTrain

    whether this forward is for evaluation purpose.

    kwargs

    Additional specification of input arguments.

  25. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  26. def gradDict: Map[String, NDArray]

    Get dictionary representation of gradient arrays.

    Get dictionary representation of gradient arrays.

    returns

    The dictionary that maps name of arguments to gradient arrays.

    Exceptions thrown

    IllegalArgumentException if there are duplicated names in the grads.

  27. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  28. def isDisposed: Boolean

    Attributes
    protected
    Definition Classes
    ExecutorWarnIfNotDisposed
  29. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  30. def logDisposeWarning(): Unit

    Attributes
    protected
    Definition Classes
    WarnIfNotDisposed
  31. var monitorCallback: MXMonitorCallback

    Attributes
    protected
  32. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  35. val outputs: Array[NDArray]

  36. def reshape(partialShaping: Boolean = false, allowUpSizing: Boolean = false, kwargs: Map[String, Shape]): Executor

    Return a new executor with the same symbol and shared memory, but different input/output shapes.

    Return a new executor with the same symbol and shared memory, but different input/output shapes. For runtime reshaping, variable length sequences, etc. The returned executor shares state with the current one, and cannot be used in parallel with it.

    partialShaping

    Whether to allow changing the shape of unspecified arguments.

    allowUpSizing

    Whether to allow allocating new ndarrays that's larger than the original.

    kwargs

    Map of string to Shape.

    • new shape for arguments.
    returns

    executor A new executor that shares memory with this.

  37. def setMonitorCallback(callback: MXMonitorCallback): Unit

    Install callback.

    Install callback.

    callback

    Takes a string and an NDArrayHandle.

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

    Definition Classes
    AnyRef
  39. def toString(): String

    Definition Classes
    AnyRef → Any
  40. def tracingEnabled: Boolean

    Attributes
    protected
    Definition Classes
    WarnIfNotDisposed
  41. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from WarnIfNotDisposed

Inherited from AnyRef

Inherited from Any

Ungrouped