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

Method __init__

utils.py:73–76  ·  view source on GitHub ↗
(self, dim: int, eps: float = 1e-6)

Source from the content-addressed store, hash-verified

71 """
72
73 def __init__(self, dim: int, eps: float = 1e-6) -> None:
74 super().__init__()
75 self.eps = eps
76 self.dim = dim
77
78 def forward(self, x: torch.Tensor) -> torch.Tensor:
79 # x: [..., dim]

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected