🚀 The feature, motivation and pitch
Currently XNNPACK doesn't support Batch Norm, however, we can generally support it by fusing it with convolution before hand. However for standalone batch norms we can also convert them into depthwise conv1ds. Take a look at the following code here:
https://github.com/pytorch/executorch/blob/main/backends/xnnpack/_passes/fuse_batch_norm_with_conv.py
Alternatives
No response
Additional context
No response
RFC (Optional)
No response
🚀 The feature, motivation and pitch
Currently XNNPACK doesn't support Batch Norm, however, we can generally support it by fusing it with convolution before hand. However for standalone batch norms we can also convert them into depthwise conv1ds. Take a look at the following code here:
https://github.com/pytorch/executorch/blob/main/backends/xnnpack/_passes/fuse_batch_norm_with_conv.py
Alternatives
No response
Additional context
No response
RFC (Optional)
No response