Whether it's possible to train a model in parallel model on two different type of GPUs?

I will have two GPUs to train a model, but one is a NVIDIA740 GPU, and another is NVIDIA1080 GPU, I wonder if pyTorch can work well in parallel model on these GPUs?
Thank you!