Home | History | Annotate | Download | only in CodeGen

Lines Matching refs:Sum

91   /// sum can be less than 2 when the variable is not live into / out of some
103 // Actually, we must spill if Bias < sum(weights).
104 // It may be worth it to compute the weight sum here?
147 // Compute the weighted sum of inputs.
148 float Sum = Bias;
150 Sum += I->first * nodes[I->second].Value;
152 // The weighted sum is going to be in the range [-2;2]. Ideally, we should
153 // simply set Value = sign(Sum), but we will add a dead zone around 0 for
157 // 2. It helps tame rounding errors when the links nominally sum to 0.
160 if (Sum < -Thres)
162 else if (Sum > Thres)