| 109 | |
| 110 | template <typename TI, typename TO> |
| 111 | SimpleTensor<TO> float_converter(const SimpleTensor<TI> &tensor, DataType dst_dt) |
| 112 | { |
| 113 | SimpleTensor<TO> dst{tensor.shape(), dst_dt, 1, QuantizationInfo(), tensor.data_layout()}; |
| 114 | #if defined(_OPENMP) |
| 115 | #pragma omp parallel for |
| 116 | #endif /* _OPENMP */ |
| 117 | for (int i = 0; i < tensor.num_elements(); ++i) |
| 118 | { |
| 119 | dst[i] = tensor[i]; |
| 120 | } |
| 121 | return dst; |
| 122 | } |
| 123 | |
| 124 | SimpleTensor<float> convert_rois_from_asymmetric(SimpleTensor<uint16_t> rois) |
| 125 | { |
nothing calls this directly
no test coverage detected