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.

Hi,
We would suggest you use DeepStream SDK. You can install it through SDK manager.
https://developer.nvidia.com/embedded/jetpack
Documents are in
https://docs.nvidia.com/metropolis/index.html

A python-based sample is in
https://github.com/NVIDIA-AI-IOT/deepstream_python_apps