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

a02_TextCNN: I can't run the p7_TextCNN_model_multilayers.py #87

Closed
Amanda2024 opened this issue Oct 25, 2018 · 3 comments
Closed

a02_TextCNN: I can't run the p7_TextCNN_model_multilayers.py #87

Amanda2024 opened this issue Oct 25, 2018 · 3 comments

Comments

@Amanda2024
Copy link

Hello~
Can you teach me how to run it?
I have change the textCNN to TextCNNMultilayers in the train.py,,But appeared the error:
feed_dict = {TextCNNMultilayers .input_x: trainX[start:end],TextCNNMultilayers .dropout_keep_prob: 0.5,TextCNNMultilayers .iter: iteration,TextCNNMultilayers .tst: not FLAGS.is_training}
AttributeError: TextCNNMultilayers instance has no attribute 'iter'

@brightmart
Copy link
Owner

brightmart commented Oct 25, 2018 via email

@Amanda2024
Copy link
Author

There must be some errors in TextCNNMultilayers.py.
I can't even run the test() in TextCNNMultilayers.py

ValueError: Dimensions must be equal, but are 128 and 1 for 'convolution-pooling-2/conv2' (op: 'Conv2D') with input shapes: [?,4,1,128], [2,128,1,128].

So what should I do ?Thanke you for your reply.

@brightmart
Copy link
Owner

I remove TextCNNMultilayers.py temporary. if you want to use multi-layer of TextCNN, you can check function of conv_layers_return_2d_great from

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

2 participants