Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"torch._C.Value has no attribute 'uniqueName'" Error running with PyTorch 1.2 #51

Closed
cted18 opened this issue Aug 7, 2019 · 3 comments · Fixed by #52
Closed

"torch._C.Value has no attribute 'uniqueName'" Error running with PyTorch 1.2 #51

cted18 opened this issue Aug 7, 2019 · 3 comments · Fixed by #52

Comments

@cted18
Copy link

cted18 commented Aug 7, 2019

PyTorch Version: '1.2.0a'
Python: 3.6.8
Exception has occurred: AttributeError 'torch._C.Value' object has no attribute 'uniqueName' File "hiddenlayer/hiddenlayer/pytorch_builder.py", line 45, in <listcomp> return node.scopeName() + "/outputs/" + "/".join([o.uniqueName() for o in node.outputs()]) File "hiddenlayer/hiddenlayer/pytorch_builder.py", line 45, in pytorch_id return node.scopeName() + "/outputs/" + "/".join([o.uniqueName() for o in node.outputs()]) File "hiddenlayer/hiddenlayer/pytorch_builder.py", line 90, in import_graph hl_node = Node(uid=pytorch_id(torch_node), name=None, op=op, File "hiddenlayer/hiddenlayer/graph.py", line 143, in build_graph import_graph(g, model, args) File "visualizer.py", line 20, in <module> graph = hl.build_graph(model, input)

Works well with older version of PyTorch (0.4.1).

@phillies
Copy link

I can confirm that the PR fixes the issue with pytorch 1.2.0, @waleedka please merge and build new pip package

@emjay73
Copy link

emjay73 commented Oct 24, 2019

fyi, I changed UniqueName() to debugName()
ref :microsoft/human-pose-estimation.pytorch#122 (comment)

@g13e
Copy link

g13e commented Nov 15, 2019

any plan to merge this anytime soon?

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 a pull request may close this issue.

4 participants