[FEAT/DOC] Add __repr__ to nn.Module
See original GitHub issueThe 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:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It depends on the Module. E.g. for CornerHarris, it would be the k, for GaussianBlur - kernel size and sigma, etc.
continue here https://github.com/kornia/kornia/pull/774