koraykv / kex

Some tools that I need here and there

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cmul in Diag.lua is probably more efficient than a loop with indexing and mul

rolfe opened this issue · comments

I've been using something like this:

if self.output:dim() == 1 then
self.output:cmul(self.weight)

yes, this makes sense. I will apply it.

I just committed a fix for this.