[all-commits] [llvm/llvm-project] ec294e: [mlir][linalg] Add an InitTensorOp python builder.

Stella Laurenzo via All-commits all-commits at lists.llvm.org
Thu Mar 25 15:19:08 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ec294eb87be24764aac15d4df046a841f77f4b48
      https://github.com/llvm/llvm-project/commit/ec294eb87be24764aac15d4df046a841f77f4b48
  Author: Stella Laurenzo <stellaraccident at gmail.com>
  Date:   2021-03-25 (Thu, 25 Mar 2021)

  Changed paths:
    M mlir/lib/Bindings/Python/mlir/dialects/_linalg_ops_ext.py
    M mlir/lib/Bindings/Python/mlir/dialects/_ods_common.py
    M mlir/test/Bindings/Python/dialects/linalg/opdsl/emit_structured_generic.py
    M mlir/test/Bindings/Python/dialects/linalg/ops.py

  Log Message:
  -----------
  [mlir][linalg] Add an InitTensorOp python builder.

* This has the API I want but I am not thrilled with the implementation. There are various things that could be improved both about the way that Python builders are mapped and the way the Linalg ops are factored to increase code sharing between C++/Python.
* Landing this as-is since it at least makes the InitTensorOp usable with the right API. Will refactor underneath in follow-ons.

Differential Revision: https://reviews.llvm.org/D99000




More information about the All-commits mailing list