From a1b12d6b72fe9b402b6616212db00adbc096a867 Mon Sep 17 00:00:00 2001 From: Vahid Tavanashad Date: Mon, 14 Apr 2025 08:44:22 -0700 Subject: [PATCH 1/3] remove einsum_call kwargs from dpnp.einsum_path signature --- dpnp/dpnp_iface_linearalgebra.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dpnp/dpnp_iface_linearalgebra.py b/dpnp/dpnp_iface_linearalgebra.py index fa2cb6136d67..53c4da0dc37f 100644 --- a/dpnp/dpnp_iface_linearalgebra.py +++ b/dpnp/dpnp_iface_linearalgebra.py @@ -457,7 +457,7 @@ def einsum( ) -def einsum_path(*operands, optimize="greedy", einsum_call=False): +def einsum_path(*operands, optimize="greedy"): """ einsum_path(subscripts, *operands, optimize="greedy") @@ -483,7 +483,7 @@ def einsum_path(*operands, optimize="greedy", einsum_call=False): * if a list is given that starts with ``einsum_path``, uses this as the contraction path * if ``False`` or ``None`` no optimization is taken - * if ``True`` defaults to the "greedy" algorithm + * if ``True`` defaults to the ``"greedy"`` algorithm * ``"optimal"`` is an algorithm that combinatorially explores all possible ways of contracting the listed tensors and chooses the least costly path. Scales exponentially with the number of terms @@ -586,7 +586,7 @@ def einsum_path(*operands, optimize="greedy", einsum_call=False): return numpy.einsum_path( *operands, optimize=optimize, - einsum_call=einsum_call, + einsum_call=False, ) From 3ab6e931ab9340b5301fdacaa446978327718c39 Mon Sep 17 00:00:00 2001 From: Vahid Tavanashad Date: Mon, 14 Apr 2025 09:14:45 -0700 Subject: [PATCH 2/3] update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5450b60889b7..f5ecdaae3f9b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ This release achieves 100% compliance with Python Array API specification (revis * Updated `dpnp.fix` to return output with the same data-type of input [#2392](https://github.com/IntelPython/dpnp/pull/2392) * Updated `dpnp.einsum` to add support for `order=None` [#2411](https://github.com/IntelPython/dpnp/pull/2411) * Updated Python Array API specification version supported to `2024.12` [#2416](https://github.com/IntelPython/dpnp/pull/2416) +* Removed `einsum_call` kwarg from `dpnp.einsum_path` signature [#2421](https://github.com/IntelPython/dpnp/pull/2421) ### Fixed From ce931ac1432242e33a64e57ebea43001a0e85467 Mon Sep 17 00:00:00 2001 From: Vahid Tavanashad <120411540+vtavana@users.noreply.github.com> Date: Mon, 14 Apr 2025 13:53:33 -0500 Subject: [PATCH 3/3] Update CHANGELOG.md Co-authored-by: Anton <100830759+antonwolfy@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f5ecdaae3f9b..d5de63262567 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,7 +26,7 @@ This release achieves 100% compliance with Python Array API specification (revis * Updated `dpnp.fix` to return output with the same data-type of input [#2392](https://github.com/IntelPython/dpnp/pull/2392) * Updated `dpnp.einsum` to add support for `order=None` [#2411](https://github.com/IntelPython/dpnp/pull/2411) * Updated Python Array API specification version supported to `2024.12` [#2416](https://github.com/IntelPython/dpnp/pull/2416) -* Removed `einsum_call` kwarg from `dpnp.einsum_path` signature [#2421](https://github.com/IntelPython/dpnp/pull/2421) +* Removed `einsum_call` keyword from `dpnp.einsum_path` signature [#2421](https://github.com/IntelPython/dpnp/pull/2421) ### Fixed