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

Make DispatchKeyExtractor forget about TensorOptions #36290

Closed
wants to merge 9 commits into from

Conversation

bhosmer
Copy link

@bhosmer bhosmer commented Apr 9, 2020

Stack from ghstack:

The BackendSelect dispatch key gives us a way to extract backend-
specific dispatch keys from non-Tensor arguments without teaching
the DispatchKeyExtractor about them. Here we finish switching over
to the BackendSelect approach for factory functions and remove
TensorOptions from the set of types DispatchKeyExtractor needs to
consider.

Codegen diff

Differential Revision: D20936595

The BackendSelect dispatch key gives us a way to extract backend-
specific dispatch keys from non-Tensor arguments without teaching
the DispatchKeyExtractor about them. Here we finish switching over
to the BackendSelect approach for factory functions and remove
TensorOptions from the set of types DispatchKeyExtractor needs to
consider.

[ghstack-poisoned]
@bhosmer bhosmer requested a review from smessmer April 9, 2020 01:06
@dr-ci
Copy link

dr-ci bot commented Apr 9, 2020

💊 Build failures summary and remediations

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


None of the build failures appear to be your fault 💚


  • 1/1 broken upstream at merge base e892398 on Apr 10 from 1:07pm to 6:28pm PDT (10 commits; c029aaa - d71aeec)

    Please rebase on the viable/strict branch (expand for instructions)

    Since your merge base is older than viable/strict, run these commands:

    git fetch https://github.com/pytorch/pytorch viable/strict
    git rebase FETCH_HEAD
    

    Check out the recency history of this "viable master" tracking branch.


🚧 1 upstream failure:

These were probably caused by upstream breakages:


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.

See how this bot performed.

This comment has been revised 38 times.

The BackendSelect dispatch key gives us a way to extract backend-
specific dispatch keys from non-Tensor arguments without teaching
the DispatchKeyExtractor about them. Here we finish switching over
to the BackendSelect approach for factory functions and remove
TensorOptions from the set of types DispatchKeyExtractor needs to
consider.

[ghstack-poisoned]
bhosmer pushed a commit that referenced this pull request Apr 9, 2020
The BackendSelect dispatch key gives us a way to extract backend-
specific dispatch keys from non-Tensor arguments without teaching
the DispatchKeyExtractor about them. Here we finish switching over
to the BackendSelect approach for factory functions and remove
TensorOptions from the set of types DispatchKeyExtractor needs to
consider.

ghstack-source-id: 25a1a8169399456805303396ae772da5c9e696c1
Pull Request resolved: #36290
The BackendSelect dispatch key gives us a way to extract backend-
specific dispatch keys from non-Tensor arguments without teaching
the DispatchKeyExtractor about them. Here we finish switching over
to the BackendSelect approach for factory functions and remove
TensorOptions from the set of types DispatchKeyExtractor needs to
consider.

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

[ghstack-poisoned]
The BackendSelect dispatch key gives us a way to extract backend-
specific dispatch keys from non-Tensor arguments without teaching
the DispatchKeyExtractor about them. Here we finish switching over
to the BackendSelect approach for factory functions and remove
TensorOptions from the set of types DispatchKeyExtractor needs to
consider.

[Codegen diff](bhosmer/scratch@before_36290...after_36290)

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

[ghstack-poisoned]
The BackendSelect dispatch key gives us a way to extract backend-
specific dispatch keys from non-Tensor arguments without teaching
the DispatchKeyExtractor about them. Here we finish switching over
to the BackendSelect approach for factory functions and remove
TensorOptions from the set of types DispatchKeyExtractor needs to
consider.

[Codegen diff](bhosmer/scratch@before_36290...after_36290)

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

[ghstack-poisoned]
bhosmer pushed a commit that referenced this pull request Apr 10, 2020
The BackendSelect dispatch key gives us a way to extract backend-
specific dispatch keys from non-Tensor arguments without teaching
the DispatchKeyExtractor about them. Here we finish switching over
to the BackendSelect approach for factory functions and remove
TensorOptions from the set of types DispatchKeyExtractor needs to
consider.

