Skip to main content

ClikaRT::nn::OutputQuant

struct

Header: ClikaRT/nn/linear.h

Static output quantization for a Linear's product: requantize the output with scale / zero_point along axis, at out_dtype.

Data members

scale

Tensor scale

per-tensor scalar, or per-axis along axis

Declared in ClikaRT/nn/linear.h, line 100

zero_point

OptionalTensor zero_point

absent ⇒ symmetric

Declared in ClikaRT/nn/linear.h, line 101

axis

std::int64_t axis = -1

the per-axis dimension (default: last)

Declared in ClikaRT/nn/linear.h, line 102

out_dtype

std::optional<DataType> out_dtype

the code dtype; unset ⇒ the zero-point's

Declared in ClikaRT/nn/linear.h, line 103