MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / __init__

Method __init__

sat/sgm/modules/autoencoding/magvit2_pytorch.py:201–203  ·  view source on GitHub ↗
(self, fn: Module)

Source from the content-addressed store, hash-verified

199class ToTimeSequence(Module):
200 @beartype
201 def __init__(self, fn: Module):
202 super().__init__()
203 self.fn = fn
204
205 def forward(self, x, **kwargs):
206 x = rearrange(x, "b c f ... -> b ... f c")

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected