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

the shapes of input and output of glu function aret not consistent #17

Open
softrime opened this issue Mar 27, 2018 · 1 comment
Open

Comments

@softrime
Copy link

def glu(inputs):
'''Gated linear unit
Args:
inputs: A tensor of even dimensions. (N, Tx, 2c)
Returns:
outputs: A tensor of the same shape and dtype as inputs.
'''
a, b = tf.split(inputs, 2, -1) # (N, Tx, c) * 2
outputs = a * tf.nn.sigmoid(b)
return outputs
input shape is (N, Tx, 2c) while output shape should be (N, Tx, c)
I'm confused about consistent shapes of them.

@softrime softrime reopened this Mar 27, 2018
@softrime
Copy link
Author

Oh I got what this mean. consistent shapes should mean input and output in conv block

@softrime softrime reopened this Mar 27, 2018
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