Releases all unoccupied cached memory currently held by the caching allocator so that those can be used in other GPU application and visible in nvidia-smi.
(self)
| 158 | # ======================= |
| 159 | |
| 160 | def empty_cache(self) -> None: |
| 161 | """ |
| 162 | Releases all unoccupied cached memory currently held by the caching allocator so that those can be used in other GPU application and visible in nvidia-smi. |
| 163 | """ |
| 164 | raise RuntimeError("this method is not supported for cpu accelerator") |
| 165 | |
| 166 | def memory_stats(self, device=None) -> Dict[str, Any]: |
| 167 | """ |
no outgoing calls