Set existing attributes under recursive script (#27514)
Summary:
This is related to #27109, `training` was being skipped since modules
have it as an attribute by default, but it should be copied anyways.
](https://our.intern.facebook.com/intern/diff/17802544/)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/27514
Pulled By: driazati
Differential Revision: D17802544
fbshipit-source-id: 9e8f068903b67073c509c2c598b27622fcada2d7