-
Notifications
You must be signed in to change notification settings - Fork 80
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
Supporting "where" for unary operations #1061
Merged
Merged
Changes from 1 commit
Commits
Show all changes
68 commits
Select commit
Hold shift + click to select a range
f0eef07
adding support for adding where to unary reduction operations on the …
ipdemes a93748d
adding support for adding where to unary reduction operations on the …
ipdemes 79c7aca
formatting
ipdemes a64e829
fixing error when calculation divisor
ipdemes 6f7b059
fixing error with mean(where)
ipdemes d12fe55
updating test
ipdemes ec41b52
adding logic for where in unary_red on C++
ipdemes 9128530
towards improving data usage by mean
ipdemes 76dc871
debugging
ipdemes cbe93d9
removing debug output
ipdemes 419a5af
adding support for broadcasting where + initial implementation of nan…
ipdemes 0d7d66c
adding test for nanmean
ipdemes baf61ed
some clean-up + formatting
ipdemes 30b1e18
fixing issues after rebase
ipdemes 2277234
code clean-up
ipdemes 73e0609
code clean-up
ipdemes dfafdcc
adding test_where for unary operations
ipdemes 3071edd
adding nanmean to docs
ipdemes 67aab76
nanmean is not oficiall method of ndarray
ipdemes 09a4477
fixing test
ipdemes 851dd42
Update src/cunumeric/unary/scalar_unary_red_template.inl
ipdemes 83308a6
Update src/cunumeric/unary/scalar_unary_red_template.inl
ipdemes df70b28
Update src/cunumeric/unary/scalar_unary_red_template.inl
ipdemes 7070d9f
Update src/cunumeric/unary/scalar_unary_red_template.inl
ipdemes c00661a
Update cunumeric/array.py
ipdemes ab3bb10
Update src/cunumeric/unary/scalar_unary_red_template.inl
ipdemes df5248e
Update src/cunumeric/unary/unary_red.cu
ipdemes 8b3d0b7
Update cunumeric/array.py
ipdemes 2a2ead5
Update cunumeric/array.py
ipdemes 329bf5a
Update cunumeric/array.py
ipdemes dcce884
Update cunumeric/eager.py
ipdemes a50f165
Update cunumeric/module.py
ipdemes c52e0c5
Update cunumeric/array.py
ipdemes f7235b1
Update cunumeric/module.py
ipdemes 568dfc5
updating documentation + fixing mypy issue
ipdemes 67abe0c
cleaning up some of the C++ code
ipdemes bb8a462
Update cunumeric/array.py
ipdemes 186af6f
fixing the logic for nanmean after previous commit
ipdemes 2729b55
claning up scalar_unary_red_template.inl
ipdemes e675374
claning up unary_red_* files
ipdemes c17f3d2
removing convert_to_predicate_ndarray
ipdemes e7d9096
small clean-up
ipdemes b6a90c9
Update cunumeric/array.py
ipdemes 7ec317c
removing where from perform_unary_op
ipdemes 4709638
fixing logic for nanmin/nanmax for where
ipdemes 95bfbeb
addressing the rest of the comments from Manolis
ipdemes 90f27bc
some C++ code clean-up
ipdemes fa19be7
more C++ code clean-up
ipdemes a51135d
Update src/cunumeric/unary/unary_red.cu
ipdemes e703cc9
Update src/cunumeric/unary/unary_red.cc
ipdemes 7ea110f
Update src/cunumeric/unary/unary_red_omp.cc
ipdemes f080a95
Update src/cunumeric/unary/scalar_unary_red_template.inl
ipdemes c039cb2
Update src/cunumeric/unary/scalar_unary_red_template.inl
ipdemes 6896b4e
Update src/cunumeric/unary/unary_red_template.inl
ipdemes 4014239
Update src/cunumeric/unary/scalar_unary_red_template.inl
ipdemes fe84bb1
Update src/cunumeric/unary/unary_red_template.inl
ipdemes 70fa320
Update src/cunumeric/unary/unary_red.cu
ipdemes 9d5b364
Update cunumeric/array.py
ipdemes 2bd62eb
Update cunumeric/array.py
ipdemes f504f05
fixing bug in cuda code
ipdemes b15f656
adding dtype back to sum
ipdemes 7a77535
removing ignore_nan
ipdemes b39364b
Merge remote-tracking branch 'origin/branch-24.01' into unary_red_where
ipdemes bdb49e9
fixing var for the case when where is not None
ipdemes 4ef0749
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 18a6fe8
fixing eager logic for var
ipdemes 7c1fdaa
Merge remote-tracking branch 'origin/branch-24.01' into unary_red_where
ipdemes 869b176
removing dtype from _normalize_summation
ipdemes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
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.
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.
I think you can just get rid of the
dtype
parameter at this point, and just usesum_array.dtype
everywhere in this function.