Test norm function with wrong size
(self)
| 54 | |
| 55 | # Test (type IN_ARRAY3[ANY][ANY][ANY]) typemap |
| 56 | def testNormWrongSize(self): |
| 57 | "Test norm function with wrong size" |
| 58 | print(self.typeStr, "... ", end=' ', file=sys.stderr) |
| 59 | norm = Tensor.__dict__[self.typeStr + "Norm"] |
| 60 | tensor = [[[0, 1, 0], [2, 3, 2]], |
| 61 | [[3, 2, 3], [1, 0, 1]]] |
| 62 | self.assertRaises(TypeError, norm, tensor) |
| 63 | |
| 64 | # Test (type IN_ARRAY3[ANY][ANY][ANY]) typemap |
| 65 | def testNormNonContainer(self): |