def test_not_tf(self): with self.cached_session() as sess: t = logical.not_(self._tf_false()) self.assertEqual(sess.run(t), True)
def test_not_tf(self): with self.cached_session() as sess: t = logical.not_(self._tf_false()) self.assertEqual(self.evaluate(t), True)
def test_not_python(self): self.assertFalse(logical.not_(True)) self.assertFalse(logical.not_([1])) self.assertTrue(logical.not_([]))
def test_not_python(self): self.assertFalse(logical.not_(True)) self.assertFalse(logical.not_([1])) self.assertTrue(logical.not_([]))