Hi,
The assignment m = nn.ELU() just changes the content of the python variable m and set it to whatever is on the other side. The object that used to be pointed by this python variable is deleted.
You will need to index it as a list for this to work.