Skip to content

Conversation

@goldsborough
Copy link
Contributor

@goldsborough goldsborough commented Jul 31, 2018

@zdevito explained that the attributed versions of Operators are no longer necessary. This PR does two things:

  1. Removes all code associated with attributed operators,
  2. Adds a second kind of state to Operator where it is constructed with an Operation directly instead of an OperationCreator. This will be useful to test custom operators which don't require a node (you can just retrieve it directly).

Now rebased on top of #9801

@zdevito

@zou3519 zou3519 added the oncall: jit Add this issue/PR to JIT oncall triage queue label Jul 31, 2018
Copy link
Contributor

@zdevito zdevito left a comment

Choose a reason for hiding this comment

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

Looks good. Two things: additional things that can be deleted from gen_jit_dispatch.py and a bugfix for allowing simple ops to be created when Node* is non-null.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

goldsborough has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@goldsborough goldsborough deleted the get-operator branch August 1, 2018 20:21

// Essentially a variant<Operation, OperationCreator>.
// NB: std::function has a default state (where it == nullptr).
std::shared_ptr<Operation> op_;

This comment was marked as off-topic.

goodlux pushed a commit to goodlux/pytorch that referenced this pull request Aug 15, 2018
Summary:
zdevito explained that the attributed versions of `Operator`s are no longer necessary. This PR does two things:

1. Removes all code associated with attributed operators,
2. Adds a second kind of state to `Operator` where it is constructed with an `Operation` directly instead of an `OperationCreator`. This will be useful to test custom operators which don't require a node (you can just retrieve it directly).

Now rebased on top of pytorch#9801

zdevito
Pull Request resolved: pytorch#10080

Differential Revision: D9113668

Pulled By: goldsborough

fbshipit-source-id: 1276a191c7cf89da1c38488769f2105ce2664750
@ezyang ezyang added the merged label Jun 26, 2019
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.

6 participants