Support retrieving the splat value from DenseElementsAttrs in Python
authorAdam Paszke <apaszke@google.com>
Tue, 21 Mar 2023 15:26:06 +0000 (08:26 -0700)
committerJacques Pienaar <jpienaar@google.com>
Tue, 21 Mar 2023 15:43:17 +0000 (08:43 -0700)
commit912599638027e5cbed7b11318273b8703837c6ae
treec925a1f1a71fb0d42d02ba48b5675143600741ba
parente7c1b4b64c314c9adb39857d92a660557217cada
Support retrieving the splat value from DenseElementsAttrs in Python

This is especially convenient when trying to resize the splat.

Reviewed By: jpienaar

Differential Revision: https://reviews.llvm.org/D146510
mlir/lib/Bindings/Python/IRAttributes.cpp
mlir/test/python/ir/array_attributes.py