Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MiniMax-AI/VTP
/ forward
Method
forward
vtp/models/layers/normalization.py:20–22 ·
view source on GitHub ↗
(self, x: Tensor)
Source
from the content-addressed store, hash-verified
18
return
x * torch.rsqrt(x.pow(2).mean(-1, keepdim=True) + self.eps)
19
20
def
forward(self, x: Tensor) -> Tensor:
21
output = self._norm(x.float()).type_as(x)
22
return
output * self.weight
23
24
25
class
LayerNorm(nn.LayerNorm):
Callers
nothing calls this directly
Calls
1
_norm
Method · 0.95
Tested by
no test coverage detected