torch-mlir/test/Dialect/Basicpy
Sean Silva 689b40c7a6 Add initial TorchScript module importer
It turns out that this was easiest to structure as a general IValue
importer, since torch module are just one of the possible IValue's.

We import the IValue object graph in a braindead fashion into basicpy
ops and a new `torch.nn_module` op that is used to model the
attributes/methods of a torch::jit::Module IValue. See `Torch/ops.mlir`
for an example, and also check out the .py import tests in
`frontends/pytorch/test/module_import`.

As part of this change, a few housekeeping tasks:
- extract some helpers from graph_importer.cpp
- more helpers around the C API
- misc touchups
2021-01-28 11:55:17 -08:00
..
canonicalize.mlir Add initial TorchScript module importer 2021-01-28 11:55:17 -08:00
functions.mlir Add "template function" ops and importer code. 2020-06-26 18:36:36 -07:00
ops-invalid.mlir Add basicpy.numeric_constant op. 2020-11-24 16:44:40 -08:00
ops.mlir Add initial TorchScript module importer 2021-01-28 11:55:17 -08:00
slot_object.mlir Add basicpy.SlotObject type and ops to create/index into it. 2020-05-05 18:16:01 -07:00
types_attrs.mlir Add basicpy.SlotObject type and ops to create/index into it. 2020-05-05 18:16:01 -07:00