Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenDriveLab/ReSim
/ default
Function
default
sat/sgm/modules/attention.py:64–67 ·
view source on GitHub ↗
(val, d)
Source
from the content-addressed store, hash-verified
62
63
64
def
default(val, d):
65
if
exists(val):
66
return
val
67
return
d()
if
isfunction(d)
else
d
68
69
70
def
max_neg_value(t):
Callers
8
__init__
Method · 0.70
__init__
Method · 0.70
forward
Method · 0.70
__init__
Method · 0.70
forward
Method · 0.70
__init__
Method · 0.50
configure_optimizers
Method · 0.50
__init__
Method · 0.50
Calls
1
exists
Function · 0.70
Tested by
no test coverage detected