Why it would be more involved? You just need to skip the call to the
kernel. Except if you can't create gpundarray with size of 0, but I think
this work.


On Mon, Jan 20, 2014 at 2:46 PM, abergeron <notifications@github.com> wrote:

> In theano/sandbox/gpuarray/type.py:
>
> > @@ -105,6 +108,9 @@ def values_eq_approx(a, b,
> >                           rtol=None, atol=None):
> >          if a.shape != b.shape or a.dtype != b.dtype:
> >              return False
> > +        # Can't compare 0-sized arrays.
> > +        if a.size == 0:
> > +            return True
>
> Yes, it doesn't support 0-size for elemwise.
>
> The patch to make it work in compyte would be much more involved and I
> don't have the time right now.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/Theano/Theano/pull/1702/files#r9015923>
> .
>