Hi,
I understand the .data get the underlying tensor and stop the grad tracking. So I agree that both will get the same results in terms of initializing the weight. I guess the question is really “weight vs weight.data, which one has the correct grad implication?”.
Best,
Zhenlan