Long and complex code converting to pytorch from tensorflow

i have a long and complex generative adversarial network including code in tensorflow i have to convert it to pytorch for cloud computing. how can. i do it?