1 | #pragma once |
---|---|
2 | |
3 | #include <c10/macros/Export.h> |
4 | |
5 | #include <dispatch.h> |
6 | #include <fusion.h> |
7 | #include <ir_all_nodes.h> |
8 | #include <lower_trivial_reductions.h> |
9 | |
10 | #include <vector> |
11 | |
12 | namespace torch { |
13 | namespace jit { |
14 | namespace fuser { |
15 | namespace cuda { |
16 | |
17 | // Replaces trivial reductions with Unary Set Ops |
18 | void trivialReductionReplacement(Fusion*, const TrivialReductionInfo&); |
19 | |
20 | // Transpose, Shift, Gather, and View Ops with Unary Set Ops |
21 | std::vector<Expr*> unarySetOpInserter(const std::vector<Expr*>& exprs); |
22 | |
23 | } // namespace cuda |
24 | } // namespace fuser |
25 | } // namespace jit |
26 | } // namespace torch |
27 |