How do I copy the model?

Hi, everybody!
I have a question.

agent.get_weights()

I have got the weights of the policy model. And I want to make a copy_model using the torch.
How do I copy the model?
I want to use the loss.backward() for IRL How to get the weight?

I think this example should have what you are looking for:

Hi @mannyv, thanks for your reply.
I’ll try using the code you gave me.