ghstack-source-id: 50d6f4148382b9d92a9bc0e84a7b1d113b32279a
Pull Request resolved: #36290
The BackendSelect dispatch key gives us a way to extract backend-
specific dispatch keys from non-Tensor arguments without teaching
the DispatchKeyExtractor about them. Here we finish switching over
to the BackendSelect approach for factory functions and remove
TensorOptions from the set of types DispatchKeyExtractor needs to
consider.

[Codegen diff](bhosmer/scratch@before_36290...after_36290)

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

[ghstack-poisoned]
bhosmer pushed a commit that referenced this pull request Apr 11, 2020
The BackendSelect dispatch key gives us a way to extract backend-
specific dispatch keys from non-Tensor arguments without teaching
the DispatchKeyExtractor about them. Here we finish switching over
to the BackendSelect approach for factory functions and remove
TensorOptions from the set of types DispatchKeyExtractor needs to
consider.

ghstack-source-id: 226481651491056a32614020aca97f55e9fc68de
Pull Request resolved: #36290
The BackendSelect dispatch key gives us a way to extract backend-
specific dispatch keys from non-Tensor arguments without teaching
the DispatchKeyExtractor about them. Here we finish switching over
to the BackendSelect approach for factory functions and remove
TensorOptions from the set of types DispatchKeyExtractor needs to
consider.

[Codegen diff](bhosmer/scratch@before_36290...after_36290)

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

[ghstack-poisoned]
The BackendSelect dispatch key gives us a way to extract backend-
specific dispatch keys from non-Tensor arguments without teaching
the DispatchKeyExtractor about them. Here we finish switching over
to the BackendSelect approach for factory functions and remove
TensorOptions from the set of types DispatchKeyExtractor needs to
consider.

[Codegen diff](bhosmer/scratch@before_36290...after_36290)

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

[ghstack-poisoned]
bhosmer pushed a commit that referenced this pull request Apr 11, 2020
The BackendSelect dispatch key gives us a way to extract backend-
specific dispatch keys from non-Tensor arguments without teaching
the DispatchKeyExtractor about them. Here we finish switching over
to the BackendSelect approach for factory functions and remove
TensorOptions from the set of types DispatchKeyExtractor needs to
consider.

ghstack-source-id: 15db9483fb9dcf274573dd794bca0307c8f990dd
Pull Request resolved: #36290
Copy link
Contributor

@smessmer smessmer left a comment

Choose a reason for hiding this comment

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

You can also remove the TODO in DispatchKeyExtractor::getDispatchKeyBoxed

@@ -509,7 +512,7 @@ def __getitem__(self, x):
'formals': List[str],
'formals_types': List[str],
'formals_types_with_return': List[str],
'inferred_key_set': str,
# 'inferred_key_set': str,
Copy link
Contributor

Choose a reason for hiding this comment

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

why not remove entirely?

Copy link
Author

Choose a reason for hiding this comment

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

doh

The BackendSelect dispatch key gives us a way to extract backend-
specific dispatch keys from non-Tensor arguments without teaching
the DispatchKeyExtractor about them. Here we finish switching over
to the BackendSelect approach for factory functions and remove
TensorOptions from the set of types DispatchKeyExtractor needs to
consider.

[Codegen diff](bhosmer/scratch@before_36290...after_36290)

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

[ghstack-poisoned]
bhosmer pushed a commit that referenced this pull request Apr 13, 2020
The BackendSelect dispatch key gives us a way to extract backend-
specific dispatch keys from non-Tensor arguments without teaching
the DispatchKeyExtractor about them. Here we finish switching over
to the BackendSelect approach for factory functions and remove
TensorOptions from the set of types DispatchKeyExtractor needs to
consider.

ghstack-source-id: c93781294a64449b222016ab6c280ca6f12d6db7
Pull Request resolved: #36290
@kostmo
Copy link
Member

kostmo commented Apr 14, 2020

Looks like this PR broke pytorch_bazel_test in master. Unfortunately, the failure could have been masked due to the fact that pytorch_bazel_test job was broken in master a few days ago (at the merge base of this PR).

