mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-16 21:00:14 +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
|
||||
}),
|
||||
getShaderSource: shaderHelper => generatePoolingCode(
|
||||
shaderHelper, x, input.dims.length, outputShape.length, adjustedAttributes, op1, op2, -1e5, uniforms,
|
||||
hasPads, pwStartEndNotZero, phStartEndNotZero),
|
||||
shaderHelper, x, input.dims.length, outputShape.length, adjustedAttributes, op1, op2,
|
||||
(input.dataType === DataType.float16) ? -65504 : -1e5, uniforms, hasPads, pwStartEndNotZero,
|
||||
phStartEndNotZero),
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue