Skip to content

For CriterionTests, have check_gradgrad actually only affect gradgrad checks.#44060

Closed
gchanan wants to merge 2 commits intogh/gchanan/318/basefrom
gh/gchanan/318/head
Closed

For CriterionTests, have check_gradgrad actually only affect gradgrad checks.#44060
gchanan wants to merge 2 commits intogh/gchanan/318/basefrom
gh/gchanan/318/head

Conversation

@gchanan
Copy link
Contributor

@gchanan gchanan commented Sep 2, 2020

Stack from ghstack:

Right now it skips grad checks as well.

Differential Revision: D23484018

… checks.

Right now it skips grad checks as well.

[ghstack-poisoned]
@dr-ci
Copy link

dr-ci bot commented Sep 2, 2020

💊 CI failures summary and remediations

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


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

Extra GitHub checks: 1 failed


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

…ct gradgrad checks."

Right now it skips grad checks as well.

Differential Revision: [D23484018](https://our.internmc.facebook.com/intern/diff/D23484018)

[ghstack-poisoned]
gchanan added a commit that referenced this pull request Sep 2, 2020
… checks.

Right now it skips grad checks as well.

ghstack-source-id: 582b875
Pull Request resolved: #44060
@codecov
Copy link

codecov bot commented Sep 3, 2020

Codecov Report

❗ No coverage uploaded for pull request base (gh/gchanan/318/base@e09100e). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@                  Coverage Diff                   @@
##             gh/gchanan/318/base   #44060   +/-   ##
======================================================
  Coverage                       ?   69.42%           
======================================================
  Files                          ?      381           
  Lines                          ?    47163           
  Branches                       ?        0           
======================================================
  Hits                           ?    32743           
  Misses                         ?    14420           
  Partials                       ?        0           

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 e09100e...175e0db. Read the comment docs.

@gchanan gchanan requested a review from zou3519 September 3, 2020 15:31
Comment on lines +5090 to +5093

if not self.check_gradgrad:
return

Copy link
Contributor

Choose a reason for hiding this comment

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

nit: it might be better as

if self.check_gradgrad:
    gradgradcheck(apply_fn, inputs)

that way if someone adds something to the end of this function in the future, they won't have to modify the (if not self.check_gradgrad line) (and they also won't accidentally not read it).

But this is pretty minor and I expect future code changes to get reviewed

@facebook-github-bot
Copy link
Contributor

@gchanan merged this pull request in 49215d7.

@facebook-github-bot facebook-github-bot deleted the gh/gchanan/318/head branch September 7, 2020 14:16
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.

4 participants