Skip to content

Commit

Permalink
[DML EP] ORT would crash after deleting one of the models and then do…
Browse files Browse the repository at this point in the history
  • Loading branch information
menglcai authored Dec 16, 2024
1 parent a04af7b commit 77ae656
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,12 @@ namespace Dml
{
ORT_TRY
{

if (m_allocator)
{
m_context->SetAllocator(m_allocator);
}

assert(!m_closed);

DML_BINDING_DESC persistentResourceBindingDesc =
Expand Down

0 comments on commit 77ae656

Please sign in to comment.