Hello,
I am confused when to use conv.weight.data VS conv.weight. For example the following code 3 uses,
nn.init.kaiming_normal_(m.weight, mode='fan_out', nonlinearity='relu')

but I also see at many places
nn.init.kaiming_normal_(m.weight.DATA, mode='fan_out', nonlinearity='relu')

Whic one to use? I am using PYTORCH 1.3.1.
To investigate I checked the source code on GITHUB for v1.3.1 (https://github.com/pytorch/pytorch/blob/v1.3.1/torch/nn/init.py#L353 4)
fan = _calculate_correct_fan(tensor, mode)
    gain = calculate_gain(nonlinearity, a)
    std = gain / math.sqrt(fan)
    with torch.no_grad():
        return tensor.normal_(0, std)

Since the function accepts a TENSOR I expect not to use .DATA and using it should throw a runtime error. But surprisingly no error comes. Hence I am confused which one to use (especially for v1.3.1)?
Thank you