torch-mlir/docs
Ramiro Leal-Cavazos eae3ff7f1c
Change dtype functions interface to take ints tuple for each tensor (#1965)
The original design for the dtype functions outlined in
https://github.com/llvm/torch-mlir/issues/1462 was unable to properly
handle ops that take optional tensors as an input when the optional
tensor has a value of None. By the time the op gets imported into
torch-mlir, if an optional value is None, all information about the
original type is lost from the op type signature, preventing
torch-mlir from knowing if a value of None was from an optional tensor
or not, which was crucial in the original design since each tensor
argument must be turned into two separate arguments for the dtype
function.

This commit changes the interface to dtype functions such that each
tensor turns into a tuple of two ints, the first representing the rank
of the tensor and the second the dtype of the tensor. Since now there
is a one-to-one correspondence between the operands of an op and the
operands of its dtype function, there is no ambiguity about which
operand of the op corresponds with which operand of the dtype
function.

To test the implementation, this commit defines dtype function for
convolution op, which takes one optional tensor as an argument.
2023-03-23 11:05:39 -07:00
..
images [docs] Centralize all images in docs/images/ 2022-11-04 03:12:17 -07:00
abstract_interp_lib.md [custom op] Generalize shape library logic to work with dtypes (#1594) 2022-12-13 08:25:41 -08:00
adding_abstract_interpretation_functions.md Change dtype functions interface to take ints tuple for each tensor (#1965) 2023-03-23 11:05:39 -07:00
adding_an_e2e_test.md [docs] Add info about special e2e testing cases. 2022-12-07 12:53:07 +01:00
architecture.md mhlo: migrate conversion to stablehlo (#1840) 2023-02-02 07:29:47 -06:00
code_owners.md mhlo: migrate conversion to stablehlo (#1840) 2023-02-02 07:29:47 -06:00
development.md mhlo: migrate conversion to stablehlo (#1840) 2023-02-02 07:29:47 -06:00
long_term_roadmap.md [docs] Add changes to e2e testing to long-term roadmap 2023-03-20 11:38:13 -07:00
ltc_backend.md [docs] Centralize all images in docs/images/ 2022-11-04 03:12:17 -07:00
ltc_examples.md Fix LTC lib_torch_mlir_ltc.so import error (#1283) 2022-08-25 18:25:01 -04:00