microsoft / onnxruntime

ONNX Runtime: cross-platform, high performance ML inferencing and training accelerator
https://onnxruntime.ai
MIT License
14.81k stars 2.94k forks source link

[WebNN EP] Support LRN operator #22775

Closed miaobin closed 1 week ago

miaobin commented 2 weeks ago

WebNN doesn't provide dedicate op for LRN, use a couple of WebNN ops to emulate it in WebNN EP: pow -> transpose -> pad -> averagePool -> transpose -> mul -> add -> pow -> div @Honry @fdwr PTAL, thanks!

miaobin commented 2 weeks ago

Updated the code based on comments. Please take another look, thanks a lot! @Honry @fdwr

miaobin commented 2 weeks ago

Thank you for your patient review @Honry @fdwr . Updated the code and please take another look. Thanks a lot!

fdwr commented 2 weeks ago

/azp run ONNX Runtime Web CI Pipeline,Windows GPU CI Pipeline,Linux Android Emulator QNN CI Pipeline

fdwr commented 2 weeks ago

/azp run Linux CPU CI Pipeline,Linux CPU Minimal Build E2E CI Pipeline,Linux GPU CI Pipeline,Linux GPU TensorRT CI Pipeline,Linux OpenVINO CI Pipeline,Linux QNN CI Pipeline,MacOS CI Pipeline,Windows ARM64 QNN CI Pipeline,Windows CPU CI Pipeline

fdwr commented 2 weeks ago

/azp run Windows GPU CUDA CI Pipeline,Windows GPU DML CI Pipeline,Windows GPU Doc Gen CI Pipeline

fdwr commented 2 weeks ago

/azp run Windows GPU TensorRT CI Pipeline,onnxruntime-binary-size-checks-ci-pipeline,orttraining-linux-ci-pipeline,orttraining-linux-gpu-ci-pipeline,orttraining-ortmodule-distributed,Windows x64 QNN CI Pipeline,Big Models

azure-pipelines[bot] commented 2 weeks ago
Azure Pipelines successfully started running 2 pipeline(s).
azure-pipelines[bot] commented 2 weeks ago
Azure Pipelines successfully started running 3 pipeline(s).
azure-pipelines[bot] commented 2 weeks ago
Azure Pipelines successfully started running 4 pipeline(s).
azure-pipelines[bot] commented 2 weeks ago
Azure Pipelines successfully started running 9 pipeline(s).