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.

A few questions about add_graph

See original GitHub issue

Hi @lanpa , thanks for this amazing tool. I’m trying to use add_graph in my own project, where I met these questions:

  1. How to use add_graph in the training iteration? Am I supposed to initialize the SummaryWriter outside the main training loop and call w.add_graph inside the loop? If so how do I get the model output? Or this feature is only possible for dummy input and being called only once? Why it’s necessary to feed input to the model? It would be nice if you can provide an example with add_graph used in a complete project(instead of demo_graph.py).
  2. Does it support custom CUDA layer? I tried with a custom correlation layer, and no matter what kind of data is fed into the model(random or image) the custom correlation failed for unknown reason.

Thanks for your time!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
kunguangcommented, Feb 1, 2018

如果我的graph里有embedding层,是不是graph就读取不了

1reaction
lanpacommented, Jan 25, 2018

@JiamingSuen There is a hacky solution. Since you only need to draw once, and result is don’t care. You can replace the GPU module with the following.

class Correlation(nn.Module):
    def __init__(self):
        super(Correlation, self).__init__()

    def forward(self, x):
        # implement a fake correlation 
        #(as long as the output size is the same as real correlation) 
        return 

I will give a shot on the real GPU code in the weekend.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add Graph in the Folder in SAP Data Intelligence
Hi All, I have created a graph in SAP DI and it is visible under the Graph section. But I would like to...
Read more >
followedSites and followedSites/add Graph API issues and ...
When execute this graph query the added follow sites by graph are not reflect only when user access to site physically and click...
Read more >
Comparative bar graph using addplot - LaTeX Stack Exchange
Please be sure to answer the question. Provide details and share your research! ... Asking for help, clarification, or responding to other answers ......
Read more >
IT'S A MULTIPLE CHOICE QUESTION BUT REQUIRES DETAIL
Question : IT'S A MULTIPLE CHOICE QUESTION BUT REQUIRES DETAIL EXPLANATION TO IT SO ADD GRAPH OR EQUATION WHATEVER IS REQUIRED TO SUPPORT...
Read more >
Add graph to the First Panel in Amcharts - Stack Overflow
Not the answer you're looking for? Browse other questions tagged. amcharts. or ask your own question. ... Job insights from the tech community: ......
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