NVDECODE and NVENCODE APIs

Does pytorch use nvidia’s gpu built-in Hardware-Based Decoder and Encoder

Yes, vision uses these APIs as described in the decoder README:

GPU decoder depends on ffmpeg for demuxing, uses NVDECODE APIs from the nvidia-video-codec sdk and uses cuda for processing on gpu.