Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenDriveLab/ReSim
/ __init__
Method
__init__
sat/sgm/modules/autoencoding/magvit2_pytorch.py:188–190 ·
view source on GitHub ↗
(self, fn: Module)
Source
from the content-addressed store, hash-verified
186
class
Residual(Module):
187
@beartype
188
def
__init__(self, fn: Module):
189
super().__init__()
190
self.fn = fn
191
192
def
forward(self, x, **kwargs):
193
return
self.fn(x, **kwargs) + x
Callers
nothing calls this directly
Calls
1
__init__
Method · 0.45
Tested by
no test coverage detected