# __getitem__ — CPU crash
# 根因: 对 batch=0 的 tensor 做高级索引

# case 1: bool tensor, negative indices
Tensor.__getitem__(self=Tensor.bool((0, 5, 4, 3)), indices=[[2, -3, -4], [-1, 2, 5]])

# case 2: bool tensor, positive indices
Tensor.__getitem__(self=Tensor.bool((0, 5, 4, 3)), indices=[[2, 3, 4], [1, 2, 5]])

# case 3: complex128, negative indices
Tensor.__getitem__(self=Tensor.complex128((0, 5, 4, 3)), indices=[[2, -3, -4], [-1, 2, 5]])

# case 4: complex128, positive indices
Tensor.__getitem__(self=Tensor.complex128((0, 5, 4, 3)), indices=[[2, 3, 4], [1, 2, 5]])