Reverting now.

bhosmer pushed a commit that referenced this pull request Apr 14, 2020
The BackendSelect dispatch key gives us a way to extract backend-
specific dispatch keys from non-Tensor arguments without teaching
the DispatchKeyExtractor about them. Here we finish switching over
to the BackendSelect approach for factory functions and remove
TensorOptions from the set of types DispatchKeyExtractor needs to
consider.

[ghstack-poisoned]
bhosmer pushed a commit that referenced this pull request Apr 14, 2020
#36290)"

The BackendSelect dispatch key gives us a way to extract backend-
specific dispatch keys from non-Tensor arguments without teaching
the DispatchKeyExtractor about them. Here we finish switching over
to the BackendSelect approach for factory functions and remove
TensorOptions from the set of types DispatchKeyExtractor needs to
consider.

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

[ghstack-poisoned]
bhosmer pushed a commit that referenced this pull request Apr 14, 2020
The BackendSelect dispatch key gives us a way to extract backend-
specific dispatch keys from non-Tensor arguments without teaching
the DispatchKeyExtractor about them. Here we finish switching over
to the BackendSelect approach for factory functions and remove
TensorOptions from the set of types DispatchKeyExtractor needs to
consider.

ghstack-source-id: 1b20e3b1ca8e15b6bf595b1b09960ff105cafb08
Pull Request resolved: #36562
@facebook-github-bot
Copy link
Contributor

@bhosmer merged this pull request in 70b826a.

bhosmer pushed a commit that referenced this pull request Apr 14, 2020
#36290)"

The BackendSelect dispatch key gives us a way to extract backend-
specific dispatch keys from non-Tensor arguments without teaching
the DispatchKeyExtractor about them. Here we finish switching over
to the BackendSelect approach for factory functions and remove
TensorOptions from the set of types DispatchKeyExtractor needs to
consider.

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

[ghstack-poisoned]
bhosmer pushed a commit that referenced this pull request Apr 14, 2020
The BackendSelect dispatch key gives us a way to extract backend-
specific dispatch keys from non-Tensor arguments without teaching
the DispatchKeyExtractor about them. Here we finish switching over
to the BackendSelect approach for factory functions and remove
TensorOptions from the set of types DispatchKeyExtractor needs to
consider.

ghstack-source-id: 5ac9197527812bf1e74f3709896982d9984f737e
Pull Request resolved: #36562
bhosmer pushed a commit that referenced this pull request Apr 15, 2020
#36290)"

The BackendSelect dispatch key gives us a way to extract backend-
specific dispatch keys from non-Tensor arguments without teaching
the DispatchKeyExtractor about them. Here we finish switching over
to the BackendSelect approach for factory functions and remove
TensorOptions from the set of types DispatchKeyExtractor needs to
consider.

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

[ghstack-poisoned]
bhosmer pushed a commit that referenced this pull request Apr 15, 2020
The BackendSelect dispatch key gives us a way to extract backend-
specific dispatch keys from non-Tensor arguments without teaching
the DispatchKeyExtractor about them. Here we finish switching over
to the BackendSelect approach for factory functions and remove
TensorOptions from the set of types DispatchKeyExtractor needs to
consider.

ghstack-source-id: 3fd9d8151d2278f909c076d67e085aeb4d24db90
Pull Request resolved: #36562
facebook-github-bot pushed a commit that referenced this pull request Apr 16, 2020
…36562)

Summary:
Pull Request resolved: #36562

The BackendSelect dispatch key gives us a way to extract backend-
specific dispatch keys from non-Tensor arguments without teaching
the DispatchKeyExtractor about them. Here we finish switching over
to the BackendSelect approach for factory functions and remove
TensorOptions from the set of types DispatchKeyExtractor needs to
consider.

Test Plan: Imported from OSS

Differential Revision: D21013652

Pulled By: bhosmer

fbshipit-source-id: e30512d1c3202149e72b7d7ce15084bbfed63ac7
@facebook-github-bot facebook-github-bot deleted the gh/bhosmer/22/head branch April 17, 2020 14:17
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