vllm_omni.diffusion.layers.norm ¶
LayerNorm ¶
Bases: LayerNorm, CustomOp
LayerNorm implementation that inherits from both nn.LayerNorm and CustomOp. NPU: Uses mindiesd.fast_layernorm(self, x) when MindIE-SD is installed. CUDA / HIP / XPU / native: Falls back to FP32 nn.LayerNorm implementation.