def test_sign_torch_value(self): self.assertTrue(np.array_equal(sign(self.test_torch).numpy(), self.test_output_torch))
def test_sign_torch_type(self): self.assertIsInstance(sign(self.test_torch), torch.Tensor, 'Output type must be torch.Tensor')
def test_sign_np_value(self): self.assertTrue(np.array_equal(sign(self.test_np), self.test_output_np))
def test_sign_tf_type(self): self.assertIsInstance(sign(self.test_tf), tf.Tensor, 'Output type must be tf.Tensor')
def test_sign_np_type(self): self.assertIsInstance(sign(self.test_np), np.ndarray, 'Output type must be NumPy array')