[Mlir-commits] [mlir] [mlir] support scalable vectors in python bindings (PR #71050)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Nov 2 04:56:35 PDT 2023


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {darker}-->


:warning: Python code formatter, darker found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
darker --check --diff -r 43e13fdc9e8edd425f640c424071377879c07822..bdb47c786fd4db596929b3752a2aecc79abc0df9 mlir/test/python/ir/builtin_types.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- builtin_types.py	2023-11-02 11:43:14.000000 +0000
+++ builtin_types.py	2023-11-02 11:56:28.011873 +0000
@@ -307,13 +307,11 @@
             print(e)
         else:
             print("Exception not produced")
 
         scalable_1 = VectorType.get(shape, f32, scalable=[False, True])
-        scalable_2 = VectorType.get([2, 3, 4],
-                                    f32,
-                                    scalable=[True, False, True])
+        scalable_2 = VectorType.get([2, 3, 4], f32, scalable=[True, False, True])
         assert scalable_1.scalable
         assert scalable_2.scalable
         assert scalable_1.scalable_dims == [False, True]
         assert scalable_2.scalable_dims == [True, False, True]
         # CHECK: scalable 1: vector<2x[3]xf32>

``````````

</details>


https://github.com/llvm/llvm-project/pull/71050


More information about the Mlir-commits mailing list