Theano/Theano — pull request #357 by jaberg (2012-01-18 16:17:25+00:00)
Title: using elemwise and sum for inner product

Theano currently doesn't have ops for Level1 blas operations. Using Level-3 seems to be much slower than using elemwise and sum. This optimization converts dot(v, u) for vectors v and u to (v * u).sum() during canonicalization and stabilization.