Skip to content

[JIT] Traceable detach#11038

Closed
jamesr66a wants to merge 3 commits intopytorch:masterfrom
jamesr66a:trace_detach
Closed

[JIT] Traceable detach#11038
jamesr66a wants to merge 3 commits intopytorch:masterfrom
jamesr66a:trace_detach

Conversation

@jamesr66a
Copy link
Collaborator

@jamesr66a jamesr66a commented Aug 29, 2018

This makes it so detach and detach_ are traceable and also adds a pass to erase them before ONNX export

@jamesr66a
Copy link
Collaborator Author

@pytorchbot retest this please

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.

The removal pass is unnecessary, but this otherwise looks good.

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.

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

test/test_jit.py Outdated

This comment was marked as off-topic.

test/test_jit.py Outdated

This comment was marked as off-topic.

@apaszke
Copy link
Contributor

apaszke commented Aug 30, 2018

NB: this also needs to be rebased on top of master, because it uses the legacy tracing API in the test

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.

jamesr66a is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

zdevito pushed a commit to zdevito/ATen that referenced this pull request Sep 1, 2018
Summary:
This makes it so `detach` and `detach_` are traceable and also adds a pass to erase them before ONNX export
Pull Request resolved: pytorch/pytorch#11038

Differential Revision: D9588038

Pulled By: jamesr66a

fbshipit-source-id: 263dd3147e24fcb0c716743f37fdb9f84c0015e7
PenghuiCheng pushed a commit to PenghuiCheng/pytorch that referenced this pull request Sep 11, 2018
Summary:
This makes it so `detach` and `detach_` are traceable and also adds a pass to erase them before ONNX export
Pull Request resolved: pytorch#11038

Differential Revision: D9588038

Pulled By: jamesr66a

fbshipit-source-id: 263dd3147e24fcb0c716743f37fdb9f84c0015e7
@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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants