Skip to content

Commit

Permalink
Update test_tensor.py
Browse files Browse the repository at this point in the history
  • Loading branch information
manu12121999 authored Dec 16, 2024
1 parent cfe339f commit 753d395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def test_basic_slicing(self):
self.assertEqual(tensor_np[0, 2:3, :, 0].tolist(), tensor_ctrlc[0, 2:3, :, 0].tolist(), f"Tensor multidim getitem does not work.")
self.assertEqual(tensor_np[:, 2, :3, 0].tolist(), tensor_ctrlc[:, 2, :3, 0].tolist(), f"Tensor multidim getitem does not work.")

def test_slicing_assignment(self):
def test_slicing_assignment(self):
tensor_np = np.random.randint(0, 10, size=(3, 4, 3, 1, 2))
tensor_ctrlc = ccm.Tensor(tensor_np.tolist())

Expand Down

0 comments on commit 753d395

Please sign in to comment.