onnxruntime/onnxruntime/test/framework
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
..
cuda
allocation_planner_test.cc Avoid call to Node::ToProto on first Graph::Resolve to improve session creation performance. (#20296) 2024-04-17 10:07:12 +10:00
allocator_test.cc Disable CPU EP's allocator's arena when address sanitizer is enabled (#19485) 2024-02-12 09:39:49 -08:00
bfc_arena_test.cc Disable streams for the DML EP (#19481) 2024-02-10 00:34:34 -08:00
copy_test.cc
data_types_test.cc
distance_test.cc
dummy_allocator.cc
dummy_allocator.h
dummy_provider.cc
dummy_provider.h
endian_test.cc
execution_frame_test.cc Disable streams for the DML EP (#19481) 2024-02-10 00:34:34 -08:00
execution_provider_test.cc ExecutionProvider API refactor - make GenerateMetaDefId a standalone function, decouple it from EP (#18977) 2024-01-26 07:39:08 -08:00
float_8_test.cc
float_16_test.cc
function_test.cc Build function bodies according to the imported global opset. (#18833) 2023-12-15 15:56:20 -08:00
inference_session_test.cc Switch a portion of CI/packaging jobs to MacOS12 (#19908) 2024-03-19 14:54:58 -07:00
insert_cast_transformer_test.cc Fix cast removal bug (#17953) 2023-10-31 15:48:32 -07:00
kernel_registry_test.cc
kernel_type_str_resolver_utils_test.cc Update absl and gtest to fix an ARM64EC build error (#18735) 2023-12-07 15:55:17 -08:00
local_kernel_registry_test.cc
math_test.cc
mem_pattern_planner_test.cc
memcpy_transformer_test.cc
model_builder_utils.h
opaque_kernels_test.cc
ort_model_only_test.cc
parallel_executor_test.cc
provider_options_utils_test.cc
random_test.cc
save_model_with_external_initializers.cc
session_state_test.cc Disable CPU EP's allocator's arena when address sanitizer is enabled (#19485) 2024-02-12 09:39:49 -08:00
shape_inference_test.cc Implement CustomOp Output Type Inference function (#19906) 2024-03-18 10:28:39 -07:00
sparse_kernels_test.cc
tensor_shape_test.cc
tensor_test.cc Disable CPU EP's allocator's arena when address sanitizer is enabled (#19485) 2024-02-12 09:39:49 -08:00
tensorutils_test.cc
test_tensor_loader.cc [js] enable external data loading for ort-web (#19087) 2024-01-12 19:24:24 -08:00
test_utils.cc
test_utils.h
TestAllocatorManager.cc
TestAllocatorManager.h
transpose_test.cc
tunable_op_test.cc ExecutionProvider API refactor - make GenerateMetaDefId a standalone function, decouple it from EP (#18977) 2024-01-26 07:39:08 -08:00
type_info_test.cc