thank you, yes that is clear. However, I experienced the case where requires_grad would actually change from printing True to False if output within the function decorated like above which seems strange to me. As soon as I put torch.enable_grad() as a decorator, requires_grad output True as it was meant to. Thats why I figured that the decorater itseld causes this output to be different oO