Can you give a use case where you are needing this?
I did face such scenarios, but in my case, it was possible to rewrite the model in such a way that all the operations are self-contained within the model so that I didn’t need to use DataParallel.module.attribute. So, I think it depends on your use case.