fix understand_sentiment_lstm.py #16
Closed
chengduoZH wants to merge 4 commits intodzhwinter:masterfrom
Closed
Conversation
7b55357 to
46a56a9
Compare
…mller than batch_size)
…ch is smaller than batch_size )
46a56a9 to
b3584a7
Compare
qingqing01
reviewed
Dec 12, 2017
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 |
Collaborator
There was a problem hiding this comment.
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.
Collaborator
Author
There was a problem hiding this comment.
I have notified the relevant person. PaddlePaddle/Paddle#6533
…fix/lstm_data_shape
7411225 to
7b55357
Compare
11604aa to
ba95603
Compare
Collaborator
Author
|
当前运行 |
ba95603 to
5d79960
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
labelto[len(data), 1].