It looks like the dmlAllocatorResourceCleanup deleter in CreateTensorValueFromExistingD3DResource() never gets called (unless CreateTensor() throws an exception) since it's being released before the function returns, and serves no purpose. Thus FreeGPUAllocation() will never be called for the dml resource. There's no call for ReleaseValue() either anywhere in the code.
Same code in WinML.
It looks like the
dmlAllocatorResourceCleanupdeleter inCreateTensorValueFromExistingD3DResource()never gets called (unlessCreateTensor()throws an exception) since it's being released before the function returns, and serves no purpose. ThusFreeGPUAllocation()will never be called for the dml resource. There's no call forReleaseValue()either anywhere in the code.Same code in WinML.