Defined in File variable.h
Variableis exactly the same as
using Variable = at::Tensor). This means you can perform all the usual mathematical and other operations you can perform on
Tensors also on
The only reason we are keeping the
Variableclass is backward compatibility with external user’s legacy C++ frontend code. Our intention is to eliminate the
Variableclass in the near future.