onnxruntime/onnxruntime
Caroline Zhu 94ce1209f9
Bug fix for gather fusion with on-device training (#20891)
### Description
Update the initializer that's added in GatherSliceToSplitFusion to use
the GenerateNodeArgName function, rather than the GenerateNodeName
function.

GenerateNodeName goes through all the nodes in the graph to see if the
given name is already used and generates a unique one if it has been
used. GenerateNodeArgName iterates through all the node args in the
graph to see if the given name is already used.

### Motivation and Context
* on-device training goes through a generate artifacts step, where
optimizations are applied, then, when the training artifact is loaded,
additional optimizations are applied. In the first round of
optimizations, a "splits" initializer is added for phi-3. With the
second round of optimizations, another "splits" initializer with
different dimensions and data is added. Since we call GenerateNodeName
func, the first splits initializer isn't found, causing a type error
where it claims the shape of splits does not match the TensorProto
shape.
2024-06-03 14:41:39 -07:00
..
contrib_ops Suppress maybe used uninitialized warning as being false alert (#20886) 2024-05-31 17:04:58 -07:00
core Bug fix for gather fusion with on-device training (#20891) 2024-06-03 14:41:39 -07:00
python [CPU EP] Int4 support for QuantizeLinear, DequantizeLinear, and Transpose (#20362) 2024-05-30 18:56:24 -07:00
test Suppress Eigen warning in onnxruntime/test/onnx/microbenchmark/eigen.cc. (#20892) 2024-06-03 11:25:56 -05:00
tool/etw
wasm [js/web] optimize module export and deployment (#20165) 2024-05-20 09:51:16 -07:00
__init__.py Bump up version in main from 1.18.0 to 1.19.0 (#20489) 2024-04-29 20:21:41 -07:00
ReformatSource.ps1
ReformatSourcePython.bat
VSCodeCoverage.runsettings