Get GPU buffer after NVDEC

Hello if anyone could help
I want to decode a video with NVDEC and then do deep learning with the result also with CUDA.
Is there any way to get decoded GPU buffer so that I could directly send it to deep learning kernel?
Looking forward to any reply.

You can setup the VPP to do nothing and then call cuvidMapVideoFrame(). You will get a device pointer to the decoded frame.