Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VisionXLab/OF-Diff
/ default
Function
default
ldm/modules/attention.py:31–34 ·
view source on GitHub ↗
(val, d)
Source
from the content-addressed store, hash-verified
29
30
31
def
default(val, d):
32
if
exists(val):
33
return
val
34
return
d()
if
isfunction(d)
else
d
35
36
37
def
max_neg_value(t):
Callers
6
_hacked_sliced_attentin_forward
Function · 0.90
__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