onnxruntime/onnxruntime/core
Peishen Yan a05203b91c
[WebNN EP] Fix AddInitializersToSkip issues (#23354)
### Description
<!-- Describe your changes. -->
When the onnx model reuses initializers in more than one ops, if one of
the ops wants to add this initializer to the skipped list, but the other
ops still need this initializer, it will cause the process to crash.

Therefore, like other EPs, we count `initializer_usage_`, the number of
occurrences of each initializer in all ops and modify the
`AddInitializersToSkip` to minus the corresponding initializers'
statistic one when adding the specific operators.

### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
2025-01-17 17:18:38 -08:00
..
common Remove nsync (#20413) 2024-10-21 15:32:14 -07:00
dll fix webgpu delay load test (#23157) 2024-12-20 13:37:12 -08:00
dlpack
eager
flatbuffers Remove core/common/gsl.h (#20894) 2024-07-08 18:09:39 -07:00
framework Dump nodes with potential overflow in half conversion (#23363) 2025-01-16 12:54:46 -08:00
graph Bump clang-format from 18.1.8 to 19.1.6 (#23346) 2025-01-14 09:02:04 -08:00
mickey Fix typos according to reviewdog report. (#21335) 2024-07-22 13:37:32 -07:00
mlas [ARM CPU] Add rotary embedding fp16 kernel (#23013) 2024-12-06 13:25:48 -08:00
optimizer bugfix: string_view of invalid memory (#23417) 2025-01-17 07:56:26 -08:00
platform [CoreML] support coreml model cache (#23065) 2024-12-31 09:29:41 +08:00
providers [WebNN EP] Fix AddInitializersToSkip issues (#23354) 2025-01-17 17:18:38 -08:00
quantization
session Add QNN EP HTP shared memory allocator (#23136) 2025-01-14 11:09:50 -08:00
util Address CodeQL security issues on comparison of different types (#23276) 2025-01-07 17:30:44 -08:00