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

Function get_or_none

axlearn/common/utils.py:1565–1566  ·  view source on GitHub ↗
(x: Optional[dict], key: Any)

Source from the content-addressed store, hash-verified

1563 out_tree[k] = v
1564 in_tree = out_tree
1565 return in_tree
1566
1567
1568def non_empty_leaf_merge_fn(primary: Any, secondary: Any):
1569 """This function chooses the non-empty leaf. If both leaves are non-empty, an error

Calls 1

getMethod · 0.80

Tested by

no test coverage detected