Skip to content

Conversation

swolchok
Copy link
Contributor

@swolchok swolchok commented Jan 25, 2021

Stack from ghstack:

This diff makes it OK to query has_storage() on all TensorImpls. I added debug assertions that storage_ is indeed never set on them, which is required for this to be correct.

Differential Revision: D26008498

This diff makes it OK to query has_storage() on all TensorImpls. I added debug assertions that storage_ is indeed never set on them, which is required for this to be correct.

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

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Jan 25, 2021

💊 CI failures summary and remediations

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


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

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.

This diff makes it OK to query has_storage() on all TensorImpls. I added debug assertions that storage_ is indeed never set on them, which is required for this to be correct.

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

[ghstack-poisoned]
Copy link
Contributor

@ezyang ezyang left a comment

Choose a reason for hiding this comment

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

I, for one, vote for just straight deletion, but this is OK too.

@bhosmer
Copy link

bhosmer commented Jan 27, 2021

I, for one, vote for just straight deletion, but this is OK too.

@ezyang is straight deletion an option? That would certainly leave things in a much simpler state, but do existing callsites all vanish cleanly?

@swolchok
Copy link
Contributor Author

I, for one, vote for just straight deletion, but this is OK too.

@ezyang is straight deletion an option? That would certainly leave things in a much simpler state, but do existing callsites all vanish cleanly?

I think callers can just call storage() and see if they get a truthy Storage object.

This diff makes it OK to query has_storage() on all TensorImpls. I added debug assertions that storage_ is indeed never set on them, which is required for this to be correct.

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

[ghstack-poisoned]
This diff makes it OK to query has_storage() on all TensorImpls. I added debug assertions that storage_ is indeed never set on them, which is required for this to be correct.

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

[ghstack-poisoned]
@codecov
Copy link

codecov bot commented Jan 30, 2021

Codecov Report

Merging #51049 (306e9c3) into gh/swolchok/86/base (f74c530) will increase coverage by 0.00%.
The diff coverage is n/a.

@@                 Coverage Diff                  @@
##           gh/swolchok/86/base   #51049   +/-   ##
====================================================
  Coverage                80.86%   80.86%           
====================================================
  Files                     1938     1938           
  Lines                   211184   211176    -8     
====================================================
+ Hits                    170764   170766    +2     
+ Misses                   40420    40410   -10     

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 6c24296.

@facebook-github-bot facebook-github-bot deleted the gh/swolchok/86/head branch February 5, 2021 15:22
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.

4 participants