torch-mlir/lib/Dialect/Torch/Utils
Vivek Khandelwal 2597c481f6 [MLIR][TORCH] Add E2E support for aten.new_empty op
This commit decomposes `aten.new_empty` op into `aten.empty.memory_format` op.

This commit also made a dtype fix to the constant tensor allocation like ops.
Earlier the dtype for the result was inferred from the result type; now, it's
being evaluated as per the original definition of the op.

Signed-Off By: Vivek Khandelwal <vivek@nod-labs.com>
2022-03-30 13:21:01 +05:30
..
CMakeLists.txt Add type promotion code to refine types. 2021-10-29 11:17:39 -04:00
TorchUpstream.cpp Add type promotion code to refine types. 2021-10-29 11:17:39 -04:00
Utils.cpp [MLIR][TORCH] Add E2E support for aten.new_empty op 2022-03-30 13:21:01 +05:30