Argument suggestions for some functions in the pytorch module are duplicated when using Jedi
See original GitHub issueReproduce
import time
import torch
from torch import nn, optim
import sys
import d2lzh_pytorch as d2l
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
def nin_block(in_channels, out_channels, kernel_size, stride, padding):
blk = nn.Sequential(
nn.Conv2d(in_channels, out_channels, kernel_size, stride, pad)
)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:25 (4 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 >Modules — PyTorch 1.13 documentation
A Simple Custom Module · It inherits from the base Module class. All modules should subclass Module for composability with other modules. ·...
Read more >Subclass of `fx.GraphModule` generating its own code
Hi all,. Is it possible to neatly encapsulate a torch.fx.GraphModule that generates its own graph? (Based, say, on __init__ parameters.).
Read more >ScriptModule — PyTorch 1.13 documentation
Typical use includes initializing the parameters of a model (see also torch.nn.init). Parameters: fn ( Module -> None) – function to be applied...
Read more >torch.nn — PyTorch 1.13 documentation
Applies a 1D convolution over an input signal composed of several input planes ... Conv2d module with lazy initialization of the in_channels argument...
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
@ericsnowcurrently @karthiknadig This problem still exists, do you have any plans to fix this problem, otherwise, I can only use pylance as an alternative.
Okay, it works better than jedi , but worse than pylance😥