| 151 | |
| 152 | template <> |
| 153 | SimpleTensor<float> convert_from_symmetric(const SimpleTensor<int16_t> &src) |
| 154 | { |
| 155 | const UniformQuantizationInfo &quantization_info = src.quantization_info().uniform(); |
| 156 | SimpleTensor<float> dst{src.shape(), DataType::F32, 1, QuantizationInfo(), src.data_layout()}; |
| 157 | |
| 158 | #if defined(_OPENMP) |
| 159 | #pragma omp parallel for |
| 160 | #endif /* _OPENMP */ |
| 161 | for (int i = 0; i < src.num_elements(); ++i) |
| 162 | { |
| 163 | dst[i] = dequantize_qsymm16(src[i], quantization_info); |
| 164 | } |
| 165 | return dst; |
| 166 | } |
| 167 | |
| 168 | template <typename T> |
| 169 | void matrix_multiply(const SimpleTensor<T> &a, const SimpleTensor<T> &b, SimpleTensor<T> &out) |
no test coverage detected