MCPcopy
hub / github.com/microsoft/Cream / exclude

Function exclude

TinyCLIP/src/training/optimizer.py:23–24  ·  view source on GitHub ↗
(
        n, p)

Source from the content-addressed store, hash-verified

21
22def build_optimizer(args, model):
23 def exclude(
24 n, p): return p.ndim < 2 or "bn" in n or "ln" in n or "bias" in n or 'logit_scale' in n
25
26 def include(n, p): return not exclude(n, p)
27

Callers 2

includeFunction · 0.85
build_optimizerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected