(self)
| 112 | self.__default_test(op, np_args) |
| 113 | |
| 114 | def test_binary_ops(self): |
| 115 | x = np.random.rand(18, 28, 38) |
| 116 | y = np.random.rand(18, 28, 38) |
| 117 | for op in ["add", "subtract", "multiply", "divide", "maximum", "minimum"]: |
| 118 | with self.subTest(op=op): |
| 119 | np_args = ( |
| 120 | x.astype(np.float32), |
| 121 | y.astype(np.float32), |
| 122 | ) |
| 123 | self.__default_test(op, np_args, simple_transform=lambda x: x) |
| 124 | self.__default_test(op, np_args, simple_transform=lambda x: x[:1]) |
| 125 | self.__default_test(op, np_args, simple_transform=lambda x: x[:, :1]) |
| 126 | |
| 127 | def test_reduction_ops(self): |
| 128 | x = np.random.rand(18, 28, 38).astype(np.float32) |
nothing calls this directly
no test coverage detected