I’ve been reading this tutorial and would like to ask why use this line:
hello_embed = embeds(autograd.Variable(lookup_tensor))
instead of
hello_embed = embeds(Variable(lookup_tensor))
In other words, why wrap the Variable around with an autograd?
Because type(hello_embed) for the two lines produce the same result. (<class ‘torch.autograd.variable.Variable’>_
Thanks!