Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenDriveLab/ReSim
/ default
Function
default
sat/vae_modules/utils.py:225–228 ·
view source on GitHub ↗
(val, d)
Source
from the content-addressed store, hash-verified
223
224
225
def
default(val, d):
226
if
exists(val):
227
return
val
228
return
d()
if
isfunction(d)
else
d
229
230
231
def
mean_flat(tensor):
Callers
3
__init__
Method · 0.90
configure_optimizers
Method · 0.90
__init__
Method · 0.90
Calls
1
exists
Function · 0.70
Tested by
no test coverage detected