Yes, thank you so much for your reply. I am trying to learn it. Thanks again for your great help. Can you please answer this query as well?

  
    
    
    How to solve this optimization problem? autograd
  
  
    Hi Iram! 

The equation you posted an image of means that you are to find 
the values of z[i] that minimize MSELoss (x[?], G (z)), while 
holding the parameters that define G constant. 
(I believe that the use of i as the index on both sides of the 
equation is a notational inconsistency – that’s why I used ? as 
the index for x – but please explain if you believe otherwise.) 
To use pytorch to do this, you would use pytorch’s autograd and 
gradient-descent-optimization machinery to minimize you…