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.
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
Host Implementation of Histogram APIs #1974
Host Implementation of Histogram APIs #1974
Changes from 50 commits
7bcd21e
955f0e2
ebcada6
93dd493
4d95044
a7fe8a1
6be0b7b
9e3f16c
0592c15
6ac87a0
af5defb
65c30af
eec36d5
1faece5
a39accd
2cd184d
b3dd2a0
bff45d9
2c8cc04
790121b
0392f23
4556399
2fdea34
a0c016a
e87ba02
9f74810
e0ed14c
db2a474
240447e
741f8e3
fd310b6
6820340
4798d2c
ce8b55f
5d1f6e8
6630018
83a9f81
a3f1304
14cca58
766f42c
6425d37
a590cac
dd35fc9
455cf9c
8b094fe
7e1463e
d9d4f08
bebba5e
d494601
0a2847f
ee65630
f23132e
6606a80
71ca3d8
c59a451
87e9780
d8f09aa
2c114ee
1b7f146
a2fb53b
397913f
4db8104
66d15bc
1146bb6
8b35ae6
aa61385
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
get_bin
return negative value?__brick_histogram
?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.
Yes,
-1
is returned when the input element does not fall within any histogram bin. The correct behavior is to do nothing and skip this input element.Specification
"Input values that do not map to a defined bin are skipped silently."
I recently looked into expanding the bin helper interface to include a separate function to check bounds, and another to get the bin which assumes it is in bounds. I thought this might provide benefit by reducing the number of branches by 1, but I saw no performance benefit from this change for CPU or GPU. It is still something we could pursue in the future.