Typedef torch::autograd::Variable¶
Defined in File variable.h
Typedef Documentation¶
-
using torch::autograd::Variable = at::Tensor¶
Variable
is exactly the same asTensor
(i.e.we have
using Variable = at::Tensor
). This means you can perform all the usual mathematical and other operations you can perform onTensor
s also onVariable
s.The only reason we are keeping the
Variable
class is backward compatibility with external user’s legacy C++ frontend code. Our intention is to eliminate theVariable
class in the near future.