what I assumed why the error occur is
I defined the W matrix like this
W = torch.zeros((3, 1), requires_grad = True)
so the python couldn’t understand it.
how can I print the W when its type is like that