diff --git a/testing/web-platform/tests/webnn/validation_tests/elementwise-unary.https.any.js b/testing/web-platform/tests/webnn/validation_tests/elementwise-unary.https.any.js index f87c61b4e45689..c735183aab1d14 100644 --- a/testing/web-platform/tests/webnn/validation_tests/elementwise-unary.https.any.js +++ b/testing/web-platform/tests/webnn/validation_tests/elementwise-unary.https.any.js @@ -16,14 +16,14 @@ kElementwiseUnaryOperators.forEach((operatorName) => { const kElementwiseUnaryOperations = [ { name: 'abs', - supportedDataTypes: [...floatingPointTypes, ...signedIntegerTypes] + supportedDataTypes: [...floatingPointTypes, 'int32', 'int8'] }, {name: 'ceil', supportedDataTypes: floatingPointTypes}, {name: 'exp', supportedDataTypes: floatingPointTypes}, {name: 'floor', supportedDataTypes: floatingPointTypes}, {name: 'log', supportedDataTypes: floatingPointTypes}, { name: 'neg', - supportedDataTypes: [...floatingPointTypes, ...signedIntegerTypes] + supportedDataTypes: [...floatingPointTypes, 'int32', 'int8'] }, {name: 'sin', supportedDataTypes: floatingPointTypes}, {name: 'tan', supportedDataTypes: floatingPointTypes}, diff --git a/testing/web-platform/tests/webnn/validation_tests/relu.https.any.js b/testing/web-platform/tests/webnn/validation_tests/relu.https.any.js index 237c1c3eda3a49..61b0d1938fe536 100644 --- a/testing/web-platform/tests/webnn/validation_tests/relu.https.any.js +++ b/testing/web-platform/tests/webnn/validation_tests/relu.https.any.js @@ -7,4 +7,4 @@ validateInputFromAnotherBuilder('relu'); validateUnaryOperation( - 'relu', allWebNNOperandDataTypes, /*alsoBuildActivation=*/ true); + 'relu', [...floatingPointTypes, 'int32', 'int8'], /*alsoBuildActivation=*/ true);