Input and Output

ELEWISE_DYNAMIC_QUANT (Element-wise Dynamic Quantization)

Parameter

Dimension

Data Type

Format

Description

x

[dim_0, dim_1, ..., dim_n]

float16/bf16

ND

Input vector, where n is greater than 1.

z

[dim_0, dim_1, ..., dim_n]

int8

ND

Quantization output result.

scale

[dim_0, ..., dim_n-1]

float

ND

Output, scale required for dequantization.

offset

[dim_0, ..., dim_n-1]

float

ND

Output, offset required for dequantization. Returned only when asymmetric is set to true. Currently, asymmetric cannot be true.

ELEWISE_TANH (Element-wise Hyperbolic Tangent Computation)

Parameter

Dimension

Data Type

Format

Description

x

[dim_0, ..., dim_n]

float16

ND

Input.

out

[dim_0, ..., dim_n]

float16

ND

Output.