torch-mlir/frontends/pytorch/csrc/c10_dispatch
Stella Laurenzo 0c73c535d6 Capture backward conv and copy_ kernels.
* This is sufficient to capture the forward and backward pass and gradients of a convolutional model with an nllloss.
* As with the forward conv, the backward conv is a special case wrapped in an enigma on the PyTorch side. There aren't many like it, so special casing is just what we do.
* When I traced this, I found that the copy_ op is not yet boxing compatible so I had to map it manually. If there are many more like this, I'll probably do something a bit more clever to reduce duplication.
* This exposes new signature patterns that will need to be handled by the ATen lowering. Will take care of that next: It will be nice to have an e2e of a non-trivial case with full gradients.
* Fixes #97.
2020-10-30 22:59:26 -07:00
..
CMakeLists.txt Support optional args/returns and other odds and ends. 2020-10-30 14:50:28 -07:00
acap_dispatch.cpp Capture backward conv and copy_ kernels. 2020-10-30 22:59:26 -07:00
acap_dispatch.h Capture backward conv and copy_ kernels. 2020-10-30 22:59:26 -07:00
debug.cpp Support optional args/returns and other odds and ends. 2020-10-30 14:50:28 -07:00
debug.h Support optional args/returns and other odds and ends. 2020-10-30 14:50:28 -07:00
func_builder.cpp Capture backward conv and copy_ kernels. 2020-10-30 22:59:26 -07:00
func_builder.h Add remaining pieces to capture full example models. 2020-10-19 22:16:59 -07:00
module_builder.cpp Create public API for torch_mlir python code. 2020-10-13 16:36:49 -07:00
module_builder.h Create public API for torch_mlir python code. 2020-10-13 16:36:49 -07:00
python_bindings.cpp Support optional args/returns and other odds and ends. 2020-10-30 14:50:28 -07:00