onnxruntime
Fix bug in handling of an initializer that provides a graph output.
#3912
Merged

Commits
  • 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.
    skottmckay committed 5 years ago
  • Add unit test with and without pre-allocated fetch.
    skottmckay committed 5 years ago
  • Add some extra info around why we're handling this special case.
    skottmckay committed 5 years ago
Loading