pytorch/torch/csrc/jit/python
Elias Ellison 035229c945 [JIT] Frozen Graph Conv-BN fusion (#50074)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/50074

Adds Conv-BN fusion for models that have been frozen. I haven't explicitly tested perf yet but it should be equivalent to the results from Chillee's PR [here](https://github.com/pytorch/pytorch/pull/476570) and [here](https://github.com/pytorch/pytorch/pull/47657#issuecomment-725752765). Click on the PR for details but it's a good speed up.

 In a later PR in the stack I plan on making this optimization on by default as part of `torch.jit.freeze`. I will also in a later PR add a peephole so that there is not conv->batchnorm2d doesn't generate a conditional checking # dims.

Zino was working on freezing and left the team, so not really sure who should be reviewing this, but I dont care too much so long as I get a review �

Test Plan: Imported from OSS

Reviewed By: tugsbayasgalan

Differential Revision: D25856261

Pulled By: eellison

fbshipit-source-id: da58c4ad97506a09a5c3a15e41aa92bdd7e9a197
2021-01-12 11:37:32 -08:00
..
init.cpp [JIT] Frozen Graph Conv-BN fusion (#50074) 2021-01-12 11:37:32 -08:00
init.h
module_python.h
pybind_utils.cpp [JIT] Print better error when class attribute IValue conversion fails (#50255) 2021-01-11 14:04:26 -08:00
pybind_utils.h Completely remove FutureMessage type (#50029) 2021-01-07 19:50:57 -08:00
pybind.h
python_arg_flatten.cpp [JIT] Fix clang-tidy warnings in jit/python (#47985) 2020-12-02 12:35:36 -08:00
python_arg_flatten.h Move torch/csrc/utils/hash.h to c10/util/hash.h. (#42503) 2020-08-29 17:47:00 -07:00
python_custom_class.cpp [codemod][fbcode/caffe2] Apply clang-format update fixes 2021-01-09 14:37:36 -08:00
python_custom_class.h
python_interpreter.cpp Unify boxed function signature between jit and c10 (#37034) 2020-06-29 19:24:26 -07:00
python_ir.cpp [JIT] Frozen Graph Conv-BN fusion (#50074) 2021-01-12 11:37:32 -08:00
python_ir.h
python_ivalue.h Remove DataPtr extractor from CUDAFuture (#48840) 2020-12-19 11:03:45 -08:00
python_sugared_value.cpp [codemod][fbcode/caffe2] Apply clang-format update fixes 2021-01-09 14:37:36 -08:00
python_sugared_value.h Adding JIT support for cuda streams and events (#48020) 2020-12-29 20:24:57 -08:00
python_tracer.cpp [JIT] Fix clang-tidy warnings in jit/python (#47985) 2020-12-02 12:35:36 -08:00
python_tracer.h Source code level attribution in profiler (#43898) 2020-09-30 00:57:35 -07:00
python_tree_views.cpp Add dict comprehension (#47774) 2020-12-17 15:25:30 -08:00
python_tree_views.h
script_init.cpp Support torchbind as attribute in torch.fx symbolic tracing (#48732) 2020-12-04 16:21:44 -08:00
script_init.h
update_graph_executor_opt.cpp
update_graph_executor_opt.h