I’ve been following this thread and similar ones asking about device-to-device memory copy and interoperability with OpenGL and Cuda. I’ve also seen this great example @darknoon shared and was able to get it to run.
What I’m struggling to understand is at which point, given an OpenGL Texture or an existing Cuda array, do you take into consideration the data format the model is expecting and how the tensor needs to be constructed.
For example, YoloV3, which I’m trying to get to work on a GPU pipeline, expects a MCHW data format, but I don’t exactly understand how to find out the data format of my current Cuda surface or OpenGL texture, and how these can be copied over to the correct data format, or if that even matters?