MCPcopy Create free account
hub / github.com/microsoft/TRELLIS.2 / forward

Method forward

trellis2/modules/sparse/norm.py:60–64  ·  view source on GitHub ↗
(self, x: VarLenTensor)

Source from the content-addressed store, hash-verified

58 A LayerNorm layer that converts to float32 before the forward pass.
59 """
60 def forward(self, x: VarLenTensor) -> VarLenTensor:
61 x_dtype = x.dtype
62 x = manual_cast(x, torch.float32)
63 o = super().forward(x)
64 return manual_cast(o, x_dtype)

Callers

nothing calls this directly

Calls 2

manual_castFunction · 0.85
forwardMethod · 0.45

Tested by

no test coverage detected