[all-commits] [llvm/llvm-project] c912f0: [mlir][python] Add bindings for mlirDenseElementsA...

pranavm-nvidia via All-commits all-commits at lists.llvm.org
Wed May 22 03:44:44 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c912f0e773386cc309155b78e2441ee5f1052c13
      https://github.com/llvm/llvm-project/commit/c912f0e773386cc309155b78e2441ee5f1052c13
  Author: pranavm-nvidia <49246958+pranavm-nvidia at users.noreply.github.com>
  Date:   2024-05-22 (Wed, 22 May 2024)

  Changed paths:
    M mlir/lib/Bindings/Python/IRAttributes.cpp
    M mlir/test/python/ir/array_attributes.py

  Log Message:
  -----------
  [mlir][python] Add bindings for mlirDenseElementsAttrGet (#91389)

This change adds bindings for `mlirDenseElementsAttrGet` which accepts a
list of MLIR attributes and constructs a DenseElementsAttr. This allows
for creating `DenseElementsAttr`s of types not natively supported by
Python (e.g. BF16) without requiring other dependencies (e.g. `numpy` +
`ml-dtypes`).



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list