microsoft / onnxruntime

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

[WebNN] Support negative steps for slice #22871

Open shiyi9801 opened 3 days ago

shiyi9801 commented 3 days ago

Slice with negative steps can be emulated by reverse+slice.

shiyi9801 commented 3 days ago

@Honry @fdwr PTAL, thanks :)

shiyi9801 commented 3 days ago

It suddenly occurred to me that maybe other negative steps can also be supported with reverse+slice... I'll figure it out tomorrow

shiyi9801 commented 3 days ago

Updated. @Honry @fdwr PTAL, thanks!

guschmue commented 1 day ago

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

guschmue commented 1 day 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

guschmue commented 1 day 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 1 day ago
Azure Pipelines successfully started running 2 pipeline(s).
guschmue commented 1 day ago

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

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