megengine.get_max_reserved_memory

get_max_reserved_memory(device=None)[源代码]

Returns the maximum 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.