-
Notifications
You must be signed in to change notification settings - Fork 14
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
fix understand_sentiment_lstm.py #16
Conversation
7b55357
to
46a56a9
Compare
…mller than batch_size)
…ch is smaller than batch_size )
46a56a9
to
b3584a7
Compare
paddle/understand_sentiment_lstm.py
Outdated
for data in train_reader(): | ||
chopped_data = chop_data( | ||
data, chop_len=args.seq_len, batch_size=args.batch_size) | ||
if len(data) < args.batch_size : continue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File "/paddle/Paddle_release/Paddle/python/paddle/v2/fluid/executor.py", line 144, in run
self.executor.run(program.desc, scope, 0, True)
EnforceNotMet: enforce capacity == in_size failed, 81920 != 20480
Maybe this is a bug of operator. I do not think it needs to skip here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have notified the relevant person. PaddlePaddle/Paddle#6533
…fix/lstm_data_shape
7411225
to
7b55357
Compare
11604aa
to
ba95603
Compare
当前运行 |
ba95603
to
5d79960
Compare
label
to[len(data), 1]
.