Output directly to display from GPU memory

Is there a way to render the deep learning model output (rgb image) from cuda (gpu memory) directly to a display using something like hdmi, without moving it to cpu memory? Can I directly render a tensor in memory on the GPU using pyopengl?

I want to render without going through the CPU for faster operation.