mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
(MTIA) Move "empty_cache" API (#143402)
Summary: This diff moves one of memory-related APIs to the consolidated location, which is `mtia/memory.py`. Test Plan: ``` buck2 test //mtia/host_runtime/torch_mtia/tests:test_torch_mtia_api ``` https://www.internalfb.com/intern/testinfra/testrun/13510798943184259 Reviewed By: nautsimon Differential Revision: D67148738 Pull Request resolved: https://github.com/pytorch/pytorch/pull/143402 Approved by: https://github.com/nautsimon
This commit is contained in:
committed by
PyTorch MergeBot
parent
d79fbf6b6d
commit
c7d9f29807
@ -10,5 +10,6 @@ The MTIA backend is implemented out of the tree, only interfaces are be defined
|
||||
:toctree: generated
|
||||
:nosignatures:
|
||||
|
||||
empty_cache
|
||||
memory_stats
|
||||
max_memory_allocated
|
||||
|
Reference in New Issue
Block a user