def test_xor(self): mode = theano.compile.get_default_mode().including('canonicalize') x = T.scalar('x', dtype='int8') f = theano.function([x], T.xor(x, x), mode=mode) self.assert_eqs_const(f, 0)