MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / __init__

Method __init__

SwissArmyTransformer/sat/ops/layernorm.py:4–6  ·  view source on GitHub ↗
(self, *args, pb_relax=False, **kwargs)

Source from the content-addressed store, hash-verified

2 from apex.normalization.fused_layer_norm import FusedLayerNorm
3 class LayerNorm(FusedLayerNorm):
4 def __init__(self, *args, pb_relax=False, **kwargs):
5 super().__init__(*args, **kwargs)
6 self.pb_relax = pb_relax
7
8 def forward(self, x):
9 if not self.pb_relax:

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected