How to sample from different distributions in parallel in pytorch?

In some cases, I have multiple gamma distributions with different parameters, and I aim to sample from each. I wonder whether I could make it parallel. Now I am doing an explicit loop, which takes time. Gamma is only for an example.