From 1084422deb14b7e5ea14c569aabaf9437bb40da9 Mon Sep 17 00:00:00 2001 From: Ridwan Amure <40931539+instabaines@users.noreply.github.com> Date: Tue, 5 Mar 2024 09:56:21 -0600 Subject: [PATCH] fixed bug in assert statement in Tensorfield --- MinkowskiEngine/MinkowskiTensorField.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MinkowskiEngine/MinkowskiTensorField.py b/MinkowskiEngine/MinkowskiTensorField.py index 6120904f..d47b09ba 100644 --- a/MinkowskiEngine/MinkowskiTensorField.py +++ b/MinkowskiEngine/MinkowskiTensorField.py @@ -315,7 +315,7 @@ def sparse( ) N_rows = self._manager.size(coordinate_map_key) - assert N_rows > 0, f"Invalid out coordinate map key. Found {N_row} elements." + assert N_rows > 0, f"Invalid out coordinate map key. Found {N_rows} elements." if len(inverse_mapping) == 0: # When the input has the same shape as the output