MCPcopy Create free account
hub / github.com/microsoft/TRELLIS / __init__

Method __init__

trellis/modules/sparse/norm.py:32–33  ·  view source on GitHub ↗
(self, normalized_shape, eps=1e-5, elementwise_affine=True)

Source from the content-addressed store, hash-verified

30
31class SparseLayerNorm(nn.LayerNorm):
32 def __init__(self, normalized_shape, eps=1e-5, elementwise_affine=True):
33 super(SparseLayerNorm, self).__init__(normalized_shape, eps, elementwise_affine)
34
35 def forward(self, input: SparseTensor) -> SparseTensor:
36 nfeats = torch.zeros_like(input.feats)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected