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

Function restore_flatten_list

python/paddle/hapi/model.py:111–117  ·  view source on GitHub ↗
(l, splits)

Source from the content-addressed store, hash-verified

109
110
111def restore_flatten_list(l, splits):
112 outl = []
113 for split in splits:
114 assert len(l) >= split, "list length invalid"
115 sl, l = l[:split], l[split:]
116 outl.append(sl)
117 return outl
118
119
120def extract_args(func):

Callers 2

_runMethod · 0.85
_runMethod · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected