MCPcopy Create free account
hub / github.com/TencentARC/MotionCtrl / __init__

Method __init__

lvdm/modules/x_transformer.py:118–121  ·  view source on GitHub ↗
(self, value, fn)

Source from the content-addressed store, hash-verified

116# classes
117class Scale(nn.Module):
118 def __init__(self, value, fn):
119 super().__init__()
120 self.value = value
121 self.fn = fn
122
123 def forward(self, x, **kwargs):
124 x, *rest = self.fn(x, **kwargs)

Callers 12

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected