Set proper scope on nodes added by JIT#12400
Conversation
|
Also, for reference, this issue is being experienced at lanpa/tensorboardX#229 |
|
@orionr I opened a branch at Among the models I have tested, onnx::Constant, onnx::Gemm, onnx::Add need to be fixed. minimal testcase: |
| return name_; | ||
| } | ||
| std::string namesFromRoot(const std::string& separator="/") { | ||
| // TODO: I think the answer is we shouldn't have used Symbol here |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
|
I had a good conversation with @zdevito and we actually want to move the scope into metadata via intrusive pointer rather than keeping it separate like this. I haven't had cycles to move this forward, though, so it will likely take a while. Anybody else interested in taking it on? |
|
Just send a PR to orionr:export-D10224380. It should fix the issue I mentioned. |
414dcd1 to
a85b098
Compare
facebook-github-bot
left a comment
There was a problem hiding this comment.
orionr has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
a85b098 to
d26d147
Compare
|
Failures are intermittent and not caused by this PR. Landing. |
d26d147 to
072b179
Compare
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
072b179 to
e45604e
Compare
Confirm that converting to a ScopePtr via intrusive ptr takes care of the concern here.
e45604e to
8b4d90e
Compare
facebook-github-bot
left a comment
There was a problem hiding this comment.
orionr has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Summary: In order to support tensorboardX and other visualization tools, we need to make sure a non-empty scope is set on all nodes added by the JIT. This attempts to do this, but is still a WIP. This is a new version of pytorch#10749 Pull Request resolved: pytorch#12400 Differential Revision: D10224380 fbshipit-source-id: ae99180f98b71510e2a6261c5afe66fb79b1c857
8b4d90e to
f0e19c4
Compare
zdevito
left a comment
There was a problem hiding this comment.
Coo looks good, but I have one question about setting the scopes in symbolic variable.
| ScopePtr s; | ||
| for(auto n : inputs) { | ||
| size_t d = n.value()->node()->scope()->getDepth(); | ||
| if(d > max_depth) { |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
Summary: In order to support tensorboardX and other visualization tools, we need to make sure a non-empty scope is set on all nodes added by the JIT. This attempts to do this, but is still a WIP. This is a new version of pytorch#10749 Pull Request resolved: pytorch#12400 Reviewed By: ezyang Differential Revision: D10224380 Pulled By: orionr fbshipit-source-id: d1bccd0eee9ef7c4354112c6a39a5987bfac2994
Summary:
In order to support tensorboardX and other visualization tools, we need to make sure a non-empty scope is set on all nodes added by the JIT. This attempts to do this, but is still a WIP.
This is a new version of #10749
Differential Revision: D10224380