Typedef torch::autograd::Variable#
Defined in File variable.h
Typedef Documentation#
-
using torch::autograd::Variable = at::Tensor#
Variableis 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 onTensors also onVariables.The only reason we are keeping the
Variableclass is backward compatibility with external user’s legacy C++ frontend code. Our intention is to eliminate theVariableclass in the near future.