torch-mlir/test/Dialect
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
..
ATen Add a number of kernels and new patterns. 2020-11-04 14:36:59 -08:00
Basicpy Add initial TorchScript module importer 2021-01-28 11:55:17 -08:00
Numpy Bump llvm-project to be7352c00d51f4358db3a23ed6a077f7cb48eafd 2021-01-21 11:16:55 -08:00
Refback [RefBackend] Use std.global_memref instead of homegrown thing 2020-11-13 18:43:50 -08:00
Refbackrt [RefBackend] Fix leaks related to ABI boundaries. 2020-11-25 13:09:58 -08:00
TCF Add TCF convolutional op with bias addition (#137) 2020-12-15 12:53:12 -08:00
TCP [TCP] Replace tcp.matmul with linalg.matmul. 2020-11-10 18:58:28 -08:00
Torch Add initial TorchScript module importer 2021-01-28 11:55:17 -08:00