You can do it with a small Theano graph that do something like:

x=T.matrix()
T.concatenate(x[0:IDX], new_value, x[IDX:])

I didn't check for the border condition.

It would be a good contribution to make a function that have the numpy
signature and does that.

Fred

On Fri, Jul 29, 2016 at 11:35 AM Aditya Gudimella <
[email protected]> wrote:

> Is there an op in theano which corresponds to np.insert
> <http://docs.scipy.org/doc/numpy/reference/generated/numpy.insert.html>?
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "theano-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to