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

Function freeze_module

easyvolcap/utils/net_utils.py:508–510  ·  view source on GitHub ↗
(module: nn.Module)

Source from the content-addressed store, hash-verified

506
507
508def freeze_module(module: nn.Module):
509 for p in module.parameters():
510 p.requires_grad_(False)
511
512
513def unfreeze_module(module: nn.Module):

Callers 2

__init__Method · 0.90
__init__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected