mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-03 03:58:54 +00:00
[js/webgpu] Fix shader compilation errors in Resize (#18947)
### Description An extra right parenthesis was added by accidentally, which results some resize cases fail. This PR fixes it.
This commit is contained in:
parent
998517b209
commit
c613cc58a9
1 changed files with 1 additions and 1 deletions
|
|
@ -342,7 +342,7 @@ const bilinearInterpolation =
|
|||
var col:${dType} = originalIndices[${widthIdx}];
|
||||
${
|
||||
useExtrapolation ?
|
||||
`if (row < 0 || row > (${inputShape[heightIdx]} - 1) || col < 0 || col > (${inputShape[widthIdx]} - 1))) {
|
||||
`if (row < 0 || row > (${inputShape[heightIdx]} - 1) || col < 0 || col > (${inputShape[widthIdx]} - 1)) {
|
||||
return ${extrapolationValue};
|
||||
}` :
|
||||
''};
|
||||
|
|
|
|||
Loading…
Reference in a new issue