什么时候能出像网络转换那样的脚本?

最近想用jittor复现论文,但很多参考资料都是pytorch或者paddle等框架。

作者已经出了网络转换的脚本
但可不可以出一下训练和损失函数的脚本呀~

或者给点提示,说一下paddle和jittor的训练和损失函数的差异。(比如,数据转换要用numpy作为中介,tensor<–>numpy<–>var )
:joy:

jittor很多API没有完善。
我列出我最想要的功能,链接为别人框架的参考文档。

  1. one_hot

先写这么多,如果作者知道在jittor原来的文档中有这些函数,可以告诉我一下吗?
如果没有,可以快点更新吗

  1. sigmoid_focal_loss
  2. KLDivLoss
  1. [cast]
    为什么一直报错,发不出来,500 error什么意思

sigmoid_focal_loss 您可以参考以下实现:

您好 one_hot 在最新版的 jittor 1.3.5.13 中已经提供,为 jt.nn.one_hot。请更新 jittor 使用。

1 个赞

非常感谢作者,jittor继续加油
顺便问一下如何更新,
我运行
python3.7 -m pip install jittor==1.3.5.13报错

python3.7 -m pip install jittor==1.3.5.13
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
ERROR: Could not find a version that satisfies the requirement jittor==1.3.5.13 (from versions: 1.0.0, 1.1.3, 1.1.3.2, 1.1.4.1, 1.1.4.2, 1.1.4.3, 1.1.4.4, 1.1.4.7, 1.1.5.0, 1.1.5.1, 1.1.5.3, 1.1.5.4, 1.1.5.5, 1.1.5.6, 1.1.6.0, 1.1.6.1, 1.1.6.2, 1.1.6.7, 1.1.7.0, 1.1.7.1, 1.1.7.2, 1.1.7.3, 1.1.7.4, 1.1.7.5, 1.1.7.6, 1.1.7.9, 1.1.7.10, 1.1.7.11, 1.1.7.12, 1.1.7.13, 1.1.7.16, 1.1.7.17, 1.1.7.19, 1.2.0.0, 1.2.0.4, 1.2.0.5, 1.2.0.6, 1.2.1.2, 1.2.2.0, 1.2.2.1, 1.2.2.2, 1.2.2.9, 1.2.2.11, 1.2.2.12, 1.2.2.16, 1.2.2.17, 1.2.2.19, 1.2.2.20, 1.2.2.21, 1.2.2.22, 1.2.2.23, 1.2.2.24, 1.2.2.25, 1.2.2.26, 1.2.2.27, 1.2.2.28, 1.2.2.29, 1.2.2.30, 1.2.2.31, 1.2.2.32, 1.2.2.33, 1.2.2.34, 1.2.2.35, 1.2.2.36, 1.2.2.37, 1.2.2.38, 1.2.2.39, 1.2.2.40, 1.2.2.41, 1.2.2.42, 1.2.2.43, 1.2.2.44, 1.2.2.45, 1.2.2.46, 1.2.2.47, 1.2.2.48, 1.2.2.49, 1.2.2.51, 1.2.2.52, 1.2.2.53, 1.2.2.55, 1.2.2.56, 1.2.2.57, 1.2.2.58, 1.2.2.59, 1.2.2.60, 1.2.2.61, 1.2.2.62, 1.2.2.63, 1.2.2.64, 1.2.2.65, 1.2.2.66, 1.2.2.67, 1.2.2.68, 1.2.3.5, 1.2.3.6, 1.2.3.7, 1.2.3.8, 1.2.3.9, 1.2.3.10, 1.2.3.11, 1.2.3.12, 1.2.3.13, 1.2.3.14, 1.2.3.16, 1.2.3.17, 1.2.3.18, 1.2.3.19, 1.2.3.20, 1.2.3.21, 1.2.3.22, 1.2.3.23, 1.2.3.24, 1.2.3.25, 1.2.3.26, 1.2.3.27, 1.2.3.28, 1.2.3.29, 1.2.3.30, 1.2.3.31, 1.2.3.32, 1.2.3.33, 1.2.3.34, 1.2.3.35, 1.2.3.36, 1.2.3.37, 1.2.3.38, 1.2.3.39, 1.2.3.40, 1.2.3.41, 1.2.3.42, 1.2.3.43, 1.2.3.44, 1.2.3.45, 1.2.3.46, 1.2.3.47, 1.2.3.48, 1.2.3.49, 1.2.3.50, 1.2.3.51, 1.2.3.52, 1.2.3.53, 1.2.3.54, 1.2.3.55, 1.2.3.56, 1.2.3.57, 1.2.3.58, 1.2.3.59, 1.2.3.60, 1.2.3.61, 1.2.3.62, 1.2.3.63, 1.2.3.64, 1.2.3.65, 1.2.3.66, 1.2.3.67, 1.2.3.68, 1.2.3.69, 1.2.3.70, 1.2.3.71, 1.2.3.72, 1.2.3.73, 1.2.3.74, 1.2.3.75, 1.2.3.76, 1.2.3.77, 1.2.3.78, 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.8, 1.3.2.9, 1.3.3.0, 1.3.3.1, 1.3.3.2, 1.3.3.3, 1.3.3.4, 1.3.3.5, 1.3.3.6, 1.3.3.7, 1.3.3.8, 1.3.3.9, 1.3.3.10, 1.3.3.11, 1.3.3.12, 1.3.3.13, 1.3.3.14, 1.3.4.0, 1.3.4.1, 1.3.4.2, 1.3.4.3, 1.3.4.4, 1.3.4.5, 1.3.4.6, 1.3.4.7, 1.3.4.8, 1.3.4.9, 1.3.4.10, 1.3.4.11, 1.3.4.12, 1.3.4.13, 1.3.4.14, 1.3.4.15, 1.3.4.16, 1.3.4.17, 1.3.4.18, 1.3.4.19, 1.3.4.20, 1.3.5.1, 1.3.5.2, 1.3.5.3, 1.3.5.4, 1.3.5.5, 1.3.5.6, 1.3.5.7, 1.3.5.8, 1.3.5.9, 1.3.5.10, 1.3.5.11, 1.3.5.12)
ERROR: No matching distribution found for jittor==1.3.5.13

注意到您设置了清华源, pip 源镜像是有延迟的,等个一天后基本就能与主站同步。
您可以不使用镜像,从而立即从 pypi 主站更新 jittor。

1 个赞