What is the difference between w.grad and w.grad.data

the same print the same output even it look like the same type
but when i look w.grad is w.grad.data i get False so when i use either one of those and why