torch-mlir/frontends/pytorch/test/module_import
Sean Silva 158c5c484d Implement GlobalizeObjectGraph transformation.
This required restructuring of how we model TorchScript on import. The
main difference is that now we split out a `torch.class_type` that holds
methods and declarations of the types of each slot. This is more
consistent with TorchScript (our previous representation was
"denormalized").

Recommended reading order:
1. check out the description of `torch.class_type` in `TorchOps.td` and
   look at `test/Dialect/Torch/ops.mlir` and
   `frontends/pytorch/test/module_import/` to familiarize with the new
   representation.
   - Just look at the new IR. The diff between the old names and new
     names is confusing.
2. check out `test/Dialect/Torch/globalize-object-graph*.mlir`
   and read along with the pass description in
   `include/npcomp/Dialect/Torch/Transforms/Passes.td`
3. Read the code in `GlobalizeObjectGraph.cpp` and miscellaneous changes
   in `ivalue_importer.cpp`, `TorchOps.cpp`, etc.
2021-02-18 18:18:47 -08:00
..
list.py Implement GlobalizeObjectGraph transformation. 2021-02-18 18:18:47 -08:00
methods-debuggable-ir.py Implement GlobalizeObjectGraph transformation. 2021-02-18 18:18:47 -08:00
methods-locations.py Add initial TorchScript module importer 2021-01-28 11:55:17 -08:00
methods.py Implement GlobalizeObjectGraph transformation. 2021-02-18 18:18:47 -08:00
object-identity-error-submodule.py Handle object identity correctly. 2021-02-10 15:15:56 -08:00
object-identity-error.py Handle object identity correctly. 2021-02-10 15:15:56 -08:00
object-identity-torch-bug.py Implement GlobalizeObjectGraph transformation. 2021-02-18 18:18:47 -08:00
object-identity.py Implement GlobalizeObjectGraph transformation. 2021-02-18 18:18:47 -08:00
prim.py Implement GlobalizeObjectGraph transformation. 2021-02-18 18:18:47 -08:00
primitives.py Implement GlobalizeObjectGraph transformation. 2021-02-18 18:18:47 -08:00
submodules-select.py Implement GlobalizeObjectGraph transformation. 2021-02-18 18:18:47 -08:00
submodules.py Implement GlobalizeObjectGraph transformation. 2021-02-18 18:18:47 -08:00
tensors.py Implement GlobalizeObjectGraph transformation. 2021-02-18 18:18:47 -08:00