mirror of
https://github.com/ml-explore/mlx.git
synced 2025-10-19 08:10:15 +08:00
Add stats and limit to common allocator and enable tests (#1988)
* add stats to common allocator and enable tests * linux memory and default * fix
This commit is contained in:
@@ -36,7 +36,7 @@ void init_metal(nb::module_& m) {
|
||||
});
|
||||
metal.def("get_peak_memory", []() {
|
||||
DEPRECATE("mx.metal.get_peak_memory", "mx.get_peak_memory");
|
||||
return mx::get_active_memory();
|
||||
return mx::get_peak_memory();
|
||||
});
|
||||
metal.def("reset_peak_memory", []() {
|
||||
DEPRECATE("mx.metal.reset_peak_memory", "mx.reset_peak_memory");
|
||||
|
Reference in New Issue
Block a user