Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/zai-org/CogVideo
/ tokenize
Method
tokenize
sat/sgm/modules/autoencoding/magvit2_pytorch.py:1504–1506 ·
view source on GitHub ↗
(self, video)
Source
from the content-addressed store, hash-verified
1502
1503
@torch.no_grad()
1504
def
tokenize(self, video):
1505
self.eval()
1506
return
self.forward(video, return_codes=True)
1507
1508
@beartype
1509
def
forward(
Callers
nothing calls this directly
Calls
2
forward
Method · 0.95
eval
Method · 0.45
Tested by
no test coverage detected