| 35 | { |
| 36 | template <typename T> |
| 37 | SimpleTensor<T> copy(const SimpleTensor<T> &src, const TensorShape &output_shape) |
| 38 | { |
| 39 | ARM_COMPUTE_ERROR_ON_MISMATCHING_DIMENSIONS(src.shape(), output_shape); |
| 40 | |
| 41 | SimpleTensor<T> dst(output_shape, src.data_type()); |
| 42 | std::copy_n(src.data(), src.num_elements(), dst.data()); |
| 43 | return dst; |
| 44 | } |
| 45 | |
| 46 | template SimpleTensor<uint8_t> copy(const SimpleTensor<uint8_t> &src, const TensorShape &output_shape); |
| 47 | template SimpleTensor<int8_t> copy(const SimpleTensor<int8_t> &src, const TensorShape &output_shape); |
no test coverage detected