Skip to content

tensor

dnn

Tensor.
More...


Data Structures

struct   morapi_Quant
struct   morapi_Tensor
struct   morapi_Tensors

Macros

#define  morapi_QMode_isPerTensor(self)
#define  morapi_QMode_isPerChannel(self)
#define  morapi_QMode_isSymmetric(self)
#define  morapi_QMode_isAsymmetric(self)
#define  morapi_QMode_isDither(self)
#define  morapi_QMode_isPairwise(self)
#define  morapi_QMode_isGEMinus127(self)

Enumerations

enum   morapi_QMode {
  MORAPI_QMODE_NONE = (0x00000000), MORAPI_QMODE_PER_TENSOR_SYMMETRIC = (0x00000001 | 0x00000004), MORAPI_QMODE_PER_TENSOR_ASYMMETRIC = (0x00000001 | 0x00000008), MORAPI_QMODE_PER_CHANNEL_SYMMETRIC = (0x00000002 | 0x00000004),
  MORAPI_QMODE_PER_CHANNEL_ASYMMETRIC = (0x00000002 | 0x00000008), MORAPI_QMODE_DITHER = (0x00000010), MORAPI_QMODE_PAIRWISE = (0x00000020), MORAPI_QMODE_GE_MINUS127 = (0x00000040)
}


Detailed Description

Tensor.


Macro Definition Documentation


morapi_QMode_isPerTensor

#define morapi_QMode_isPerTensor( self)

Ruturns whether qmode is per-tensor.


morapi_QMode_isPerChannel

#define morapi_QMode_isPerChannel( self)

Ruturns whether qmode is per-channel.


morapi_QMode_isSymmetric

#define morapi_QMode_isSymmetric( self)

Ruturns whether qmode is symmetric.


morapi_QMode_isAsymmetric

#define morapi_QMode_isAsymmetric( self)

Ruturns whether qmode is asymmetric.


morapi_QMode_isDither

#define morapi_QMode_isDither( self)

Ruturns whether qmode is dithered.


morapi_QMode_isPairwise

#define morapi_QMode_isPairwise( self)

Ruturns whether qmode is pairwise.


morapi_QMode_isGEMinus127

#define morapi_QMode_isGEMinus127( self)

Ruturns whether qmode is greather-than or equal-to -127.


Enumeration Type Documentation


morapi_QMode

enum morapi_QMode

Quantization mode.

Enumerator
MORAPI_QMODE_NONE 

None.

MORAPI_QMODE_PER_TENSOR_SYMMETRIC 

Per-tensor symmetric.

MORAPI_QMODE_PER_TENSOR_ASYMMETRIC 

Per-tensor asynmmetric.

MORAPI_QMODE_PER_CHANNEL_SYMMETRIC 

Per-channel symmetric.

MORAPI_QMODE_PER_CHANNEL_ASYMMETRIC 

Per-channel asymmetric.

MORAPI_QMODE_DITHER 

Dithered (optional).

MORAPI_QMODE_PAIRWISE 

Pairwise (optional).

MORAPI_QMODE_GE_MINUS127 

Greater-than or equal-to -127 (optional).