From 63d3365c339adebf83f522ad670304870df53168 Mon Sep 17 00:00:00 2001 From: Hao Zhang Date: Mon, 11 Aug 2025 01:00:11 +0800 Subject: [PATCH] Add a dim=0 case for test of attributes access. --- tests/attributes_test.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/attributes_test.py b/tests/attributes_test.py index 621bbf9..7a8e57c 100644 --- a/tests/attributes_test.py +++ b/tests/attributes_test.py @@ -10,6 +10,7 @@ ((False, True), ((2, 2), (1, 3)), torch.randn([4, 4])), ((False, True), ((2, 0), (1, 3)), torch.randn([2, 4])), ((True, False), ((0, 2), (1, 3)), torch.randn([2, 4])), + ((True, False), ((0, 0), (1, 3)), torch.randn([0, 4])), ((True,), ((2, 0),), torch.randn([2])), ((False,), ((0, 2),), torch.randn([2])), ((), (), torch.randn([])),