Instead of c10::Allocator to make it more compatible with torch.accelerator APIs, that route all torch.accelerator.memory_* cals thru at::getDeviceAllocator, which does
dynamic_cast<DeviceAllocator*>(c10::GetAllocator(device)).
Test Plan:
python -c "import torch;x = torch.rand(1024, 1024, device='mps'); print(torch.mps.current_allocated_memory()); del x; torch.accelerator.empty_cache(); print(torch.accelerator.memory_allocated())"
Should allow next iterations of
Approved by: https://github.com/Skylion007
Community-Analysen & Experten-Meinungen 0
Verwandte Story-Cluster & Quellen (Vektor-KI)
Ähnliche Beiträge
Auch interessante Nachrichten trunk/8182b8f1f6c7aaebd2da18786f4667dea7542f02: [BE] Make `IMPSAllocator` inherit form `c10::DeviceAllocator` (#186748)
Thematisch verwandte Begriffe: trunk8182b8f1f6c7aaebd2da18786f4667dea7542f02, Make, IMPSAllocator, inherit · 6 Treffer
Borrowed Machinery: SnappyClient, HijackLoader, and a Shared Codebase?
KB5121003 Spieleabstürze durch RGB-Treiber beheben - WindowsPower.de
ICEDID Configuration Extractor
2026-09-01: Essential macOS Stealer infection
Videos werden geladen ...
Beiträge werden geladen ...
Videos werden geladen ...
Beiträge werden geladen ...
Videos werden geladen ...
Beiträge werden geladen ...
Videos werden geladen ...
Beiträge werden geladen ...
Videos werden geladen ...
SOCIAL SHARE CARD GENERATOR