Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CompVis/diff2flow
/ default
Function
default
diff2flow/models/unet/attention.py:29–32 ·
view source on GitHub ↗
(val, d)
Source
from the content-addressed store, hash-verified
27
28
29
def
default(val, d):
30
if
exists(val):
31
return
val
32
return
d()
if
isfunction(d)
else
d
33
34
35
def
max_neg_value(t):
Callers
5
__init__
Method · 0.70
__init__
Method · 0.70
forward
Method · 0.70
__init__
Method · 0.70
forward
Method · 0.70
Calls
1
exists
Function · 0.70
Tested by
no test coverage detected