Reset peak memory (#1074)

* reset peak memory

* fix linux

* nits in docs
This commit is contained in:
Awni Hannun
2024-05-03 17:12:51 -07:00
committed by GitHub
parent 79c859e2e0
commit 21623156a3
7 changed files with 26 additions and 4 deletions

View File

@@ -258,6 +258,9 @@ size_t get_active_memory() {
size_t get_peak_memory() {
return allocator().get_peak_memory();
}
void reset_peak_memory() {
allocator().reset_peak_memory();
}
size_t get_cache_memory() {
return allocator().get_cache_memory();
}