Closed qjia7 closed 2 years ago
I can reproduce this on Chrome 106.0.5249.91 linux.
This is due to XNNPack not supporting a kernel size of 1x1 in AvgPool (which is pretty reasonable since that turns it into the identity function, not counting padding and strides). I'm working on a fix, but I need to account for strides and padding.
Why does MobileNetV3 have an AvgPool node with a 1x1 kernel that behaves as the identity function? Maybe there's something wrong in our conversion? Specifically, the node I'm talking about is StatefulPartitionedCall/StatefulPartitionedCall/predict/MobilenetV3/Logits/AvgPool
.
Fixed by #6969. Confirmed with the local benchmark tool.
Steps to reproduce:
MobileNetV3
andwasm
backend, clickTest correctness
.Expect
Prediction matches CPU
istrue
. Actually gotfalse
. OS: windows browser: 105.0.5195.127