How to reach model attributes wrapped by nn.DataParallel?

You can access them by using

model.module.rnn

but it’s not exposed in the public API, so it might change in the future.

20 Likes