com.intel.analytics.bigdl.nn

MklInt8Convertible

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
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

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

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

    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

  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  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[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

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

    Get dimension mask of input

    Get dimension mask of input

    returns

    inputDimMask field which stores value of input dimension mask

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

    Get input scales

    Get input scales

    returns

    field which stores value of input scales

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

    Get output scales

    Get output scales

    returns

    field which stores value of output scales

  16. def getWeightDimMask(): Int

    Get dimension mask of weight

    Get dimension mask of weight

    returns

    weightDimMask which stores value of weight mask

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

    Get weight scales

    Get weight scales

    returns

    field which stores value of weight scales

  18. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  19. var inputDimMask: Int

    Attributes
    protected
  20. final def isInstanceOf[T0]: Boolean

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

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

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

    Definition Classes
    AnyRef
  24. var outputDimMask: Int

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

    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

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

    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

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

    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

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

    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

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

    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

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

    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

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

    Definition Classes
    AnyRef
  32. def toString(): String

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

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

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

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

    Attributes
    protected

Inherited from AnyRef

Inherited from Any

Ungrouped