| 240 | } |
| 241 | |
| 242 | void do_copy_diff_qu8_q8(const TensorND& dst, const TensorND& src) { |
| 243 | auto isrc = |
| 244 | tensor_iter_valonly<DTypeTrait<dtype::Quantized8Asymm>::ctype>(src).begin(); |
| 245 | auto idst = tensor_iter_valonly<DTypeTrait<dtype::QuantizedS8>::ctype>(dst).begin(); |
| 246 | auto src_dt_parm = src.layout.dtype.param<dtype::Quantized8Asymm>(); |
| 247 | auto dst_dt_parm = dst.layout.dtype.param<dtype::QuantizedS8>(); |
| 248 | for (size_t i = 0, it = dst.layout.total_nr_elems(); i < it; ++i) { |
| 249 | *idst = dst_dt_parm.quantize(src_dt_parm.dequantize(*isrc)); |
| 250 | ++idst; |
| 251 | ++isrc; |
| 252 | } |
| 253 | } |
| 254 | |
| 255 | void do_copy_diff_q8_q8(const TensorND& dst, const TensorND& src) { |
| 256 | auto isrc = tensor_iter_valonly<DTypeTrait<dtype::QuantizedS8>::ctype>(src).begin(); |
no test coverage detected