Commit 7ad13f6
Fix CPU MLX shim: drop duplicate Module.children/__contains__ (#938)
#934 added a structure-preserving Module.children() (non-Module list/dict
items map to {}) plus a vars-based __contains__, along with the smoke test that
pins that behavior. #935 landed minutes later and re-added its own children()
and __contains__ without seeing #934's, so the second definitions silently
shadowed the first: children() returned raw containers and __contains__ resolved
via getattr (which fires @Property descriptors). That broke
test_module_children_preserves_direct_child_tree.
Remove the duplicate definitions and keep #934's versions. The full MLX suite,
including the output-head resolution paths #935 targeted, stays green.
Co-authored-by: danielhanchen <unslothai@gmail.com>1 parent 118c8c9 commit 7ad13f6
1 file changed
Lines changed: 0 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | 146 | | |
173 | 147 | | |
174 | 148 | | |
| |||
0 commit comments