Skip to content

Commit a586ec7

Browse files
committed
fix: corrected number of heads in multi-head attention shader.
1 parent 0d77a24 commit a586ec7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nn/nn-vulkan.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ static void resolveShaderGroups(const NnOpConfig *opConfig, const NnUint batchSi
518518
}
519519
}
520520
else if (opConfig->code == OP_MULTIHEAD_ATT)
521-
groupCount[2] = ((NnMultiHeadAttOpConfig *)opConfig->config)->nHeads;
521+
groupCount[2] = ((NnMultiHeadAttOpConfig *)opConfig->config)->nHeads0;
522522
}
523523

524524
static std::vector<uint32_t> readShader(const char *fileName) {

0 commit comments

Comments
 (0)