Browser Compatibility

LiteRT Backend / chromeOS, Linux, Windows and Android

WebNNCPUGPUNPU
chromsOSβœ… LiteRT/XNNPACKπŸš€β„ΉοΈ LiteRT
To do, temporarily fallback to XNNPACK
πŸš€β„ΉοΈ LiteRT
To do, temporarily fallback to XNNPACK
Linuxβœ… LiteRT/XNNPACKπŸš€β„ΉοΈ LiteRT
To do, temporarily fallback to XNNPACK
πŸš€β„ΉοΈ LiteRT
To do, temporarily fallback to XNNPACK
Windowsβœ… LiteRT/XNNPACK
πŸš€β„ΉοΈ WCR/MLAS (deprecated)
βœ… DirectMLβœ… DirectML
Androidβœ… LiteRT/XNNPACKπŸš€β„ΉοΈ LiteRT
To do, temporarily fallback to XNNPACK
πŸš€β„ΉοΈ LiteRT
To do, temporarily fallback to XNNPACK

The WebNN LiteRT backend mainly supported on ChromeOS, Linux, Windows and Android.

WebNN SpecOperationsChromium Version
argMaxβœ… ARG_MAXM126
argMinβœ… ARG_MINM126
batchNormalizationβœ… Emulated with Scale * ((Input - Mean) / sqrt(Variance + Epsilon)) + BiasM127
castβœ… CASTM126
clampβœ… RELU_N1_TO_1 βœ… RELU6 βœ… RELUM112
concatβœ… CONCATENATIONM113
conv2dβœ… CONV_2D βœ… DEPTHWISE_CONV_2DM112
convTranspose2dβœ… TRANSPOSE_CONVM128
cumulativeSumβœ… CUMSUMM132
dequantizeLinearβœ… QUANTIZEM132
element-wise binary / addβœ… ADDM112
element-wise binary / divβœ… DIVM112
element-wise binary / maxβœ… MAXIMUMM112
element-wise binary / minβœ… MINIMUMM112
element-wise binary / mulβœ… MULM112
element-wise binary / notEqualβœ… NotEqualM134
element-wise binary / powβœ… POWM122
element-wise binary / subβœ… SUBM112
element-wise logical / equalβœ… EQUALM126
element-wise logical / greaterβœ… GREATERM126
element-wise logical / greaterOrEqualβœ… GREATER_EQUALM126
element-wise logical / lesserβœ… LESSM126
element-wise logical / lesserOrEqualβœ… LESS_EQUALM126
element-wise logical / logicalAndβœ… LOGICAL_ANDM132
element-wise logical / logicalOrβœ… LOGICAL_ORM132
element-wise logical / logicalXorβœ… NOT_EQUALM132
element-wise logical / notβœ… LOGICAL_NOTM126
element-wise unary / absβœ… ABSM116
element-wise unary / ceilβœ… CEILM116
element-wise unary / identityβœ… RESHAPEM126
element-wise unary / cosβœ… COSM123
element-wise unary / erfβœ… SIGNM128
element-wise unary / expβœ… EXPM123
element-wise unary / floorβœ… FLOORM116
element-wise unary / logβœ… LOGM123
element-wise unary / negβœ… NEGM116
element-wise unary / reciprocalβœ… Emulated with 1/xM127
element-wise unary / sinβœ… SINM123
element-wise unary / sqrtβœ… SQRTM122
eluβœ… ELUM115
expandβœ… BROADCAST_TOM128
gatherβœ… GATHERM126
gatherElementsβœ… Emulated with GATHER_NDM133
gatherNDβœ… GATHER_NDM132
geluβœ… GELUM128
gemmβœ… FULLY_CONNECTEDM112
gruβœ… EmulatedM129
gruCellβœ… EmulatedM129
hardSigmoidβœ… Emulated with y = max(0, min(1, alpha * // x + beta))M126
hardSwishβœ… HARD_SWISHM112
instanceNormalizationβœ… Emulated with Scale * ((Input - Mean) / sqrt(Variance + Epsilon)) + BiasM127
layerNormalizationβœ… EmulatedM127
leakyReluβœ… LEAKY_RELUM113
linearβœ… Emulated with alpha * x + betaM126
lstmβœ… EmulatedM129
lstmCellβœ… EmulatedM129
matmulβœ… BATCH_MATMULM126
padβœ… PADM114
pooling / averagePool2dβœ… AVERAGE_POOL_2DM112
pooling / l2Pool2dπŸš€ L2_POOL_2D
pooling / maxPool2dβœ… MAX_POOL_2DM112
preluβœ… PRELUM115
quantizeLinearβœ… QUANTIZEM132
reduction / reduceL1βœ… Emulated with adding abs operation before reduceSumM128
reduction / reduceL2βœ… Emulated with appending pow(x, 0.5) after reduceSumSquareM128
reduction / reduceLogSumβœ… Emulated with log and reduceSumM127
reduction / reduceLogSumExpβœ… Emulated with log, reduceSum and expM127
reduction / reduceMaxβœ… REDUCE_MAXM126
reduction / reduceMeanβœ… MEANM120
reduction / reduceMinβœ… REDUCE_MINM126
reduction / reduceProductβœ… REDUCE_PRODM126
reduction / reduceSumβœ… SUMM126
reduction / reduceSumSquareβœ… Emulated with reduceSum and squareM127
reluβœ… RELUM112
resample2dβœ… RESIZE_BILINEAR βœ… RESIZE_NEAREST_NEIGHBORM112
reshapeβœ… RESHAPEM112
reverseβœ… REVERSEM133
scatterElementsβœ… Emulated with SCATTER_ND and WHEREM133
scatterNDβœ… SCATTER_NDM132
sigmoidβœ… LOGISTICM112
signβœ… SIGNM130
sliceβœ… SLICEM116
softmaxβœ… SOFTMAXM112
softplusβœ… Emulated with ln(1 + exp(x))M126
softsignβœ… Emulated with x / (1 + |x|)M127
splitβœ… SPLIT_VM116
tanhβœ… TANHM116
tileβœ… TILEM131
transposeβœ… TRANSPOSEM113
triangularβœ… EmulatedM128
whereβœ… SELECT_V2M126