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

What is the size of embedded_chars_expanded ? #186

Open
arushi-08 opened this issue Dec 6, 2019 · 0 comments
Open

What is the size of embedded_chars_expanded ? #186

arushi-08 opened this issue Dec 6, 2019 · 0 comments

Comments

@arushi-08
Copy link

I'm trying to perform text classification using cnn, on my dataset, where embedding size is (?,768).
I'm following this file text_cnn.py, from conv2d function. But before that, I need to convert my embedding into 4D tensor.
How should I change (?,768) to 4D tensor?

In text_cnn.py :
self.embedded_chars = tf.nn.embedding_lookup(self.W, self.input_x) self.embedded_chars_expanded = tf.expand_dims(self.embedded_chars, -1)

What are the dimensions of embedded_chars_expanded?

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