Allow pointwise operations to take rank zero input tensors similarly to scalar inputs. Use an empty indexing map to broadcast rank zero tensors to the iteration domain of the operation.
Depends On D120734
Paths
| Differential D120807
[mlir][OpDSL] Support pointwise ops with rank zero inputs. ClosedPublic Authored by gysit on Mar 2 2022, 3:24 AM.
Details Summary Allow pointwise operations to take rank zero input tensors similarly to scalar inputs. Use an empty indexing map to broadcast rank zero tensors to the iteration domain of the operation. Depends On D120734
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Mar 8 2022, 9:02 AM This revision was landed with ongoing or failed builds.Mar 8 2022, 9:40 AM Closed by commit rGf345f7e30bd3: [mlir][OpDSL] Support pointwise ops with rank zero inputs. (authored by gysit). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 413847 mlir/python/mlir/dialects/linalg/opdsl/lang/emitter.py
mlir/test/Dialect/Linalg/generalize-named-polymorphic-ops.mlir
mlir/test/python/dialects/linalg/opdsl/emit_fill.py
mlir/test/python/integration/dialects/linalg/opsrun.py
mlir/tools/mlir-linalg-ods-gen/mlir-linalg-ods-yaml-gen.cpp
|