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.

Argument suggestions for some functions in the pytorch module are duplicated when using Jedi

See original GitHub issue

image

Reproduce

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:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:25 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
CatNofishingcommented, Jul 30, 2020

@ericsnowcurrently @karthiknadig This problem still exists, do you have any plans to fix this problem, otherwise, I can only use pylance as an alternative.

1reaction
CatNofishingcommented, Mar 25, 2021

Okay, it works better than jedi , but worse than pylance😥

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 >
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 >

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