Trait

com.intel.analytics.bigdl.nn

MklInt8Convertible

Related Doc: package nn

Permalink

trait MklInt8Convertible extends AnyRef

Trait which provides MKL-DNN functionality to convert from FP32 to INT8

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MklInt8Convertible
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def calcScales(inputActvt: Activity): Unit

    Permalink

    Calculate the required scales for converting int8 modules Currently there are four type of modules should be supported: 1) Graph: calculate scales for input and output 2) Linear: calculate scales for input, output and weight 3) Spatial Convolution: calculate scales for input, output and weight 4) Sequential: calculate scales for input, output as well as the scales of submodules 5) ConcatTable: calculate scales for input, output as well as the scales of submodules

    Calculate the required scales for converting int8 modules Currently there are four type of modules should be supported: 1) Graph: calculate scales for input and output 2) Linear: calculate scales for input, output and weight 3) Spatial Convolution: calculate scales for input, output and weight 4) Sequential: calculate scales for input, output as well as the scales of submodules 5) ConcatTable: calculate scales for input, output as well as the scales of submodules

    inputActvt

    input activity

  6. def clone(): AnyRef

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def getInputDimMask(): Int

    Permalink

    Get dimension mask of input

    Get dimension mask of input

    returns

    inputDimMask field which stores value of input dimension mask

  12. def getInputScales(): Array[Array[Float]]

    Permalink

    Get input scales

    Get input scales

    returns

    field which stores value of input scales

  13. def getOutputScales(): Array[Array[Float]]

    Permalink

    Get output scales

    Get output scales

    returns

    field which stores value of output scales

  14. def getWeightDimMask(): Int

    Permalink

    Get dimension mask of weight

    Get dimension mask of weight

    returns

    weightDimMask which stores value of weight mask

  15. def getWeightScales(): Array[Array[Float]]

    Permalink

    Get weight scales

    Get weight scales

    returns

    field which stores value of weight scales

  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. var inputDimMask: Int

    Permalink
    Attributes
    protected
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  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. var outputDimMask: Int

    Permalink
    Attributes
    protected
  23. def setInputDimMask(mask: Int, overrideSubmodules: Boolean = false): Unit

    Permalink

    Set dimension mask of input

    Set dimension mask of input

    mask

    value of input dimension mask to be set

    overrideSubmodules

    when set it to true, update mask including itself and submodules, otherwise only update mask to module itself.

    returns

    Unit

  24. def setInputScales(inScales: Array[Array[Float]]): Unit

    Permalink

    Set input scales Clear existing buffer of input scales, and place updated scales into the cleared buffer

    Set input scales Clear existing buffer of input scales, and place updated scales into the cleared buffer

    inScales

    value of input scales to be set

    returns

    Unit

  25. def setOutputDimMask(mask: Int, overrideSubmodules: Boolean = false): Unit

    Permalink

    Set dimension mask of output

    Set dimension mask of output

    mask

    value of output dimension mask to be set

    overrideSubmodules

    when set it to true, update mask in full scope including itself and submodules, otherwise only update mask to module itself.

    returns

    Unit

  26. def setOutputScales(outScales: Array[Array[Float]]): Unit

    Permalink

    Set output scales Clear existing buffer of output scales, and place updated scales into the cleared buffer

    Set output scales Clear existing buffer of output scales, and place updated scales into the cleared buffer

    outScales

    value of output scales to be set

    returns

    Unit

  27. def setWeightDimMask(mask: Int, overrideSubmodules: Boolean = false): Unit

    Permalink

    Set dimension mask for weight

    Set dimension mask for weight

    mask

    value of weight mask to be set

    overrideSubmodules

    when set it to true, update mask in full scope including itself and submodules, otherwise only update mask to module itself.

    returns

    Unit

  28. def setWeightScales(weightScales: Array[Array[Float]]): Unit

    Permalink

    Set weight scales Clear existing buffer of weight scales, and place updated scales into the cleared buffer

    Set weight scales Clear existing buffer of weight scales, and place updated scales into the cleared buffer

    weightScales

    value of weight scales to be set

    returns

    Unit

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. var weightDimMask: Int

    Permalink
    Attributes
    protected

Inherited from AnyRef

Inherited from Any

Ungrouped