π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
Unexpected keyword argument in function call (#1207)
Edgar Riba431b37b105b8
diff --git a/test/geometry/transform/test_affine.py b/test/geometry/transform/test_affine.pyindex 0c8d3da87..8a3e3582a 100644--- a/test/geometry/transform/test_affine.py+++ b/test/geometry/transform/test_affine.py@@ -617,7 +617,7 @@ class TestAffine2d:shear = torch.rand(1, 2, device=device, dtype=dtype)input = torch.rand(1, 2, 3, 4, device=device, dtype=dtype)- transform = kornia.Affine(shear=shear, device=device, dtype=dtype)+ transform = kornia.Affine(shear=shear).to(device, dtype)actual = transform(input)expected = kornia.shear(input, shear)assert_close(actual, expected, atol=1e-4, rtol=1e-4)