Without an error message, it is hard to help. I would suggest you to use as_op in Theano for this if you have difficulty with the Op interface. Both are equivalent, so you can continue with the Op interface:
http://deeplearning.net/software/theano/extending/extending_theano.html#as-op On Mon, Apr 10, 2017 at 11:17 AM Vena Li <[email protected]> wrote: > Hi, > > I want to call a Java function in my program. I am able to call it in > python. It takes a numpy array as input and return a numpy array as output. > However, I am having some difficulties to make it work in theano using > tensor. I want to pass a tensor as a input, and after calling the function, > I want another tensor returned. I will use the returned tensor for other > operations. I was wondering is there an easy of doing so? I tried to use > the "Creating a new Op:", but still not able to use the returned value. > > Thanks, > Vena > > -- > > --- > 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.
