We spend approx: 6.67e-04s per call. This shows up in 2nd spot in my
profile where GPUAdvancedIncSubTensor1 is in the first spot. I was just
trying to understand if this is low hanging fruit.

Thanks.
Vivek.

On Tue, Feb 12, 2013 at 1:39 PM, nouiz <notifications@github.com> wrote:

> In theano/tensor/basic.py:
>
> > @@ -6549,8 +6550,56 @@ def infer_shape(self, node, ishapes):
> >          x, ilist = ishapes
> >          return [ilist + x[1:]]
> >
> > -advanced_subtensor1 = AdvancedSubtensor1()
> > +    def c_code(self, node, name, input_names, output_names, sub):
> > +        if self.__class__ is not AdvancedSubtensor1:
>
> Yes, but the code would much more complicated. The perform would need to
> do what the perform of GpuAdv..Subtensor1 do and it is more complicated.
>
> But this type of optimization lower the overhead. So it is not sure if you
> will benefic from it. How much time do you spent per call in the
> GpuAdv..Subtensor1?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/Theano/Theano/pull/1185/files#r2982791>.
>
>