onnxruntime
274e6b41 - Cleanup SessionState. Move allocator lookup to SessionState. (#4194)

Commit
5 years ago
Cleanup SessionState. Move allocator lookup to SessionState. (#4194) * Move allocators to SessionState so they're decoupled from ExecutionProviders - when looking up an allocator it's based on OrtMemoryInfo not the EP so SessionState is a more natural place for that infromation to be stored - add device based lookup - simplifies logic for copying feeds/fetches across devices Cleanup SessionState and SessionStateInitializer - provide more things to SessionState at construction time so we don't construct and instance and immediately after call a bunch of setters - simplify SessionStateInitializer - reduced down to FinalizeSessionState method
Author
Parents
Loading