Beispiel #1
0
 def test_three(self):
     self.assertEqual(core._get_contiguous_strides((1, 2, 3), 4),
                      [24, 12, 4])
Beispiel #2
0
 def test_one(self):
     self.assertEqual(core._get_contiguous_strides((1, ), 2), [2])
Beispiel #3
0
 def test_two(self):
     self.assertEqual(core._get_contiguous_strides((1, 2), 3), [6, 3])
Beispiel #4
0
 def test_zero(self):
     self.assertEqual(core._get_contiguous_strides((), 1), [])
Beispiel #5
0
 def test_three(self):
     self.assertEqual(core._get_contiguous_strides((1, 2, 3), 4),
                      [24, 12, 4])
Beispiel #6
0
 def test_two(self):
     self.assertEqual(core._get_contiguous_strides((1, 2), 3), [6, 3])
Beispiel #7
0
 def test_one(self):
     self.assertEqual(core._get_contiguous_strides((1,), 2), [2])
Beispiel #8
0
 def test_zero(self):
     self.assertEqual(core._get_contiguous_strides((), 1), [])