模型开发接口
推理部署接口
API 相关说明
Specifies how to pre-allocate from raw device allocator.
alignment (int) – specifies the alignment in bytes.
int
min_req (int) – min request size in bytes.
max_overhead (int) – max overhead above required size in bytes.
growth_factor – request size / cur allocated`
device_type – the device type
alignment – int:
min_req – int:
max_overhead – int:
previous
megengine.reset_max_memory_stats
next
megengine.coalesce_free_memory