[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:
Jiajia Qin 2023-12-29 05:15:26 +08:00 committed by GitHub
parent 998517b209
commit c613cc58a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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};
}` :
''};