add automatic tiling optimization

No, since we set up the cache for this expr, therefore, we don't need to
evaluate at once. It will reuse the cached result instead of evaluate it
each time. Then we can apply the whole graph tiling optimization first.


2014-08-19 16:11 GMT-04:00 Chien-Chin Huang <notifications@github.com>:

> In spartan/expr/optimize.py:
>
> > @@ -50,7 +54,7 @@ def wrapped(*args, **kw):
> >      result = fn(*args, **kw)
> >      if isinstance(result, Expr):
> >        result.needs_cache = True
> > -      result.force()
> > +      #result.force()
>
> Is this a mistake? To achieve the original intention, fn needs to be
> evaluated at once, just like the comment describes.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/spartan-array/spartan/pull/182/files#r16440156>.
>



-- 
Chen Qi
Department of Computer Science
School of EECS
Peking University