Skip to content

Commit ce6cf75

Browse files
committed
feat(//core/lowering): Add tuple lowering pass to remove tuples if
possible Signed-off-by: Naren Dasan <[email protected]> Signed-off-by: Naren Dasan <[email protected]>
1 parent d46676d commit ce6cf75

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: core/lowering/lowering.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include "torch/csrc/jit/passes/fuse_linear.h"
33
#include "torch/csrc/jit/passes/freeze_module.h"
44
#include "torch/csrc/jit/passes/lower_graph.h"
5+
#include "torch/csrc/jit/passes/lower_tuples.h"
56
#include "torch/csrc/jit/passes/quantization.h"
67
#include "torch/csrc/jit/passes/guard_elimination.h"
78

@@ -23,6 +24,7 @@ void LowerGraph(std::shared_ptr<torch::jit::Graph>& g) {
2324
torch::jit::EliminateRedundantGuards(g);
2425
passes::EliminateExceptionOrPassPattern(g);
2526
torch::jit::FuseLinear(g);
27+
torch::jit::LowerAllTuples(g);
2628
passes::RemoveDropout(g);
2729
passes::FuseFlattenLinear(g);
2830
passes::Conv2DToConvolution(g);

0 commit comments

Comments
 (0)