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

Question about "rf" parameter in conv1d() function #31

Open
XisnZhang opened this issue Oct 25, 2018 · 0 comments
Open

Question about "rf" parameter in conv1d() function #31

XisnZhang opened this issue Oct 25, 2018 · 0 comments

Comments

@XisnZhang
Copy link

    if rf == 1:  # faster 1x1 conv
       c = tf.reshape(tf.matmul(tf.reshape(x, [-1, nx]), tf.reshape(w, [-1, nf])) + b, shape_list(x)[:-1] + [nf])
    else:  # was used to train LM
        c = tf.nn.conv1d(x, w, stride=1, padding=pad) + b  

when training LM, rf = ? and why?

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