Error when deep copy a module

I am trying to deep copy the LSTM model in my code. But it raised this error: Only Variables created explicitly by the user (graph leaves) support the deepcopy protocol at the moment

How can I solve this?

Thanks!

3 Likes

Were you able to fix this?