openCV can work with GPU

Hello, I am a new user with an Apple MacBook Pro.

I'm experiencing difficulties running my code through the GPU.

What do I need to install on my computer to be able to use libraries for machine learning, Computer Vision, PyTorch and Tensor Flow?

I already watch lot of tutorials on this subject, but still is looks very complicated and I need mentoring for this task.

I would greatly appreciate it if I could receive a response and if someone could guide me on this matter.