Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/zai-org/CogVideo
/ append_dims
Function
append_dims
sat/sgm/modules/autoencoding/magvit2_pytorch.py:76–77 ·
view source on GitHub ↗
(t, ndims: int)
Source
from the content-addressed store, hash-verified
74
75
76
def
append_dims(t, ndims: int):
77
return
t.reshape(*t.shape, *((1,) * ndims))
78
79
80
def
is_odd(n):
Callers
15
forward
Method · 0.70
__call__
Method · 0.50
__call__
Method · 0.50
__call__
Method · 0.50
dynamic_thresholding2
Function · 0.50
latent_dynamic_thresholding
Function · 0.50
dynamic_thresholding3
Function · 0.50
to_d
Function · 0.50
sampler_step
Method · 0.50
sampler_step
Method · 0.50
ancestral_euler_step
Method · 0.50
ancestral_step
Method · 0.50
Calls
no outgoing calls
Tested by
no test coverage detected