MCPcopy
hub / github.com/microsoft/Swin-Transformer / no_weight_decay_keywords

Method no_weight_decay_keywords

models/simmim.py:155–158  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

153
154 @torch.jit.ignore
155 def no_weight_decay_keywords(self):
156 if hasattr(self.encoder, 'no_weight_decay_keywords'):
157 return {'encoder.' + i for i in self.encoder.no_weight_decay_keywords()}
158 return {}
159
160
161def build_simmim(config):

Callers 1

build_optimizerFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected