def not_equal(self, x, y): '''Element-wise inequality between two tensors. Returns a bool tensor. ''' return tf.not_equal(x, y)