MCPcopy Create free account
hub / github.com/dhakalnirajan/LLaMA-BitNet / forward

Method forward

utils.py:78–81  ·  view source on GitHub ↗
(self, x: torch.Tensor)

Source from the content-addressed store, hash-verified

76 self.dim = dim
77
78 def forward(self, x: torch.Tensor) -> torch.Tensor:
79 # x: [..., dim]
80 rms = x.pow(2).mean(dim=-1, keepdim=True).add(self.eps).sqrt()
81 return x / rms
82
83
84# ──────────────────────────────────────────────────────────────────────────────

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected