I’m transitioning to 0.4 and I love the new syntax!
I have a bit of problem understanding how to use with torch.set_grad_enabled(True): to initialize tensors with grad enabled:
In [31]: with torch.set_grad_enabled(True):
    ...:   X = torch.tensor(10)
    ...:   y = X * 10
    ...:   

In [32]: X.requires_grad
Out[32]: False

In [33]: y.requires_grad
Out[33]: False

Shouldn’t both be True?