onnxruntime/include
Scott McKay 5c8034cc20
Avoid call to Node::ToProto on first Graph::Resolve to improve session creation performance. (#20296)
### Description
<!-- Describe your changes. -->
The first call to Graph::Resolve occurs when creating the Graph instance
when loading an existing model from ModelProto. As the Node instance
will exactly match the source NodeProto there's no need to call
Node::ToProto in this case.

Add a temporary reference to the original NodeProto to avoid the call on
the first Graph::Resolve.

### 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. -->
Better alternative to #19469
2024-04-17 10:07:12 +10:00
..
onnxruntime/core Avoid call to Node::ToProto on first Graph::Resolve to improve session creation performance. (#20296) 2024-04-17 10:07:12 +10:00