Currect way to resize frame using cuda

Hi, i am using ffmpeg + cuda support to decode video. i was wondering if i can send the compressed frame to the GPU and get back a resized decompress frame.
the flow i am using is
and then
avcodec_receive_frame (here i want to receive an already resized frame to minimize transfer from the gpu memry to cpu memory when i use “av_hwframe_transfer_data”)

what is the best way to do the resizing inside the GPU memory and save CPU resources on big transfers.