MCPcopy Create free account
hub / github.com/OpenBitSys/BitDistiller / __init__

Method __init__

inference/models/mpt.py:60–65  ·  view source on GitHub ↗
(self, normalized_shape, eps=1e-05, elementwise_affine=True)

Source from the content-addressed store, hash-verified

58
59class LPLayerNorm(torch.nn.LayerNorm):
60 def __init__(self, normalized_shape, eps=1e-05, elementwise_affine=True):
61 super().__init__(
62 normalized_shape=normalized_shape,
63 eps=eps,
64 elementwise_affine=elementwise_affine,
65 )
66
67 def forward(self, x):
68 module_device = x.device

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected