remove unnecessary local variables from EltwiseProductLayer