| 46 | } |
| 47 | |
| 48 | Tensor Reformat(Tensor &input, const nvcv::TensorLayout &out_layout, std::optional<Stream> pstream) |
| 49 | { |
| 50 | nvcv::TensorShape out_shape = Permute(input.shape(), out_layout); |
| 51 | |
| 52 | Tensor output = Tensor::Create(out_shape, input.dtype()); |
| 53 | |
| 54 | return ReformatInto(output, input, pstream); |
| 55 | } |
| 56 | |
| 57 | } // namespace |
| 58 |
nothing calls this directly
no test coverage detected