mirror of https://github.com/llvm/torch-mlir
333e07a74e
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). |
||
---|---|---|
.. | ||
basic.mlir | ||
error.mlir | ||
free-functions.mlir | ||
initializers.mlir | ||
methods.mlir | ||
module-uses-error.mlir | ||
module-uses.mlir | ||
multiple-instances-error.mlir | ||
multiple-instances-multiple-module-args.mlir | ||
multiple-instances.mlir | ||
submodules.mlir | ||
visibility.mlir |