Is there any way to use gpu in mac os?

I’m just about to buy macbook pro 16

Is there any way to do gpu calculation with AMD Radeon in pytorch?