vconv_vdeq

Function

vconv_vdeq instruction abstraction.

y = vconv_vdeq(x, dtype), where vconv_vdeq indicates vector calculation for quantization on input data.

Currently, the conversion from INT16 to INT8 is supported.

Prototype

1
class vconv_vdeq(x, y, dtype)

Parameters

Parameter

Input/Output

Data Type

Description

x

Input

Tensor variable

Input x-vector tensor.

y

Output

Tensor variable

Output y-vector tensor.

dtype

Input

String

Data type of the target tensor.

Example

1
2
3
4
5
from mskpp import vconv_vdeq, Tensor
ub_x, ub_y = Tensor("UB", "FP16"), Tensor("UB")
gm_x = Tensor("GM")
ub_x.load(gm_x)
out = vconv_vdeq(ub_x, ub_y, "FP32")()