| 45 | } |
| 46 | |
| 47 | Tensor AdvCvtColor(Tensor &input, NVCVColorConversionCode code, NVCVColorSpec spec, std::optional<Stream> pstream) |
| 48 | { |
| 49 | nvcv::ImageFormat outputFormat = GetOutputFormat(input.dtype(), code); |
| 50 | nvcv::TensorShape outputShape = GetOutputTensorShape(input.shape(), outputFormat, code); |
| 51 | |
| 52 | Tensor output = Tensor::Create(outputShape, input.dtype()); |
| 53 | |
| 54 | return AdvCvtColorInto(output, input, code, spec, pstream); |
| 55 | } |
| 56 | |
| 57 | } // namespace |
| 58 |
nothing calls this directly
no test coverage detected