Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/zai-org/CogVideo
/ default
Function
default
sat/sgm/modules/autoencoding/magvit2_pytorch.py:46–47 ·
view source on GitHub ↗
(v, d)
Source
from the content-addressed store, hash-verified
44
45
46
def
default(v, d):
47
return
v
if
exists(v)
else
d
48
49
50
def
safe_get_index(it, ind, default=None):
Callers
15
__init__
Method · 0.70
__init__
Method · 0.70
__init__
Method · 0.70
__init__
Method · 0.70
__init__
Method · 0.70
__init__
Method · 0.70
__init__
Method · 0.70
forward
Method · 0.70
__init__
Method · 0.50
__init__
Method · 0.50
prepare_sampling_loop
Method · 0.50
prepare_sampling_loop
Method · 0.50
Calls
1
exists
Function · 0.70
Tested by
no test coverage detected