GetActiveMemory =============== Get the actively used memory in bytes. .. raw:: html

PyTorch

API: torch.cuda.memory_allocated
Strategy: Direct Mapping

Apple MLX

API: mlx.core.get_active_memory
Strategy: Direct Mapping