r"""Returns the current memory managed by the caching allocator on the computing device in bytes. Due to the asynchronous execution of MegEngine, please call megengine._full_sync before calling this function in order to get accurate value.
(device: Optional[str] = None)
| 197 | |
| 198 | |
| 199 | def get_reserved_memory(device: Optional[str] = None): |
| 200 | r"""Returns the current memory managed by the caching allocator on the computing device in bytes. |
| 201 | |
| 202 | Due to the asynchronous execution of MegEngine, please call megengine._full_sync |
| 203 | before calling this function in order to get accurate value. |
| 204 | """ |
| 205 | if device is None: |
| 206 | device = get_default_device() |
| 207 | return CompNode(device).get_reserved_memory |
| 208 | |
| 209 | |
| 210 | def get_max_reserved_memory(device: Optional[str] = None): |
nothing calls this directly
no test coverage detected