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 the bug of tensorlayer.utils.predict. issues of #288 #426

Merged
merged 2 commits into from Mar 18, 2018

Conversation

xionghhcs
Copy link
Contributor

fix the bug of issues #288

I have fix the bug and the test is as follow:

The relations between data_size and batch_size can be classified into three types:

  1. batch_size == data_size;
  2. batch_size < data_size
  3. batch_size > data_size.

And the second can be further classified into two types:

(a)data_size % batch_size ==0.

(b)data_size % batch_size != 0;

So the test data is as follow:

types data_size batch_size pred_size pass?
1 100 100 100 YES
2.a 100 10 100 YES
2.b 100 51 100 YES
3 100 101 100 YES

@luomai luomai requested a review from zsdonghao March 18, 2018 14:19
@zsdonghao zsdonghao merged commit 56335c5 into tensorlayer:master Mar 18, 2018
@zsdonghao zsdonghao mentioned this pull request Mar 19, 2018
luomai pushed a commit that referenced this pull request Nov 21, 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