onnxruntime/onnxruntime
pengwa 79ac0231a9
Fix scalar sharing bug (#13299)
### Description

float and half initializers with same value are merged into same
initializer. This is a bug due to when we create pattern key, data type
is always be -1 (which is a naive mistake when doing code refactoring
previously), plus float and half are stored as float in constant store
for easier data comparison.

Added test coverage.

` [ONNXRuntimeError] : 1 : FAIL : Type Error: Type parameter (T) of
Optype (Mul) bound to different types (tensor(float) and tensor(float16)
in node
`
### 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. -->
2022-10-13 11:19:00 +08:00
..
contrib_ops Fix unsound hipify in ROCm EP (#13269) 2022-10-12 08:32:42 +08:00
core Fix scalar sharing bug (#13299) 2022-10-13 11:19:00 +08:00
gsl
python Share scalar constant initializer (#12878) 2022-10-10 13:32:33 +08:00
test Fix scalar sharing bug (#13299) 2022-10-13 11:19:00 +08:00
tool/etw
wasm [js/web] add 'xnnpack' to EP list (#12723) 2022-10-03 10:38:45 -07:00
__init__.py
ReformatSource.ps1
ReformatSourcePython.bat
VSCodeCoverage.runsettings