I don’t think it will be recorded, as the .data attribute is used, which will prevent Autograd to track this operation.
This is generally not recommended and the block should probably be wrapped in a with torch.no_grad() block. However, I’m not familiar with the detailed implementation, and you might get a better answer in the FastAI forum.