Caffe2 - C++ API
A deep learning, cross platform ML framework
specialize_autogradzero.h
1 #pragma once
2 
3 #include <torch/csrc/jit/ir.h>
4 
5 namespace torch {
6 namespace jit {
7 
8 // propagate autograd zero information through a gradient graph and
9 // remove grad_of blocks if present.
10 // Note: this is a very limited pass. It only propagates autograd zeros for
11 // operations generated by the symbolic autodiff code and cleans up
12 // AutogradAdds when possible. Outputs of other nodes are conservatively
13 // marked Unknown and not optimized.
14 TORCH_API void specializeAutogradZero(Graph& g);
15 
16 } // namespace jit
17 } // namespace torch
Definition: jit_type.h:17