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. D

[theano-users] Optimize Sum(Elemwise)

2017-01-12 Thread Adrian Seyboldt
Hallo, I've been using theano through pymc3 a lot recently and came across a hopefully realistic and useful optimization that theano does not seem to do. Most theano graphs of models I've seen contain the combination of an Elemwise Node and after that a Sum node. Often a lot of time is spend in th