MCPcopy
hub / github.com/zju3dv/4K4D / root_of_any

Function root_of_any

easyvolcap/utils/net_utils.py:499–505  ·  view source on GitHub ↗
(k, l)

Source from the content-addressed store, hash-verified

497
498
499def root_of_any(k, l):
500 for s in l:
501 a = accumulate(k.split('.'), lambda x, y: x + '.' + y)
502 for r in a:
503 if s == r:
504 return True
505 return False
506
507
508def freeze_module(module: nn.Module):

Callers 2

load_modelFunction · 0.85
load_networkFunction · 0.85

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected