Adds NoBetaScaling
for LinearCombination
This commit is contained in:
parent
38e8b29f56
commit
a68d7cd6f1
@ -177,7 +177,11 @@ public:
|
|||||||
multiplies<ComputeFragment> mul_add_source;
|
multiplies<ComputeFragment> mul_add_source;
|
||||||
multiply_add<ComputeFragment> mul_add_accumulator;
|
multiply_add<ComputeFragment> mul_add_accumulator;
|
||||||
|
|
||||||
intermediate = mul_add_source(beta_, converted_source); // X = beta * C + uniform
|
if (Scale == ScaleType::NoBetaScaling)
|
||||||
|
intermediate = converted_source;
|
||||||
|
else
|
||||||
|
intermediate = mul_add_source(beta_, converted_source); // X = beta * C + uniform
|
||||||
|
|
||||||
intermediate = mul_add_accumulator(alpha_, converted_accumulator, intermediate); // D = alpha * Accum + X
|
intermediate = mul_add_accumulator(alpha_, converted_accumulator, intermediate); // D = alpha * Accum + X
|
||||||
|
|
||||||
// Convert to destination numeric type
|
// Convert to destination numeric type
|
||||||
|
Loading…
Reference in New Issue
Block a user