π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
Update test_image.py
Pulkit Khandelwal6938de27069e
diff --git a/test/test_image.py b/test/test_image.pyindex 1c7059b1d..54669555a 100644--- a/test/test_image.py+++ b/test/test_image.py@@ -4,7 +4,7 @@ import torchimport mathimport torchgeometry.image as imagefrom torch.autograd import gradcheck-import torch_testing as tt+from torch.testing import assert_allcloseimport utilsfrom common import device_type@@ -69,7 +69,7 @@ def test_get_laplacian_kernel2d(window_size):[1., 1., -24., 1., 1.],[1., 1., 1., 1., 1.],[1., 1., 1., 1., 1.])- tt.assert_equal(expected, kernel)+ assert_allclose(expected, kernel)class TestLaplacian: