onnxruntime/onnxruntime/test/framework
Scott McKay 2fed37c8eb
Fix bug in handling of an initializer that provides a graph output. (#3912)
* Outputs from model execution should always be returned in a newly allocated buffer or an pre-allocated buffer provided in fetches. When an initializer is providing a graph output (e.g. constant folding may result in this) we were returning an OrtValue that pointed to the initializer and not a separately allocated buffer with a copy.

This was wrong as:
  - value wasn't returned in a pre-allocated fetch so whilst the value returned was correct, it was returned in the wrong place
  - user could alter the data in the initializer via the returned value

* Add unit test with and without pre-allocated fetch.

* Add some extra info around why we're handling this special case.
2020-05-12 20:42:58 +10:00
..
cuda Merge remote-tracking branch 'origin/ort_training' into edgchen1/merge_from_master 2020-04-22 16:56:15 +00:00
allocation_planner_test.cc Parallel all the activations ops (#3722) 2020-05-05 01:18:17 -07:00
allocator_test.cc Clean up OPTIONAL name conflict workarounds in ort_training. (#3622) 2020-04-22 09:07:55 -07:00
bfc_arena_test.cc
data_types_test.cc
distance_test.cc Fixes GTest deprecation warnings 2020-03-17 16:38:55 -07:00
dummy_allocator.cc
dummy_allocator.h
dummy_provider.cc
dummy_provider.h
endian_test.cc
execution_frame_test.cc Fix bug in handling of an initializer that provides a graph output. (#3912) 2020-05-12 20:42:58 +10:00
float_16_test.cc Add support for sessions to share a global threadpool. (#3177) 2020-03-18 15:42:46 -07:00
inference_session_test.cc Merge remote-tracking branch 'origin/master' into edgchen1/merge_from_master 2020-04-21 03:31:32 +00:00
insert_cast_transformer_test.cc Clean up OPTIONAL name conflict workarounds in ort_training. (#3622) 2020-04-22 09:07:55 -07:00
kernel_registry_test.cc
local_kernel_registry_test.cc Add support for sessions to share a global threadpool. (#3177) 2020-03-18 15:42:46 -07:00
math_test.cc Threadpool related changes. (#3564) 2020-04-21 09:57:39 -07:00
mem_pattern_planner_test.cc
memcpy_transformer_test.cc Fix static analysis warnings found by VC++ (#3530) 2020-04-16 01:46:47 -07:00
model_builder_utils.h
opaque_kernels_test.cc Add support for sessions to share a global threadpool. (#3177) 2020-03-18 15:42:46 -07:00
parallel_executor_test.cc Thread pool changes (#3153) 2020-03-30 12:18:40 -07:00
random_test.cc Add Python API to set random seed: onnxruntime.seed(<seed>) 2020-04-15 09:44:48 -07:00
session_state_test.cc Threadpool related changes. (#3564) 2020-04-21 09:57:39 -07:00
shape_inference_test.cc
sparse_kernels_test.cc Constant-12 support (#3304) 2020-03-30 23:13:52 -07:00
tensor_test.cc Add SafeInt bounds checking to memory allocation size calculations. (#3022) 2020-02-20 11:41:03 -08:00
tensorutils_test.cc Constant-12 support (#3304) 2020-03-30 23:13:52 -07:00
test_main.cc CMake changes (#2961) 2020-02-03 19:33:14 -08:00
test_tensor_loader.cc CMake changes (#2961) 2020-02-03 19:33:14 -08:00
test_utils.cc Initial PR for RKNPU execution provider (#3609) 2020-05-05 20:36:47 -07:00
test_utils.h Initial PR for RKNPU execution provider (#3609) 2020-05-05 20:36:47 -07:00
TestAllocatorManager.cc CMake changes (#2961) 2020-02-03 19:33:14 -08:00
TestAllocatorManager.h