MCPcopy
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

forwardMethod · 0.95
evalMethod · 0.45

Tested by

no test coverage detected