torch-mlir/test/Dialect/Torch
Sean Silva 9ba77c6e13 Add InlineGlobalSlots pass.
This inlines global slots if possible. This allows them to participate
in folding, canonicalization, shape inference, etc.

Example use cases:
- inlining weights and biases that are readonly during inference
- inlining the "training" bool to allow stuff to fold away

For training use cases (especially internal training loop), we will need
something smarter to get good performance. That would look like an "SSA
formation" which promotes the global slots to tensors in the program,
flushing them back to the slots at the minimal number of necessary
places. We might want to let backends do that transformation though.
This also interacts with shape inference (type bounds on the slots to
even lower them to backends in the first place).
2021-04-27 12:18:54 -07:00
..
GlobalizeObjectGraph Move GlobalizeObjectGraph tests to their own directory 2021-04-27 12:18:54 -07:00
adjust-calling-conventions.mlir Add torch-adjust-calling-conventions pass. 2021-04-05 17:56:35 -07:00
inline-global-slots.mlir Add InlineGlobalSlots pass. 2021-04-27 12:18:54 -07:00
invalid.mlir Basic infra for annotate shapes and dtypes on arguments. 2021-04-01 18:40:03 -07:00
ops.mlir Implement GlobalizeObjectGraph transformation. 2021-02-18 18:18:47 -08:00
prepare-for-globalize-object-graph.mlir Support multiple instances of a class in GlobalizeObjectGraph. 2021-03-11 19:21:07 -08:00
refine-types.mlir Add `aten.mm` to linalg lowering. 2021-04-16 12:03:31 -07:00