MCPcopy
hub / github.com/mlfoundations/open_flamingo / sorted_items

Function sorted_items

_optim_utils.py:47–50  ·  view source on GitHub ↗
(dictionary: Dict[str, Any])

Source from the content-addressed store, hash-verified

45
46
47def sorted_items(dictionary: Dict[str, Any]) -> Iterator[Tuple[str, Any]]:
48 keys = sorted(dictionary.keys())
49 for k in keys:
50 yield k, dictionary[k]
51
52
53class _ConsolidatedOptimState:

Calls

no outgoing calls

Tested by

no test coverage detected