-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Comments
check the model file to see whether iter exist or not. if not remove
TextCNNMultilayers .iter: iteration
…________________________________
发件人: RuanJingqing <notifications@github.com>
发送时间: 2018年10月25日 11:10
收件人: brightmart/text_classification
抄送: Subscribed
主题: [brightmart/text_classification] a02_TextCNN: I can't run the p7_TextCNN_model_multilayers.py (#87)
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'
―
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#87>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ASuYMGOLrV3julUlMQwaczf9qbmdJ72Jks5uoSuNgaJpZM4X5aat>.
|
There must be some errors 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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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'
The text was updated successfully, but these errors were encountered: