11 #include <ATen/ATen.h> 13 #include <torch/csrc/autograd/variable.h> 15 namespace torch {
namespace autograd {
29 Variable operator[](
size_t pos) {
return buffer[pos]; }
32 static std::vector<Variable> variables(
InputBuffer&& g);
35 std::vector<Variable> buffer;
Represents a a compute device on which a tensor is located.
Variable A Variable augments a Tensor with the ability to interact in our autograd machinery...