Skip to content

Conversation

@driazati
Copy link
Contributor

@driazati driazati commented Apr 17, 2019

Stack from ghstack:

Differential Revision: D14987159

Now that we have a way to specify basic aliasing behavior for custom ops, we can register math ops as custom ops (and hopefully more things in register_prim_ops). Due to this we don't need to manually whitelist aten and prim for alias anaylsis, so the restriction when binding custom ops can be deleted.

TODO: right now aten ops are assumed to be pure and custom ops are assumed to be side effectful. we should merge these so everything is assumed to be side effectful unless stated otherwise

@facebook-github-bot facebook-github-bot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Apr 17, 2019
davidriazati added 2 commits April 17, 2019 15:06
[jit] Refactor math ops to use custom op bindings

gh-metadata: pytorch pytorch 19373 gh/driazati/13/head
[jit] Refactor math ops to use custom op bindings

gh-metadata: pytorch pytorch 19373 gh/driazati/13/head
@driazati driazati requested a review from eellison April 17, 2019 22:17

auto schema = torch::jit::detail::inferAndCheckSchema<Traits>(schemaOrName);

// [custom operator aliasing] Currently, we have no way for the user to
Copy link
Contributor

Choose a reason for hiding this comment

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

Why did you delete this ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

#18589 makes it unnecessary

Copy link
Member

Choose a reason for hiding this comment

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

I think we should do this clean up in a separate PR where you track down all references to this note and fix those up as well. Don't leave the pointers dangling!

[jit] Refactor math ops to use custom op bindings

gh-metadata: pytorch pytorch 19373 gh/driazati/13/head
@driazati driazati changed the title [jit] Refactor math ops to use custom op bindings [wip][jit] Refactor math ops to use custom op bindings Apr 17, 2019
@driazati driazati closed this Oct 14, 2019
@facebook-github-bot facebook-github-bot deleted the gh/driazati/13/head branch November 14, 2019 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

oncall: jit Add this issue/PR to JIT oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants