Closed lofyol closed 6 months ago
Hi @lofyol , this is done with the kernels in c/tensorConvert.cu
, although these aren't usually exposed API's:
https://github.com/dusty-nv/jetson-inference/blob/master/c/tensorConvert.cu
@dusty-nv Thank you. Is there a conversion interface for python?
No, I don't expose those to python: you could try torch.as_tensor()
and just do it in PyTorch:
https://github.com/dusty-nv/jetson-inference/blob/master/docs/aux-image.md#cuda-array-interface
OK,thank you~
Thank you for the great work of the author. After resizing with jetson_utils, how do I convert the HWC format to BCHW format data?