Skip to content

Conversation

@gchanan
Copy link
Contributor

@gchanan gchanan commented Sep 10, 2020

Stack from ghstack:

L1Loss had a completely different (and incorrect, see #43228) path when target.requires_grad was True.

This PR does the following:

  1. adds derivative support for target via the normal derivatives.yaml route
  2. kill the different (and incorrect) path for when target.requires_grad was True
  3. modify the L1Loss CriterionTests to verify that the target derivative is checked.

Differential Revision: D23626008

L1Loss had a completely different (and incorrect, see #43228) path when target.requires_grad was True.

This PR does the following:

1) adds derivative support for target via the normal derivatives.yaml route
2) kill the different (and incorrect) path for when target.requires_grad was True
3) modify the L1Loss CriterionTests to verify that the target derivative is checked.

[ghstack-poisoned]
@gchanan gchanan requested a review from apaszke as a code owner September 10, 2020 15:20
gchanan added a commit that referenced this pull request Sep 10, 2020
L1Loss had a completely different (and incorrect, see #43228) path when target.requires_grad was True.

This PR does the following:

1) adds derivative support for target via the normal derivatives.yaml route
2) kill the different (and incorrect) path for when target.requires_grad was True
3) modify the L1Loss CriterionTests to verify that the target derivative is checked.

ghstack-source-id: c8664d9
Pull Request resolved: #44471
@dr-ci
Copy link

dr-ci bot commented Sep 10, 2020

💊 CI failures summary and remediations

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


  • 1/1 failures possibly* introduced in this PR
    • 1/1 non-CircleCI failure(s)

1 failure confirmed as flaky and can be ignored:

  • pytorch_linux_xenial_py3_6_gcc5_4_ge_config_simple_test

ci.pytorch.org: 1 failed


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 3 times.

@gchanan gchanan requested a review from albanD September 10, 2020 17:01
Copy link
Collaborator

@albanD albanD left a comment

Choose a reason for hiding this comment

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

LGTM

@facebook-github-bot
Copy link
Contributor

@gchanan merged this pull request in 3de2c0b.

@facebook-github-bot facebook-github-bot deleted the gh/gchanan/323/head branch September 15, 2020 14:16
xuzhao9 pushed a commit that referenced this pull request Sep 18, 2020
Summary:
Pull Request resolved: #44471

L1Loss had a completely different (and incorrect, see #43228) path when target.requires_grad was True.

This PR does the following:

1) adds derivative support for target via the normal derivatives.yaml route
2) kill the different (and incorrect) path for when target.requires_grad was True
3) modify the L1Loss CriterionTests to verify that the target derivative is checked.

Test Plan: Imported from OSS

Reviewed By: albanD

Differential Revision: D23626008

Pulled By: gchanan

fbshipit-source-id: 2828be16b56b8dabe114962223d71b0e9a85f0f5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants