torch-mlir/test/Dialect/Torch/GlobalizeObjectGraph
Sean Silva 333e07a74e Add `torch.vtensor.literal` op.
This op is much better behaved than the `torch.tensor.literal` op
(which is the new name of the `torch.tensor` op). In particular
`torch.tensor.literal`:
- always has a maximally refined type.
- always has value semantics.
- can be constant folded / CSE'd.

ReduceOpVariants is changed to perform the transformation from
`torch.tensor.literal` to `torch.vtensor.literal` (which in general
involves static information casts and copies.

This new op also allowed tightening up `torch.tensor.literal` to only
accept NonValueTensorType (instead of any tensor type).

This new ".literal" name is more descriptive. It was getting too
confusing seeing an op called just `torch.tensor` (we originally called
it that because that's the name of the similar function in the Torch
Python API, but it just doesn't fit here).
2021-06-17 14:37:04 -07:00
..
basic.mlir Add `torch.vtensor.literal` op. 2021-06-17 14:37:04 -07:00
error.mlir Add `torch.vtensor.literal` op. 2021-06-17 14:37:04 -07:00
free-functions.mlir Add a !torch.float type. 2021-06-17 09:24:18 -07:00
initializers.mlir Add TorchList type and prim::ListConstruct #218 2021-06-10 14:31:35 -07:00
methods.mlir Add a !torch.float type. 2021-06-17 09:24:18 -07:00
module-uses-error.mlir Add TorchList type and prim::ListConstruct #218 2021-06-10 14:31:35 -07:00
module-uses.mlir Add a !torch.float type. 2021-06-17 09:24:18 -07:00
multiple-instances-error.mlir Add `!torch.int` type. 2021-06-17 07:28:23 -07:00
multiple-instances-multiple-module-args.mlir Add `!torch.int` type. 2021-06-17 07:28:23 -07:00
multiple-instances.mlir Add `!torch.int` type. 2021-06-17 07:28:23 -07:00
submodules.mlir Add a !torch.float type. 2021-06-17 09:24:18 -07:00
visibility.mlir Add a !torch.float type. 2021-06-17 09:24:18 -07:00