Caffe2 - C++ API
A deep learning, cross platform ML framework
accumulate_grad.h
1 #pragma once
2 
3 #include <torch/csrc/autograd/function.h>
4 #include <torch/csrc/autograd/variable.h>
5 
6 namespace torch { namespace autograd {
7 
8 struct AccumulateGrad : public Function {
9  explicit AccumulateGrad(Variable variable_);
10 
11  variable_list apply(variable_list&& grads) override;
12 
13  Variable variable;
14 };
15 
16 }} // namespace torch::autograd
Variable A Variable augments a Tensor with the ability to interact in our autograd machinery...
Definition: variable.h:85
Definition: jit_type.h:17