Skip to content

Commit 7e67124

Browse files
authored
Merge pull request marian-nmt#78 from jelmervdl/fix-gemm-switching
Remove `static` precomputedAlphas bool in `affine` operation
2 parents 6575f72 + c64c7ed commit 7e67124

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tensors/cpu/intgemm_interface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ template<Type vtype>
601601
static inline Expr affine(Expr a, Expr b, Expr bias, bool transA, bool transB, float scale, float /* clipValue currently unused */ = 0.0f, bool shiftedBias=false) {
602602
Type bElementType = b->value_type();
603603
Expr aQuantMult = nullptr;
604-
static bool precomputedAlphas = b->graph()->getBackend()->isPrecomputedAlpha();
604+
bool precomputedAlphas = b->graph()->getBackend()->isPrecomputedAlpha();
605605
if (precomputedAlphas) { //Shifting here maybe should check?
606606
aQuantMult = Expression<fetchAlphaFromModelNodeOp>(b);
607607
} else {

0 commit comments

Comments
 (0)