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 add operation in TimeBlock layer #6

Open
shirenyu opened this issue Oct 14, 2019 · 3 comments
Open

why use add operation in TimeBlock layer #6

shirenyu opened this issue Oct 14, 2019 · 3 comments

Comments

@shirenyu
Copy link

shirenyu commented Oct 14, 2019

In the tensorflow implementation, the temporal_conv_layer result is the product of conv and sigmoid.
“ return (x_conv[:, :, :, 0:c_out] + x_input) * tf.nn.sigmoid(x_conv[:, :, :, -c_out:]) ”

could you explain why the add operation is used here?

temp = self.conv1(X) + torch.sigmoid(self.conv2(X))
out = F.relu(temp + self.conv3(X))

@NotEnded99
Copy link

Same question as you

@lp2900
Copy link

lp2900 commented Dec 7, 2021

Yeah, no GLU .

@ManlioWu
Copy link

ManlioWu commented May 10, 2023

I have the same question: Why addition rather than multiplication?

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

4 participants