mirror of
https://github.com/ml-explore/mlx.git
synced 2025-10-20 01:18:12 +08:00
Cycle leak break (#1856)
* detect and break leaks in custom function * detect and break leaks in custom function
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
|
||||
namespace nb = nanobind;
|
||||
|
||||
void init_mlx_func(nb::module_&);
|
||||
void init_array(nb::module_&);
|
||||
void init_device(nb::module_&);
|
||||
void init_stream(nb::module_&);
|
||||
@@ -28,6 +29,7 @@ NB_MODULE(core, m) {
|
||||
nb::module_::import_("mlx._os_warning");
|
||||
nb::set_leak_warnings(false);
|
||||
|
||||
init_mlx_func(m);
|
||||
init_device(m);
|
||||
init_stream(m);
|
||||
init_array(m);
|
||||
|
Reference in New Issue
Block a user