mirror of
https://github.com/ml-explore/mlx.git
synced 2025-09-19 10:48:09 +08:00
Pickle + dtype fix for numpy conversion (#763)
* pickle + dtype fix for numpy conversion * fix getattribute on Module base * remove unused function * fix tests * add topk to ops * fix doc
This commit is contained in:
@@ -134,7 +134,7 @@ class Module(dict):
|
||||
if key in self:
|
||||
return self[key]
|
||||
else:
|
||||
super(Module, self).__getattr__(key, val)
|
||||
super(Module, self).__getattribute__(key)
|
||||
|
||||
def __setattr__(self, key: str, val: Any):
|
||||
if isinstance(val, (mx.array, dict, list, tuple)):
|
||||
|
Reference in New Issue
Block a user