20 Feb 2012 18:46
ndarray and lazy evaluation (was: Proposed Rodmap Overview)
Dag Sverre Seljebotn <d.s.seljebotn <at> astro.uio.no>
2012-02-20 17:46:49 GMT
2012-02-20 17:46:49 GMT
On 02/20/2012 09:24 AM, Olivier Delalleau wrote: > Hi Dag, > > Would you mind elaborating a bit on that example you mentioned at the > end of your email? I don't quite understand what behavior you would like > to achieve Sure, see below. I think we should continue discussion on numpy-discuss. I wrote: > You need at least a slightly different Python API to get anywhere, so > numexpr/Theano is the right place to work on an implementation of this > idea. Of course it would be nice if numexpr/Theano offered something as > convenient as > > with lazy: > arr = A + B + C # with all of these NumPy arrays > # compute upon exiting... More information: The disadvantage today of using Theano (or numexpr) is that they require using a different API, so that one has to learn and use Theano "from the ground up", rather than just slap it on in an optimization phase. The alternative would require extensive changes to NumPy, so I guess Theano authors or Francesc would need to push for this. The alternative would be (with A, B, C ndarray instances):(Continue reading)
RSS Feed