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/102 reduce op docstring #521

Merged
merged 7 commits into from
Apr 3, 2020

Conversation

Markus-Goetz
Copy link
Member

@Markus-Goetz Markus-Goetz commented Apr 2, 2020

Description

Include a summary of the change/s.
Please also include relevant motivation and context. List any dependencies that are required for this change.

Issue/s resolved: #102, #448

Type of change

  • Added documentation for the generic reduce_op in ht.core

Remove irrelevant options:

  • Documentation update

Due Diligence

  • Documentation updated (if needed)
  • Updated changelog.md under the title "Pending Additions"

Does this change modify the behaviour of other functions? If so, which?

no

@codecov
Copy link

codecov bot commented Apr 2, 2020

Codecov Report

Merging #521 into master will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #521      +/-   ##
==========================================
- Coverage   96.60%   96.60%   -0.01%     
==========================================
  Files          68       68              
  Lines       14092    14091       -1     
==========================================
- Hits        13613    13612       -1     
  Misses        479      479              
Impacted Files Coverage Δ
heat/core/operations.py 94.07% <100.00%> (-0.04%) ⬇️

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 2cec7a2...e1afc28. Read the comment docs.

if neutral is None:
neutral = float("nan")
neutral_shape = x.lshape[:split] + (1,) + x.lshape[split + 1 :]
partial = torch.full(neutral_shape, fill_value=neutral, dtype=x._DNDarray__array.dtype)
else:
partial = x._DNDarray__array

#
Copy link
Member

Choose a reason for hiding this comment

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

dead code? or spacing?

Copy link
Member Author

Choose a reason for hiding this comment

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

resolved, comment I wanted to introduce was missing

CHANGELOG.md Outdated
@@ -1,5 +1,6 @@
# Pending Additions

- [#102](https://github.com/helmholtz-analytics/heat/pull/429) Add documentation for the generic reduce_op in Heat's core
Copy link
Member

Choose a reason for hiding this comment

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

normally we have the numbers representative of the PR instead of the issue number. also the link is pointing to the wrong. for this PR it would be [#521](https://github.com/helmholtz-analytics/heat/pull/521)

Copy link
Member Author

Choose a reason for hiding this comment

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

Oops, my bad thanks

@coquelin77 coquelin77 merged commit 23d4be7 into master Apr 3, 2020
@coquelin77 coquelin77 deleted the features/102-reduce_op_docstring branch April 3, 2020 13:07
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.

operations.__reduce_op: write documentation
2 participants