Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CompVis/zigma
/ default
Function
default
model_zigma.py:89–92 ·
view source on GitHub ↗
(val, d)
Source
from the content-addressed store, hash-verified
87
88
89
def
default(val, d):
90
if
exists(val):
91
return
val
92
return
d()
if
isfunction(d)
else
d
93
94
95
class
CrossAttention(nn.Module):
Callers
1
__init__
Method · 0.85
Calls
1
exists
Function · 0.85
Tested by
no test coverage detected