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

I have some doubts about the function feedforward in modules.py #3

Open
yjyGo opened this issue Mar 21, 2019 · 0 comments
Open

I have some doubts about the function feedforward in modules.py #3

yjyGo opened this issue Mar 21, 2019 · 0 comments

Comments

@yjyGo
Copy link

yjyGo commented Mar 21, 2019

In your code feedforward function of module.py,
line 297:
outputs = tf.contrib.layers.fully_connected(**params)
line 301:
params = {"inputs": inputs, "num_outputs": num_units[1], "activation_fn": None}

I guess the key "inputs" of dict params at line 301 correspond to the value is outputs at line 297, according the fomulate: FFN(x) = max(0, xW1+b1)W2+b2 at fifth page in paper "Attention is all you need".

@yjyGo yjyGo changed the title I have some doubts about the function feedforward in module.py I have some doubts about the function feedforward in modules.py Mar 21, 2019
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

1 participant