when I run this code,I want to see the creator attribute of y,while gives me an error of: AttributeError: ‘Variable’ object has no attribute 'creator’
how to resolve it?
import torch
from torch.autograd import Variable
x = Variable(torch.ones(2, 2), requires_grad=True)
y = x + 2
print(y)
print(y.creator)