MCPcopy Create free account
hub / github.com/TorchSSL/TorchSSL / __init__

Method __init__

train_utils.py:389–393  ·  view source on GitHub ↗

freeze_bn and unfreeze_bn must appear in pairs

(self)

Source from the content-addressed store, hash-verified

387
388class Bn_Controller:
389 def __init__(self):
390 """
391 freeze_bn and unfreeze_bn must appear in pairs
392 """
393 self.backup = {}
394
395 def freeze_bn(self, model):
396 assert self.backup == {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected