How to run a python code GPU in Jetson TX2?

I have a Python face recognition code, which is running on my laptop CPU. I want to run the same Python face recognition code on Jetson TX2 GPU(CUDA) to process the frames fast. When i tried running the same code python code the frame processing became much slower(I assume that it is running on jetson’s CPU). Someone please help me to run my python face recognition code on Jetson GPU.

We would suggest you use DeepStream SDK. You can install it through SDK manager.
Documents are in

A python-based sample is in