V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
zxCoder
V2EX  ›  问与答

pycharm 写 pytorch 等智能提示很差是怎么回事

  •  
  •   zxCoder · 2021 年 9 月 28 日 · 1172 次点击
    这是一个创建于 1587 天前的主题,其中的信息可能已经有所发展或是发生改变。

    啥都提示不出来

    我甚至都写了a:torch.Tensor=xxxxx这样了,IDE 还是没办法推断这是一个 torch.Tensor 吗

    写起来好难受,是我方法不对吗

    6 条回复    2021-09-29 19:29:21 +08:00
    ipwx
        1
    ipwx  
       2021 年 9 月 28 日
    习惯了就好了 doge
    mxT52CRuqR6o5
        2
    mxT52CRuqR6o5  
       2021 年 9 月 28 日
    invalidate cache 试试呢
    Morriaty
        3
    Morriaty  
       2021 年 9 月 28 日
    我的能提示诶,版本也比较老了

    PyCharm 2020.1.1 (Professional Edition)
    Build #PY-201.7223.92, built on April 30, 2020
    xyfan
        4
    xyfan  
       2021 年 9 月 29 日
    试试 kite ?
    zxCoder
        5
    zxCoder  
    OP
       2021 年 9 月 29 日
    @Morriaty

    a: torch.Tensor = torch.Tensor([1, 2, 3])
    a.size()

    这个代码您能提示吗,输入 a. 的时候
    Morriaty
        6
    Morriaty  
       2021 年 9 月 29 日
    @zxCoder 可以的,你要不重装下试试
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   866 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 20:38 · PVG 04:38 · LAX 12:38 · JFK 15:38
    ♥ Do have faith in what you're doing.