I want to return model after train, so I copy it first:

best_model = copy.deepcopy(model)

but I got error:

RuntimeError: Only Variables created explicitly by the user (graph leaves) support the deepcopy protocol at the moment

I want to know why I got this error, and how can I solve it.