g-mlp-pytorch icon indicating copy to clipboard operation
g-mlp-pytorch copied to clipboard

Potentially missing the high way pass

Open Vincent-Li-9701 opened this issue 3 years ago • 1 comments

Hello,

Maybe I missed it, but would you mind pointing out where the high way pass of the gMLP block is in the code? Based on the paper, there is a high way path (addition) between the input and the output. I couldn't find it in the gMLPBlock code.

Thank you

Vincent-Li-9701 avatar Jun 23 '21 18:06 Vincent-Li-9701

Implemented here: https://github.com/lucidrains/g-mlp-pytorch/blob/main/g_mlp_pytorch/g_mlp_pytorch.py#L39-L45 Used in gMLP: https://github.com/lucidrains/g-mlp-pytorch/blob/main/g_mlp_pytorch/g_mlp_pytorch.py#L233 Used in gMLPVision: https://github.com/lucidrains/g-mlp-pytorch/blob/main/g_mlp_pytorch/g_mlp_pytorch.py#L278

chazzmoney avatar Aug 27 '21 17:08 chazzmoney