Skip to content

Conversation

kshitij12345
Copy link
Collaborator

Reference: #50345

Also adds overrides entry for module and the newly added functions.

@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Mar 4, 2021

💊 CI failures summary and remediations

As of commit 6031492 (more details on the Dr. CI page):


💚 💚 Looks good so far! There are no failures yet. 💚 💚


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions to the (internal) Dr. CI Users group.

@facebook-github-bot facebook-github-bot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Mar 4, 2021
@kshitij12345 kshitij12345 added the module: special Functions with no exact solutions, analogous to those in scipy.special label Mar 5, 2021
@codecov
Copy link

codecov bot commented Mar 5, 2021

Codecov Report

Merging #53260 (6031492) into master (382a47b) will decrease coverage by 0.00%.
The diff coverage is 70.00%.

@@            Coverage Diff             @@
##           master   #53260      +/-   ##
==========================================
- Coverage   77.48%   77.47%   -0.01%     
==========================================
  Files        1889     1889              
  Lines      184870   184880      +10     
==========================================
+ Hits       143240   143244       +4     
- Misses      41630    41636       +6     

@kshitij12345 kshitij12345 marked this pull request as ready for review March 6, 2021 05:42
@kshitij12345 kshitij12345 requested a review from glaringlee as a code owner March 6, 2021 05:42
@kshitij12345 kshitij12345 requested review from mruberry and removed request for glaringlee March 6, 2021 05:42
r"""
erf(input, *, out=None) -> Tensor

Computes the error function of each element. The error function is defined as follows:
Copy link
Collaborator

Choose a reason for hiding this comment

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

"of each element of :attr:`input`" would be more precise.

Alternatively this could say "Computes the error function of :attr:`input`." to be more direct.

""")
""".format(**common_args))

erf = _add_docstr(_special.special_erf,
Copy link
Collaborator

Choose a reason for hiding this comment

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

This need to be added to special.rst, too

Copy link
Collaborator

@mruberry mruberry left a comment

Choose a reason for hiding this comment

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

Hey @kshitij12345! Overall looks good. Would you update the .rst? I want to double-check the doc artifacts but they won't render until it's updated.

@kshitij12345
Copy link
Collaborator Author

Link to documentation artifacts : https://11368241-65600975-gh.circle-artifacts.com/0/docs/special.html

@kshitij12345
Copy link
Collaborator Author

@mruberry Gentle Ping :) . Will rebase it with any changes if necessary.

erfinv(input, *, out=None) -> Tensor

Computes the inverse error function of :attr:`input`.
The inverse error function is defined in the range :math:`(-1, 1)` as:
Copy link
Collaborator

Choose a reason for hiding this comment

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

In a docs cleanup PR this may want to elaborate on how the inverse function is computed, and why its range is restricted (and what happens when inputs beyond that range are given).

Copy link
Collaborator

@mruberry mruberry left a comment

Choose a reason for hiding this comment

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

Docs looks really good (and much better than the corresponding SciPy docs).

@mruberry
Copy link
Collaborator

PR looks good, just needs a rebase and for tests to pass. A future PR may want to extend the inverse error function documentation.

@kshitij12345
Copy link
Collaborator Author

Gentle Ping :)

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@mruberry has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@mruberry
Copy link
Collaborator

Unfortunately this picked up a merge conflict, @kshitij12345. Would you please rebase it?

@kshitij12345
Copy link
Collaborator Author

Done :)

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@mruberry has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@mruberry has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@mruberry merged this pull request in bfd0098.

@kshitij12345 kshitij12345 mentioned this pull request Mar 26, 2021
17 tasks
@kshitij12345 kshitij12345 deleted the develop/special/migrate/erf-c-inv branch March 26, 2021 05:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla signed Merged module: special Functions with no exact solutions, analogous to those in scipy.special oncall: jit Add this issue/PR to JIT oncall triage queue open source
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants