MCPcopy Create free account
hub / github.com/GeWu-Lab/AnyTouch2 / ffn_residual_func

Method ffn_residual_func

model/layers/block.py:220–221  ·  view source on GitHub ↗
(x: Tensor, attn_bias=None)

Source from the content-addressed store, hash-verified

218 return self.attn(self.norm1(x), attn_bias=attn_bias)
219
220 def ffn_residual_func(x: Tensor, attn_bias=None) -> Tensor:
221 return self.mlp(self.norm2(x))
222
223 x_list = drop_add_residual_stochastic_depth_list(
224 x_list,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected