Browser Compatibility
DirectML Backend / Windows
WebNN | CPU | GPU | NPU |
---|---|---|---|
Windows | β
LiteRT/XNNPACK πβΉοΈ WCR/MLAS (deprecated) | β DirectML | β DirectML |
The WebNN DirectML backend mainly supported on Windows.
WebNN Spec | Operations | Chromium Version |
---|---|---|
argMax | β REDUCE_FUNCTION_ARGMAX | M122 |
argMin | β REDUCE_FUNCTION_ARGMIN | M122 |
batchNormalization | β BATCH_NORMALIZATION | M122 |
cast | β CAST | M122 |
clamp | β ELEMENT_WISE_CLIP | M119 |
concat | β JOIN | M120 |
conv2d | β CONVOLUTION | M119 |
convTranspose2d | β CONVOLUTION | M121 |
cumulativeSum | β CUMULATIVE_SUMMATION | M131 |
dequantizeLinear | β ELEMENT_WISE_DEQUANTIZE_LINEAR | M132 |
element-wise binary / add | β ELEMENT_WISE_ADD | M119 |
element-wise binary / div | β ELEMENT_WISE_DIVIDE | M119 |
element-wise binary / max | β ELEMENT_WISE_MAX | M119 |
element-wise binary / min | β ELEMENT_WISE_MIN | M119 |
element-wise binary / mul | β ELEMENT_WISE_MULTIPLY | M119 |
element-wise binary / notEqual | β Emulated with ELEMENT_WISE_LOGICAL_EQUALS and ELEMENT_WISE_LOGICAL_NOT | M134 |
element-wise binary / pow | β ELEMENT_WISE_POW | M119 |
element-wise binary / sub | β ELEMENT_WISE_SUBTRACT | M119 |
element-wise logical / equal | β ELEMENT_WISE_LOGICAL_EQUALS | M122 |
element-wise logical / greater | β ELEMENT_WISE_LOGICAL_GREATER_THAN | M122 |
element-wise logical / greaterOrEqual | β ELEMENT_WISE_LOGICAL_GREATER_THAN_OR_EQUAL | M122 |
element-wise logical / lesser | β ELEMENT_WISE_LOGICAL_LESS_THAN | M122 |
element-wise logical / lesserOrEqual | β ELEMENT_WISE_LOGICAL_LESS_THAN_OR_EQUAL | M122 |
element-wise logical / logicalAnd | β ELEMENT_WISE_LOGICAL_AND | M131 |
element-wise logical / logicalOr | β ELEMENT_WISE_LOGICAL_OR | M131 |
element-wise logical / logicalXor | β ELEMENT_WISE_LOGICAL_XOR | M131 |
element-wise logical / not | β ELEMENT_WISE_LOGICAL_NOT | M121 |
element-wise unary / abs | β ELEMENT_WISE_ABS | M121 |
element-wise unary / ceil | β ELEMENT_WISE_CEIL | M121 |
element-wise unary / identity | β ELEMENT_WISE_IDENTITY | M121 |
element-wise unary / cos | β ELEMENT_WISE_COS | M121 |
element-wise unary / erf | β ELEMENT_WISE_ERF | M121 |
element-wise unary / exp | β ELEMENT_WISE_EXP | M121 |
element-wise unary / floor | β ELEMENT_WISE_FLOOR | M121 |
element-wise unary / log | β ELEMENT_WISE_LOG | M121 |
element-wise unary / neg | β ELEMENT_WISE_NEGATE | M121 |
element-wise unary / reciprocal | β ELEMENT_WISE_RECIP | M121 |
element-wise unary / sin | β ELEMENT_WISE_SIN | M121 |
element-wise unary / sqrt | β ELEMENT_WISE_SQRT | M121 |
element-wise unary / tan | β ELEMENT_WISE_TAN | M121 |
elu | β ACTIVATION_ELU | M121 |
expand | β ELEMENT_WISE_IDENTITY | M121 |
gather | β GATHER | M122 |
gatherElements | β GATHER_ELEMENTS | M130 |
gatherND | β GATHER_ND | M131 |
gelu | β ACTIVATION_GELU | M126 |
gemm | β GEMM | M119 |
gru | β GRU | M125 |
gruCell | β GRU | M125 |
hardSigmoid | β ACTIVATION_HARD_SIGMOID | M123 |
hardSwish | β Map to other op | M123 |
instanceNormalization | β MEAN_VARIANCE_NORMALIZATION1 | M122 |
layerNormalization | β MEAN_VARIANCE_NORMALIZATION1 | M122 |
leakyRelu | β ACTIVATION_LEAKY_RELU | M121 |
linear | β ACTIVATION_LINEAR | M122 |
lstm | β LSTM | M125 |
lstmCell | β LSTM | M125 |
matmul | β GEMM | M121 |
pad | β PADDING | M120 |
pooling / averagePool2d | β AVERAGE_POOLING | M119 |
pooling / l2Pool2d | β LP_POOLING | M123 |
pooling / maxPool2d | β MAX_POOLING2 | M119 |
prelu | β ACTIVATION_PARAMETERIZED_RELU | M120 |
quantizeLinear | β ELEMENT_WISE_QUANTIZE_LINEAR | M132 |
reduction / reduceL1 | β REDUCE_FUNCTION_L1 | M121 |
reduction / reduceL2 | β REDUCE_FUNCTION_L2 | M121 |
reduction / reduceLogSum | β REDUCE_FUNCTION_LOG_SUM | M121 |
reduction / reduceLogSumExp | β REDUCE_FUNCTION_LOG_SUM_EXP | M121 |
reduction / reduceMax | β REDUCE_FUNCTION_MAX | M121 |
reduction / reduceMean | β REDUCE_FUNCTION_AVERAGE | M121 |
reduction / reduceMin | β REDUCE_FUNCTION_MIN | M121 |
reduction / reduceProduct | β REDUCE_FUNCTION_MULTIPLY | M121 |
reduction / reduceSum | β REDUCE_FUNCTION_SUM | M121 |
reduction / reduceSumSquare | β REDUCE_FUNCTION_SUM_SQUARE | M121 |
relu | β ACTIVATION_RELU | M119 |
resample2d | β RESAMPLE | M121 |
reshape | β Supported by tensor strides | M119 |
reverse | β SLICE1 | M133 |
scatterElements | β SCATTER_ELEMENTS | M132 |
scatterND | β SCATTER_ND | M131 |
sigmoid | β ACTIVATION_SIGMOID | M121 |
sign | β ELEMENT_WISE_SIGN | M130 |
slice | β SLICE | M120 |
softmax | β ACTIVATION_SOFTMAX | M119 |
softplus | β ACTIVATION_SOFTPLUS | M122 |
softsign | β ACTIVATION_SOFTSIGN | M123 |
split | β SPLIT | M120 |
tanh | β ACTIVATION_TANH | M121 |
tile | β TILE | M130 |
transpose | β Supported by tensor strides | M120 |
triangular | β Supported by combined operations | M126 |
where | β ELEMENT_WISE_IF | M122 |