Skip to content

Commit 9aa84ad

Browse files
authored
Fix kornia test failure (#1549)
kornia.utils.image_to_tensor is deprecated and not lazy loaded anymore. Using the new location instead. http://b/515825952
1 parent 1c8da17 commit 9aa84ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_kornia.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class TestKornia(unittest.TestCase):
88
def test_imread_opencv(self):
99
img = cv2.imread('/input/tests/data/dot.png')
10-
img_t = kornia.utils.image_to_tensor(img)
10+
img_t = kornia.image.image_to_tensor(img)
1111

1212
self.assertEqual(img.shape, (1, 1, 3))
1313
self.assertEqual(img_t.shape, (3, 1, 1))

0 commit comments

Comments
 (0)