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

Set proper output differentiability for unique function #47930

Closed
wants to merge 1 commit into from

Conversation

albanD
Copy link
Collaborator

@albanD albanD commented Nov 13, 2020

Fixes #47851

Since the definitions of these functions in native_functions.yaml has special dispatch, we were already generating the proper NotImplemented behavior for these functions but we were wrongfully setting that gradient of all of the outputs.

Added entries in derivatives.yaml to allow us to specify which outpus are differentiable or not.

@dr-ci
Copy link

dr-ci bot commented Nov 13, 2020

💊 CI failures summary and remediations

As of commit 1e5e25e (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 on the GitHub issue tracker or post in the (internal) Dr. CI Users group.

See how this bot performed.

This comment has been revised 2 times.

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.

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

@codecov
Copy link

codecov bot commented Nov 13, 2020

Codecov Report

Merging #47930 (1e5e25e) into master (03d1978) will increase coverage by 39.19%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           master   #47930       +/-   ##
===========================================
+ Coverage   42.05%   81.25%   +39.19%     
===========================================
  Files         472     1839     +1367     
  Lines       64824   198361   +133537     
===========================================
+ Hits        27264   161180   +133916     
+ Misses      37560    37181      -379     

@facebook-github-bot
Copy link
Contributor

@albanD merged this pull request in 95ea778.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

INTERNAL ASSERT FAILED for S.unique().shape
3 participants