trait MklInt8Convertible extends AnyRef
Trait which provides MKL-DNN functionality to convert from FP32 to INT8
- Alphabetic
- By Inheritance
- MklInt8Convertible
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
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
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getInputDimMask(): Int
Get dimension mask of input
Get dimension mask of input
- returns
inputDimMask field which stores value of input dimension mask
-
def
getInputScales(): Array[Array[Float]]
Get input scales
Get input scales
- returns
field which stores value of input scales
-
def
getOutputScales(): Array[Array[Float]]
Get output scales
Get output scales
- returns
field which stores value of output scales
-
def
getWeightDimMask(): Int
Get dimension mask of weight
Get dimension mask of weight
- returns
weightDimMask which stores value of weight mask
-
def
getWeightScales(): Array[Array[Float]]
Get weight scales
Get weight scales
- returns
field which stores value of weight scales
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
val
inputDimMask: Int
- Attributes
- protected
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
val
outputDimMask: Int
- Attributes
- protected
-
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
-
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
-
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
-
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
-
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
-
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
val
weightDimMask: Int
- Attributes
- protected