From aedbef861c57992dde842fbcdb9b74bf67cce21c Mon Sep 17 00:00:00 2001 From: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com> Date: Sun, 17 May 2026 15:47:25 +0530 Subject: [PATCH] Resolving conjugate in torch namespace Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com> --- src/array_api_extra/_lib/_testing.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/array_api_extra/_lib/_testing.py b/src/array_api_extra/_lib/_testing.py index 26afd31e..9447d5c3 100644 --- a/src/array_api_extra/_lib/_testing.py +++ b/src/array_api_extra/_lib/_testing.py @@ -124,6 +124,7 @@ def as_numpy_array(array: Array, *, xp: ModuleType) -> np.typing.NDArray[Any]: return array.todense() # type: ignore[attr-defined] # pyright: ignore[reportAttributeAccessIssue] if is_torch_namespace(xp): + array.resolve_conj() # type: ignore[attr-defined] # pyright: ignore[reportAttributeAccessIssue] array = to_device(array, "cpu") if is_array_api_strict_namespace(xp): cpu: Device = xp.Device("CPU_DEVICE")