torch.memory.flushPendingDestruction
function flushPendingDestruction(): voidFlush pending tensor destruction. This is called automatically after sync scopes, but can also be called manually after syncDevice() for immediate cleanup.
function flushPendingDestruction(): voidFlush pending tensor destruction. This is called automatically after sync scopes, but can also be called manually after syncDevice() for immediate cleanup.