Caffe2 - C++ API
A deep learning, cross platform ML framework
graph_fuser.h
1 #pragma once
2 
3 #include <torch/csrc/jit/ir.h>
4 
5 namespace torch {
6 namespace jit {
7 
8 // NB: Be sure to run DCE before fusion, because dead instructions
9 // can prevent fusion opportunities from being exploited.
10 // On Windows will noop, NYI
11 TORCH_API void FuseGraph(std::shared_ptr<Graph>& graph);
12 
13 TORCH_API bool trackSingleGradSumToSizeToOutputs(
14  Value* gradSumToSizeOutput,
15  std::vector<int64_t>* outputGradSumToSizes);
16 
17 } // namespace jit
18 } // namespace torch
Definition: jit_type.h:17