MCPcopy Create free account
hub / github.com/alinlab/SelfPatch / train

Method train

segmentation/backbones/vit_SelfPatch.py:386–391  ·  view source on GitHub ↗
(self, mode=True)

Source from the content-addressed store, hash-verified

384 return tuple(outs)
385
386 def train(self, mode=True):
387 super(SelfPatch_ViT, self).train(mode)
388 if mode and self.norm_eval:
389 for m in self.modules():
390 if isinstance(m, nn.LayerNorm):
391 m.eval()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected