Some parameters of unrolled_model don’t have a valid gradient and thus the .grad attribute is still set to None.
This might be caused e.g. if this parameter wasn’t used in the forward pass and is thus not in the computation graph.
Btw. don’t use the .data attribute, as it could yield unwanted side effects.