mlx.core.get_active_memory

mlx.core.get_active_memory#

get_active_memory() int#

获取以字节为单位的活动使用内存量。

注意,这并不总是与系统报告的内存使用量匹配,因为它不包含缓存的内存缓冲区。