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

Features/37 minimum #324

Merged
merged 34 commits into from Jul 5, 2019
Merged

Features/37 minimum #324

merged 34 commits into from Jul 5, 2019

Conversation

ClaudiaComito
Copy link
Contributor

@ClaudiaComito ClaudiaComito commented Jul 4, 2019

Now addressing the case where x1.split != x2.split.

Added test case for specified output buffer.
… and MPI.MIN.

* Raising NotImplementedError for x1.split != x2.split and x1.device != x2.device.
@codecov-io
Copy link

codecov-io commented Jul 4, 2019

Codecov Report

Merging #324 into master will increase coverage by 0.02%.
The diff coverage is 98.36%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #324      +/-   ##
==========================================
+ Coverage   96.85%   96.87%   +0.02%     
==========================================
  Files          49       49              
  Lines        7754     7875     +121     
==========================================
+ Hits         7510     7629     +119     
- Misses        244      246       +2
Impacted Files Coverage Δ
heat/core/operations.py 93.83% <100%> (ø) ⬆️
heat/core/tests/test_statistics.py 100% <100%> (ø) ⬆️
heat/core/statistics.py 96.61% <96.15%> (-0.1%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update df48f7b...fee286a. Read the comment docs.

Copy link
Member

@coquelin77 coquelin77 left a comment

Choose a reason for hiding this comment

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

looks good to me

result._DNDarray__dtype = lresult._DNDarray__dtype
result._DNDarray__split = split

if out is not None:
Copy link
Member

Choose a reason for hiding this comment

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

is it possible to combine this if out and the other one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure how, as one of them only writes out in the distributed case, the other one in the non-distributed case. If you can think of something, let me know.

@@ -569,6 +704,15 @@ def mpi_argmin(a, b, _):

MPI_ARGMIN = MPI.Op.Create(mpi_argmin, commute=True)

# # TODO: implement mpi_minimum
Copy link
Member

Choose a reason for hiding this comment

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

Does this need to be here? this could be put in an issue

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry about this, it's a leftover from the attempted implementation through __reduce_op(), I removed it already.

@coquelin77 coquelin77 merged commit 5e324b2 into master Jul 5, 2019
@coquelin77 coquelin77 deleted the features/37-minimum branch July 5, 2019 12:16
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