mlx.core.get_cache_memory

mlx.core.get_cache_memory#

get_cache_memory() int#

获取缓存大小(以字节为单位)。

缓存包含当前未使用的内存,这些内存尚未返回给系统分配器。