MCPcopy Create free account
hub / github.com/294coder/Dif-PAN / default

Function default

models/unet_model_google.py:15–18  ·  view source on GitHub ↗
(val, d)

Source from the content-addressed store, hash-verified

13
14
15def default(val, d):
16 if exists(val):
17 return val
18 return d() if isfunction(d) else d
19
20
21class LayerNorm2d(nn.LayerNorm):

Callers 2

__init__Method · 0.70
_forward_impleMethod · 0.70

Calls 1

existsFunction · 0.70

Tested by

no test coverage detected