Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ get_max
Method
get_max
imperative/python/test/unit/core/test_stream.py:21–22 ·
view source on GitHub ↗
(self, device)
Source
from the content-addressed store, hash-verified
19
mge.device.reset_max_memory_stats(d)
20
21
def
get_max(self, device):
22
return
mge.device.get_max_allocated_memory(device) - self.baseline[device]
23
24
25
@pytest.mark.require_ngpu(1)
Callers
3
test_mem_stats
Function · 0.95
test_borrow
Function · 0.95
test_stream_mem
Function · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected