From 9c9ad462a28ef95cbeac1231cdea9141b10ad4ee Mon Sep 17 00:00:00 2001 From: "Henrik R. Larsson" Date: Thu, 19 Feb 2026 15:53:23 -0800 Subject: [PATCH 1/2] More information in warning message --- src/pytblis/wrappers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pytblis/wrappers.py b/src/pytblis/wrappers.py index 7461ac2..846d5fc 100644 --- a/src/pytblis/wrappers.py +++ b/src/pytblis/wrappers.py @@ -169,7 +169,8 @@ def contract_same_type( if not input_strides_ok and not is_trivial: warnings.warn( - f"Input tensor of shape {a.shape} has non-positive strides: {a.strides}. " + f"Input tensors of shape {a.shape}/{b.shape} have non-positive " + f"strides: {a.strides}/{b.shape}. " "Will attempt to fall back to numpy tensordot.", stacklevel=2, ) From 0e10f091f7504fa315395d3b8bdb120c07068b75 Mon Sep 17 00:00:00 2001 From: "Henrik R. Larsson" Date: Thu, 19 Feb 2026 16:01:59 -0800 Subject: [PATCH 2/2] Typo --- src/pytblis/wrappers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pytblis/wrappers.py b/src/pytblis/wrappers.py index 846d5fc..10539f1 100644 --- a/src/pytblis/wrappers.py +++ b/src/pytblis/wrappers.py @@ -170,7 +170,7 @@ def contract_same_type( if not input_strides_ok and not is_trivial: warnings.warn( f"Input tensors of shape {a.shape}/{b.shape} have non-positive " - f"strides: {a.strides}/{b.shape}. " + f"strides: {a.strides}/{b.strides}. " "Will attempt to fall back to numpy tensordot.", stacklevel=2, )