MCPcopy Create free account
hub / github.com/MiniMax-AI/VTP / forward

Method forward

vtp/models/layers/misc.py:25–26  ·  view source on GitHub ↗
(self, x: Tensor)

Source from the content-addressed store, hash-verified

23 nn.init.constant_(self.gamma, self.init_values)
24
25 def forward(self, x: Tensor) -> Tensor:
26 return x.mul_(self.gamma) if self.inplace else x * self.gamma
27
28
29class PatchDropout(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected