Thanks! I also wondered how to solve this problem.
And I have one question.
Why does some error occur when I remove the line that is ‘with torch.no_grad():’?
I thought that line was not needed because that line means just a multiplication between weights and the adjacency matrix(mask).
Please I need your help!