[Mlir-commits] [mlir] [mlir] fix unregistered op's populateInherentAttrs (PR #77718)
Yuanqiang Liu
llvmlistbot at llvm.org
Thu Jan 11 08:52:37 PST 2024
qingyunqu wrote:
> I don't quite understand the context here, can you elaborate on what you're trying to achieve?
Ok, this PR fix something for unregistered dialects. When I load IR like:
```
%0 = "tf.Const"() <{value = dense<1> : tensor<i32>}> : () -> tensor<i32>
```
However, if I want to get all attributes of this op using python binding like:
```python
{i.name: i.attr for i in op.attributes}
```
It will return a empty dict.
https://github.com/llvm/llvm-project/pull/77718
More information about the Mlir-commits
mailing list