(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:
Hyunho Yeo
2024-12-20 17:39:06 +00:00
committed by PyTorch MergeBot
parent d79fbf6b6d
commit c7d9f29807
3 changed files with 7 additions and 5 deletions

View File

@ -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