cmul in Diag.lua is probably more efficient than a loop with indexing and mul
rolfe opened this issue · comments
rolfe commented
I've been using something like this:
if self.output:dim() == 1 then
self.output:cmul(self.weight)
koray kavukcuoglu commented
yes, this makes sense. I will apply it.
koray kavukcuoglu commented
I just committed a fix for this.