[theano-users] Complex if/else operations in a custom loss function on 3-dimensional tensors

2017-01-13 Thread Corey Nolet
I am currently implementing the fully convolutional regression network which is outlined in detail in the paper "Synthetic Data for Text Localisation in Natural Images" by Ankush Gupta et al. I've got the network model compiled using the Keras API and I'm trying to implement the custom loss

Re: [theano-users] Optimize Sum(Elemwise)

2017-01-13 Thread Frédéric Bastien
Hi, We have this in mind for a long time, but we didn't had the time to do it. The simplest, but not the most versatile version is to make a new op with new c code. Then in it, you suppose the input is c contiguous. If not, you call a numpy function that make it c contiguous or raise an error.