Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why use SiLU before residual connection #198

Open
j93hahn opened this issue May 15, 2024 · 1 comment
Open

Why use SiLU before residual connection #198

j93hahn opened this issue May 15, 2024 · 1 comment

Comments

@j93hahn
Copy link

j93hahn commented May 15, 2024

Title. In

def __init__(self, in_dim=3, out_dim=2, num=5, k=3, noise_scale=0.1, scale_base=1.0, scale_sp=1.0, base_fun=torch.nn.SiLU(), grid_eps=0.02, grid_range=[-1, 1], sp_trainable=True, sb_trainable=True, device='cpu'):
, why do you apply SiLU on the input x before passing it through the linear layer and then the residual connection? Why not the linear layer first then SiLU? Or why even use SiLU altogether?

@LarsDoorenbos
Copy link

Related: #128

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants