Numpy.all does not understands generator expressions.
From the documentation
 numpy.all(a, axis=None, out=None)
    Test whether all array elements along a given axis evaluate to True.
    Parameters :    
    a : array_like
        Input array or object that can be converted to an array.