MCPcopy Create free account
hub / github.com/OpenGVLab/HumanBench / flat

Function flat

PATH/core/config.py:27–34  ·  view source on GitHub ↗
(nums)

Source from the content-addressed store, hash-verified

25 list(u'-+0123456789.'))
26
27def flat(nums):
28 res = []
29 for i in nums:
30 if isinstance(i, list):
31 res.extend(flat(i))
32 else:
33 res.append(i)
34 return res
35
36def specific_group_split(group_spec, share_backbone_group_ids, \
37 share_neck_group_ids, share_decoder_group_ids):

Callers 1

specific_group_splitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected