MCPcopy Create free account
hub / github.com/apple/axlearn / tree_flatten

Method tree_flatten

axlearn/common/checkpointer_test.py:1189–1191  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1187
1188 def tree_flatten_with_keys(self):
1189 raise NotImplementedError
1190
1191 def tree_flatten(self):
1192 # Convert dict_values and_keys to lists to avoid holding reference to the VDict.
1193 return (list(self.values()), list(self.keys()))
1194

Callers 8

add_leavesFunction · 0.45
check_jax_typeFunction · 0.45
serializeMethod · 0.45
update_fnFunction · 0.45

Calls 1

keysMethod · 0.80

Tested by

no test coverage detected