[Mlir-commits] [mlir] [MLIR][Python] Add `encoding` argument to `tensor.empty` Python function (PR #110656)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Oct 1 06:47:13 PDT 2024
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 b8b036a7fe5b6e7ec306e3b80367e22d157a492b...d2b4e9e96ab157e1a317cdd92da137c845c2a8e2 mlir/python/mlir/dialects/tensor.py mlir/test/python/dialects/sparse_tensor/dialect.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- python/mlir/dialects/tensor.py 2024-10-01 13:42:09.000000 +0000
+++ python/mlir/dialects/tensor.py 2024-10-01 13:46:47.578667 +0000
@@ -53,11 +53,13 @@
encoding: Optional[Attribute] = None,
loc=None,
ip=None,
) -> _ods_cext.ir.Value:
return _get_op_result_or_op_results(
- EmptyOp(sizes=sizes, element_type=element_type, encoding=encoding, loc=loc, ip=ip)
+ EmptyOp(
+ sizes=sizes, element_type=element_type, encoding=encoding, loc=loc, ip=ip
+ )
)
generate = region_op(
lambda result, dynamic_extents: GenerateOp(result, dynamic_extents),
``````````
</details>
https://github.com/llvm/llvm-project/pull/110656
More information about the Mlir-commits
mailing list