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.

[FEAT/DOC] Add __repr__ to nn.Module

See original GitHub issue

The most of modules are lacking very useful __repr__ function. I am leaving this issue open until we catch-up.

  • create list of missing __repr__ s
  • fix all the old functions
  • add some test to lint to require __repr__ existence

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ducha-aikicommented, Jul 30, 2019

It depends on the Module. E.g. for CornerHarris, it would be the k, for GaussianBlur - kernel size and sigma, etc.

0reactions
edgarribacommented, Apr 5, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

Module — PyTorch 1.13 documentation
Applies fn recursively to every submodule (as returned by .children() ) as well as self. Typical use includes initializing the parameters of a...
Read more >
torch.nn.modules.module — transformers 4.4.2 documentation
How to contribute to transformers? How to add a model to Transformers? Testing · Exporting transformers models. Research. BERTology · Perplexity of fixed- ......
Read more >
pytorch/module.py at master - GitHub
Tensors and Dynamic neural networks in Python with strong GPU acceleration - pytorch/module.py at master · pytorch/pytorch.
Read more >
Why aren't torch.nn.Parameter listed when net is printed?
When you call print(net) , the __repr__ method is called. __repr__ gives the “official” string representation of an object. In PyTorch's nn.
Read more >
Create Neural Network with PyTorch | by ifeelfree - Medium
2.1 Module properties. Model class is inherited from nn.Module . ... and conv1.bias ) and the value returned by the __repr__ function of...
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