org.apache.mxnet

Executor

Related Docs: object Executor | package mxnet

class Executor extends NativeResource

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
NativeResource, WarnIfNotDisposed, AutoCloseable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Executor
  2. NativeResource
  3. WarnIfNotDisposed
  4. AutoCloseable
  5. AnyRef
  6. 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.

  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.

  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. val bytesAllocated: Long

    Off-Heap Bytes Allocated for this object

    Off-Heap Bytes Allocated for this object

    Definition Classes
    Executor → NativeResource
  14. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. def close(): Unit

    Definition Classes
    NativeResource → AutoCloseable
  16. def copyParamsFrom(argParams: Map[String, NDArray]): Unit

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

  18. 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.

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

    Attributes
    protected
    Definition Classes
    WarnIfNotDisposed
  20. 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.

  21. def dispose(): Unit

    Definition Classes
    Executor → NativeResource
  22. final def eq(arg0: AnyRef): Boolean

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

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

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

  26. 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.

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

    Definition Classes
    AnyRef → Any
  28. 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.

  29. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  30. def isDisposed: Boolean

    Definition Classes
    NativeResource → WarnIfNotDisposed
  31. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  32. def logDisposeWarning(): Unit

    Attributes
    protected
    Definition Classes
    WarnIfNotDisposed
  33. var monitorCallback: MXMonitorCallback

    Attributes
    protected
  34. def nativeAddress: CPtrAddress

    native Address associated with this object

    native Address associated with this object

    Definition Classes
    Executor → NativeResource
  35. def nativeDeAllocator: (CPtrAddress) ⇒ Int

    Function Pointer to the NativeDeAllocator of nativeAddress

    Function Pointer to the NativeDeAllocator of nativeAddress

    Definition Classes
    Executor → NativeResource
  36. final def ne(arg0: AnyRef): Boolean

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

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

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

  40. val ref: NativeResourceRef

    Call NativeResource.register to get the reference

    Call NativeResource.register to get the reference

    Definition Classes
    Executor → NativeResource
  41. def register(): NativeResourceRef

    Register this object for PhantomReference tracking and in ResourceScope if used inside ResourceScope.

    Register this object for PhantomReference tracking and in ResourceScope if used inside ResourceScope.

    returns

    NativeResourceRef that tracks reachability of this object using PhantomReference

    Definition Classes
    NativeResource
  42. 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.

  43. def setMonitorCallback(callback: MXMonitorCallback): Unit

    Install callback.

    Install callback.

    callback

    Takes a string and an NDArrayHandle.

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

    Definition Classes
    AnyRef
  45. def toString(): String

    Definition Classes
    AnyRef → Any
  46. def tracingEnabled: Boolean

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from NativeResource

Inherited from WarnIfNotDisposed

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped