3.1.22.13. unit_scaling.functional.residual_apply
- unit_scaling.functional.residual_apply(fn: Callable[[Tensor], Tensor], input: Tensor, tau: float = 1.0) Tensor [source]
Apply a weighted residual branch, maintaining unit scale.
Combines
residual_split()
andresidual_add()
into a single function.- Parameters: