MCPcopy Create free account
hub / github.com/drinkingcoder/NeuralMarker / freeze_bn

Method freeze_bn

core/biraft.py:65–68  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

63 self.update_block = BasicUpdateBlock(self.args, hidden_dim=hdim)
64
65 def freeze_bn(self):
66 for m in self.modules():
67 if isinstance(m, nn.BatchNorm2d):
68 m.eval()
69
70 def initialize_flow(self, img):
71 """ Flow is represented as difference between two coordinate grids flow = coords1 - coords0"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected