mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-08 17:17:15 +00:00
fix gemm beta for fp16 (#19153)
per onnx spec beta is always fp32 so we need to cast it
This commit is contained in:
parent
9f87c5c41d
commit
9dee543bed
1 changed files with 2 additions and 2 deletions
|
|
@ -100,8 +100,8 @@ const createGemmProgramInfo = (inputs: readonly TensorView[], attributes: GemmAt
|
|||
${calculateAlpha}
|
||||
${(() => {
|
||||
if (c != null) {
|
||||
return `let cOffset = ${c.broadcastedIndicesToOffset('vec2(m, n)', output)}; value += uniforms.beta * ${
|
||||
c.getByOffset('cOffset')};`;
|
||||
return `let cOffset = ${c.broadcastedIndicesToOffset('vec2(m, n)', output)}; value += ${
|
||||
dataType}(uniforms.beta) * ${c.getByOffset('cOffset')};`;
|
||||
}
|
||||
return '';
|
||||
})()}
|
||||
|
|
|
|||
Loading…
Reference in a new issue