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

Add error checking for image mean #2031

Merged
merged 1 commit into from
Mar 4, 2015
Merged

Conversation

lukeyeager
Copy link
Contributor

When setting the mean, assert that it is either one pixel or an array with
shape equal to the input data size.

(Previously #1931)

When setting the mean, assert that it is either one pixel or an array with
shape equal to the input data size.
@shelhamer
Copy link
Member

Thanks for the descriptive check -- and the rebase.

shelhamer added a commit that referenced this pull request Mar 4, 2015
@shelhamer shelhamer merged commit c0bc17c into BVLC:master Mar 4, 2015
@lukeyeager lukeyeager deleted the image_mean branch March 4, 2015 17:59
shelhamer added a commit that referenced this pull request Mar 5, 2015
follow-up to #2031: check that the input and mean channels are
compatible in the broadcast channels case.
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

2 participants