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

fix bugs in fluid_benchmark #11374

Merged
merged 2 commits into from
Jun 12, 2018

Conversation

guochaorong
Copy link
Contributor

  1. we use args.use_reader_op, test fail because feeder not defined

  2. drop last batch to avoid:
    File "/opt/python/cp27-cp27mu/lib/python2.7/site-packages/paddle/fluid/parallel_executor.py", line 213, in run
    feed_tensor_dict)
    paddle.fluid.core.EnforceNotMet: enforce member_->places_.size() == lod_tensors.size() failed, 8 != 5
    The number of samples of current batch is less than the count of devices, currently, it is not

@guochaorong guochaorong requested review from panyx0718 and typhoonzero and removed request for panyx0718 June 11, 2018 14:18
@@ -180,7 +180,7 @@ def train(avg_loss, infer_prog, optimizer, train_reader, test_reader, batch_acc,
print_train_time(start_time, time.time(), num_samples)
print("Pass: %d, Loss: %f" % (pass_id, np.mean(train_losses))),
# evaluation
if not args.no_test and batch_acc:
if not args.no_test and batch_acc and not args.use_reader_op:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI didn't pass style check, please check if you have pre-commit installed properly.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you for reminding.
have done

@guochaorong guochaorong merged commit 7679edf into PaddlePaddle:develop Jun 12, 2018
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

Successfully merging this pull request may close these issues.

None yet

3 participants