Skip to content

Conversation

smessmer
Copy link
Contributor

@smessmer smessmer commented Oct 17, 2019

Stack from ghstack:

Before, the dispatch key for unboxed operators from native_functions.yaml was generated in codegen and passed to the c10 dispatcher.
Now, we generate it inside of the dispatcher, right next to where the same thing happens for boxed calls.

Differential Revision: D17989951

Before, the dispatch key for unboxed operators from native_functions.yaml was generated in codegen and passed to the c10 dispatcher.
Now, we generate it inside of the dispatcher, right next to where the same thing happens for boxed calls.

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

[ghstack-poisoned]
smessmer added a commit that referenced this pull request Oct 17, 2019
Before, the dispatch key for unboxed operators from native_functions.yaml was generated in codegen and passed to the c10 dispatcher.
Now, we generate it inside of the dispatcher, right next to where the same thing happens for boxed calls.

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

ghstack-source-id: 92136929
Pull Request resolved: #28251
@smessmer smessmer requested review from dzhulgakov and ezyang October 17, 2019 21:25
template<class... Args>
const KernelFunction& lookup(const Args&... args) const {
return lookup_([&] () -> c10::optional<TensorTypeId> {
if (!dispatch_strategy_.is_valid_) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Still not sure why we need to indirect through a dispatch strategy

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm currently working on another simplification diff that will probably address that

Before, the dispatch key for unboxed operators from native_functions.yaml was generated in codegen and passed to the c10 dispatcher.
Now, we generate it inside of the dispatcher, right next to where the same thing happens for boxed calls.

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

[ghstack-poisoned]
smessmer added a commit that referenced this pull request Oct 18, 2019
Pull Request resolved: #28251

Before, the dispatch key for unboxed operators from native_functions.yaml was generated in codegen and passed to the c10 dispatcher.
Now, we generate it inside of the dispatcher, right next to where the same thing happens for boxed calls.
ghstack-source-id: 92211517

Differential Revision: [D17989951](https://our.internmc.facebook.com/intern/diff/D17989951/)
Before, the dispatch key for unboxed operators from native_functions.yaml was generated in codegen and passed to the c10 dispatcher.
Now, we generate it inside of the dispatcher, right next to where the same thing happens for boxed calls.

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

[ghstack-poisoned]
Copy link
Collaborator

@dzhulgakov dzhulgakov left a comment

Choose a reason for hiding this comment

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

nice and clean!

Before, the dispatch key for unboxed operators from native_functions.yaml was generated in codegen and passed to the c10 dispatcher.
Now, we generate it inside of the dispatcher, right next to where the same thing happens for boxed calls.

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

[ghstack-poisoned]
Before, the dispatch key for unboxed operators from native_functions.yaml was generated in codegen and passed to the c10 dispatcher.
Now, we generate it inside of the dispatcher, right next to where the same thing happens for boxed calls.

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

[ghstack-poisoned]
Before, the dispatch key for unboxed operators from native_functions.yaml was generated in codegen and passed to the c10 dispatcher.
Now, we generate it inside of the dispatcher, right next to where the same thing happens for boxed calls.

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

[ghstack-poisoned]
Before, the dispatch key for unboxed operators from native_functions.yaml was generated in codegen and passed to the c10 dispatcher.
Now, we generate it inside of the dispatcher, right next to where the same thing happens for boxed calls.

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

[ghstack-poisoned]
Before, the dispatch key for unboxed operators from native_functions.yaml was generated in codegen and passed to the c10 dispatcher.
Now, we generate it inside of the dispatcher, right next to where the same thing happens for boxed calls.

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

[ghstack-poisoned]
Before, the dispatch key for unboxed operators from native_functions.yaml was generated in codegen and passed to the c10 dispatcher.
Now, we generate it inside of the dispatcher, right next to where the same thing happens for boxed calls.

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

[ghstack-poisoned]
Before, the dispatch key for unboxed operators from native_functions.yaml was generated in codegen and passed to the c10 dispatcher.
Now, we generate it inside of the dispatcher, right next to where the same thing happens for boxed calls.

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

[ghstack-poisoned]
Before, the dispatch key for unboxed operators from native_functions.yaml was generated in codegen and passed to the c10 dispatcher.
Now, we generate it inside of the dispatcher, right next to where the same thing happens for boxed calls.

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

[ghstack-poisoned]
Before, the dispatch key for unboxed operators from native_functions.yaml was generated in codegen and passed to the c10 dispatcher.
Now, we generate it inside of the dispatcher, right next to where the same thing happens for boxed calls.

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

[ghstack-poisoned]
Before, the dispatch key for unboxed operators from native_functions.yaml was generated in codegen and passed to the c10 dispatcher.
Now, we generate it inside of the dispatcher, right next to where the same thing happens for boxed calls.

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

[ghstack-poisoned]
Before, the dispatch key for unboxed operators from native_functions.yaml was generated in codegen and passed to the c10 dispatcher.
Now, we generate it inside of the dispatcher, right next to where the same thing happens for boxed calls.

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

[ghstack-poisoned]
Before, the dispatch key for unboxed operators from native_functions.yaml was generated in codegen and passed to the c10 dispatcher.
Now, we generate it inside of the dispatcher, right next to where the same thing happens for boxed calls.

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

[ghstack-poisoned]
Before, the dispatch key for unboxed operators from native_functions.yaml was generated in codegen and passed to the c10 dispatcher.
Now, we generate it inside of the dispatcher, right next to where the same thing happens for boxed calls.

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

[ghstack-poisoned]
smessmer added a commit that referenced this pull request Oct 29, 2019
Differential Revision: [D18212009](https://our.internmc.facebook.com/intern/diff/D18212009/)

ghstack-source-id: 92856230
Pull Request resolved: #28851
Before, the dispatch key for unboxed operators from native_functions.yaml was generated in codegen and passed to the c10 dispatcher.
Now, we generate it inside of the dispatcher, right next to where the same thing happens for boxed calls.

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

[ghstack-poisoned]
smessmer added a commit that referenced this pull request Oct 31, 2019
smessmer added a commit that referenced this pull request Oct 31, 2019
Pull Request resolved: #28851


ghstack-source-id: 92965835

Differential Revision: [D18212009](https://our.internmc.facebook.com/intern/diff/D18212009/)
@kostmo
Copy link
Member

kostmo commented Oct 31, 2019

CircleCI build failures summary

As of commit 4e5398d:

  • 0/5 flaky
  • 1/5 broken upstream

Here are the reasons each build failed.


This comment was automatically generated by Dr. CI.
Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions on the GitHub issue tracker.

This comment has been revised 2 time(s).

smessmer added a commit that referenced this pull request Nov 1, 2019
smessmer added a commit that referenced this pull request Nov 1, 2019
Pull Request resolved: #28851


ghstack-source-id: 93054489

Differential Revision: [D18212009](https://our.internmc.facebook.com/intern/diff/D18212009/)
Before, the dispatch key for unboxed operators from native_functions.yaml was generated in codegen and passed to the c10 dispatcher.
Now, we generate it inside of the dispatcher, right next to where the same thing happens for boxed calls.

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

[ghstack-poisoned]
Before, the dispatch key for unboxed operators from native_functions.yaml was generated in codegen and passed to the c10 dispatcher.
Now, we generate it inside of the dispatcher, right next to where the same thing happens for boxed calls.

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

[ghstack-poisoned]
zdevito pushed a commit to zdevito/ATen that referenced this pull request Nov 1, 2019
Summary:
Pull Request resolved: pytorch/pytorch#28251

Before, the dispatch key for unboxed operators from native_functions.yaml was generated in codegen and passed to the c10 dispatcher.
Now, we generate it inside of the dispatcher, right next to where the same thing happens for boxed calls.
ghstack-source-id: 93085152

Test Plan: unit tests

Differential Revision: D17989951

fbshipit-source-id: b343d9650debc62bfcff84cf4d6bdaf9dacc9d16
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 88a34ef.

@ezyang
Copy link
Contributor

ezyang commented Nov 1, 2019

This diff appears to reliably cause Windows to run out of memory when linking:

19:18:16    Creating library LIB\torch.lib and object LIB\torch.exp
19:18:16 LINK : fatal error LNK1102: out of memory
19:18:16 ninja: build stopped: subcommand failed.
19:18:16 -- Building version 1.4.0a0+88a34ef

I verified the last three CI results on the PR all failed this way. I am reverting it to give us more headroom on master.

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.

6 participants