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.

symbolic for max_pool2d_with_indices returned None for the output 1 (indicating conversion for that particular output is not supported), but the network uses this output later

See original GitHub issue

Hi,

I am getting this error while adding a graph. Following is the stack trace

`--------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-43-d96358ad8344> in <module>() 21 use_last_checkpoint =train_params[‘use_last_checkpoint’]) 22 —> 23 solver.train(train_loader, val_loader)

~/shayan/quickNat_pytorch/quickNat_pytorch/solver.py in train(self, train_loader, val_loader) 140 self.logWriter.update_cm_per_iter(output, y, phase) 141 –> 142 self.logWriter.graph(model, X, phase) 143 del X, y, w, output, loss 144 torch.cuda.empty_cache()

~/shayan/quickNat_pytorch/quickNat_pytorch/log_utils.py in graph(self, model, X, phase) 79 80 def graph(self, model, X, phase): —> 81 self.writer[phase].add_graph(model, X) 82 83 def update_cm_per_iter(self, predictions, correct_labels, phase):

~/anaconda3/lib/python3.6/site-packages/tensorboardX/writer.py in add_graph(self, model, input_to_model, verbose, **kwargs) 518 print(‘add_graph() only supports PyTorch v0.2.’) 519 return –> 520 self.file_writer.add_graph(graph(model, input_to_model, verbose)) 521 except AttributeError: 522 # Caffe2 models do not have the ‘forward’ method

~/anaconda3/lib/python3.6/site-packages/tensorboardX/pytorch_graph.py in graph(model, args, verbose) 94 return GraphDef(versions=VersionDef(producer=22)) 95 if LooseVersion(torch.version) >= LooseVersion(“0.4.1”): —> 96 torch.onnx._optimize_trace(trace, torch._C._onnx.OperatorExportTypes.ONNX_ATEN_FALLBACK) 97 elif LooseVersion(torch.version) >= LooseVersion(“0.4”): 98 torch.onnx._optimize_trace(trace, False)

~/anaconda3/lib/python3.6/site-packages/torch/onnx/init.py in _optimize_trace(trace, operator_export_type) 39 def _optimize_trace(trace, operator_export_type): 40 from torch.onnx import utils —> 41 trace.set_graph(utils._optimize_graph(trace.graph(), operator_export_type)) 42 43

~/anaconda3/lib/python3.6/site-packages/torch/onnx/utils.py in _optimize_graph(graph, operator_export_type) 105 torch._C._jit_pass_lint(graph) 106 if operator_export_type != OperatorExportTypes.RAW: –> 107 graph = torch._C._jit_pass_onnx(graph, operator_export_type) 108 torch._C._jit_pass_lint(graph) 109 torch._C._jit_pass_onnx_peephole(graph)`

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
shayansiddiquicommented, Dec 10, 2018

Thanks for the suggestion. WIll try and get back to you.

0reactions
lanpacommented, Jul 4, 2019

@Kzernobog @YiruS You can force the writer to flush with writer.close() or writer.flush() in tensorboardX v 1.8

Read more comments on GitHub >

github_iconTop Results From Across the Web

CS 5480/6480: Computer Networks – Spring 2012 ...
Question 1 (Packet Switching versus Circuit Switching) 5 points: Suppose 40 users share a 1Mbps link. Also suppose that each user alternates ...
Read more >
Question 1 (6 points) Compare circuit-switching and packet ...
Question 3 (6 points) Consider an Internet application running on two Internet hosts,. Host1 and Host2, which are communicating using a path through...
Read more >
Switching techniques in data acquisition systems for future ...
In this paperwe will describe switch-based event building using three different control schemes implementing message switching, circuit switching and packet ...
Read more >
An Architecture for High-Speed Packet Switched Networks ...
This dissertation proposes a new architecture for providing predictable high performance in high speed packet switched networks. The architecture combines the ...
Read more >
Packet-Switched Network vs. Circuit ...
A circuit-switched network is connection-oriented, while a packet-switched network offers an advanced digital upgrade.
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