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

Method __init__

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

Source from the content-addressed store, hash-verified

257class TokenShift(Module):
258 @beartype
259 def __init__(self, fn: Module):
260 super().__init__()
261 self.fn = fn
262
263 def forward(self, x, **kwargs):
264 x, x_shift = x.chunk(2, dim=1)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected