mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-26 19:52:38 +00:00
[js/webgpu] fix maxpool / fp16 (#19981)
This commit is contained in:
parent
597e828aae
commit
c45cff60cf
1 changed files with 3 additions and 2 deletions
|
|
@ -381,8 +381,9 @@ const createMaxPoolProgramInfo =
|
||||||
programUniforms
|
programUniforms
|
||||||
}),
|
}),
|
||||||
getShaderSource: shaderHelper => generatePoolingCode(
|
getShaderSource: shaderHelper => generatePoolingCode(
|
||||||
shaderHelper, x, input.dims.length, outputShape.length, adjustedAttributes, op1, op2, -1e5, uniforms,
|
shaderHelper, x, input.dims.length, outputShape.length, adjustedAttributes, op1, op2,
|
||||||
hasPads, pwStartEndNotZero, phStartEndNotZero),
|
(input.dataType === DataType.float16) ? -65504 : -1e5, uniforms, hasPads, pwStartEndNotZero,
|
||||||
|
phStartEndNotZero),
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue