MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / format_param

Function format_param

rtpose_wrapper/tools/extra/summarize.py:28–36  ·  view source on GitHub ↗
(param)

Source from the content-addressed store, hash-verified

26 return net
27
28def format_param(param):
29 out = []
30 if len(param.name) > 0:
31 out.append(param.name)
32 if param.lr_mult != 1:
33 out.append('x{}'.format(param.lr_mult))
34 if param.decay_mult != 1:
35 out.append('Dx{}'.format(param.decay_mult))
36 return ' '.join(out)
37
38def printed_len(s):
39 return len(re.sub(r'\033\[[\d;]+m', '', s))

Callers

nothing calls this directly

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected