MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / _yield_value

Function _yield_value

python/paddle/utils/layers_utils.py:154–159  ·  view source on GitHub ↗
(iterable)

Source from the content-addressed store, hash-verified

152
153
154def _yield_value(iterable):
155 if isinstance(iterable, dict):
156 for key in _sorted(iterable):
157 yield iterable[key]
158 else:
159 yield from iterable
160
161
162def _yield_flat_nest(nest):

Callers 3

_yield_flat_nestFunction · 0.85

Calls 1

_sortedFunction · 0.85

Tested by

no test coverage detected