Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

added tests

Varun Sai3dc9442b7fa6
diff --git a/tests/feature/test_lightglue_onnx.py b/tests/feature/test_lightglue_onnx.py
index e26eefbe4..5d5bc61cb 100644
--- a/tests/feature/test_lightglue_onnx.py
+++ b/tests/feature/test_lightglue_onnx.py
@@ -65,6 +65,8 @@ class TestOnnxLightGlue:
assert "matches" in outputs
assert "scores" in outputs
+ assert outputs["matches"].device.type == model.device.type
+ assert outputs["scores"].device.type == model.device.type
def test_normalize_keypoints(self):
kpts = torch.randint(0, 100, (1, 5, 2))