Hi,
I was playing around with .clone and had a little confusion with this piece of code
x = torch.tensor([3],requires_grad=True)
y = x.clone()
z = y**2
z.backward()

print y.grad # None
print x.grad # tensor([6])

From reading your reply , i expected a new leaf node, completely seperate from the first graph , but with values of x . But , here it seems like y is a part of the original graph .
Could you please explain what is going on . Also , if possible could you explain where .clone can be useful using a simple example (possibly code).
Thanks ,
Kush