question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to execute add_graph()

See original GitHub issue

While trying to use the feature of aff_graph(), I get the error

`AssertionError Traceback (most recent call last) <ipython-input-3-3dd99d84a2c6> in <module>() 3 model = Meso4() 4 w = SummaryWriter(comment=‘Meso4’) ----> 5 w.add_graph(model, (dummy_input, ),)

~/anaconda3/lib/python3.5/site-packages/tensorboardX/writer.py in add_graph(self, model, input_to_model, verbose, **kwargs) 564 print(‘add_graph() only supports PyTorch v0.2.’) 565 return –> 566 self.file_writer.add_graph(graph(model, input_to_model, verbose)) 567 else: 568 # Caffe2 models do not have the ‘forward’ method

~/anaconda3/lib/python3.5/site-packages/tensorboardX/pytorch_graph.py in graph(model, args, verbose, omit_useless_nodes) 216 return graph 217 –> 218 assert LooseVersion(torch.version) >= LooseVersion(“1.0.0”) 219 220 with torch.onnx.set_training(model, False):

AssertionError: `

I am using Pytorch version 0.4.1 post 2 while the torchvision version is 1.6 (I upgraded it using pip install torchvisionX --upgrade). Can someone please help me out here

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
chinmay5commented, Jan 7, 2019

Hi. I was able to solve the issue. It was more on my end and I needed to tweak some parameters. I think simply using version 1.4 of tensorboardX was sufficient to solve the issue. Thank you so much

0reactions
fengz63commented, May 8, 2019

Hi. I was able to solve the issue. It was more on my end and I needed to tweak some parameters. I think simply using version 1.4 of tensorboardX was sufficient to solve the issue. Thank you so much

Thank you for solving my problem!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Not able to add AddMicrosoftGraph in startup configure ...
AddMicrosoftGraph() . For .NET 6 when you create a new ASP.NEt Core Web App project select Microsoft identity platform authentication type.
Read more >
cannot add graph in weathermap was working fine - Cacti
It was working fine.. and current maps are update and working fine.. it's just when I try to add that's where it run...
Read more >
Unable to add Azure Active Directory Graph permissions to an ...
In Azure Portal -> Azure Active Directory, users cannot add Azure Active Directory Graph permissions to a newly created application.
Read more >
JSL: How to add graph to an existing window
Solved: Hi, I am using JSL to plot with graph builder. Every graph usally created in a seperate window which opens too many...
Read more >
QCustomPlot Class Reference
If this function fails, most likely the given format isn't supported by the system, see Qt docs about QImageWriter::supportedImageFormats(). The resolution will ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found