MCPcopy Index your code
hub / github.com/microsoft/Cream / include

Function include

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

Source from the content-addressed store, hash-verified

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
28 named_parameters = list(model.named_parameters())
29 # we create three optimizer for image encode, text encoder, and jointly part

Callers 1

build_optimizerFunction · 0.85

Calls 1

excludeFunction · 0.85

Tested by

no test coverage detected