andpeople1 2022-09-09 15:15 采纳率: 0%
浏览 472

python使用时出现的问题(求解决)

我运行程序时出现:

UserWarning: floordiv is deprecated, and its behavior will change in a future version of pytorch. It currently rounds toward 0 (like the 'trunc' function NOT 'floor'). This results in incorrect rounding for negative values. To keep the current behavior, use torch. div(a, b, rounding_mode='trunc'), or for actual floor division, use torch. div(a, b, rounding_mode='floor').

非常疑惑是什么原因,求解决!

  • 写回答

2条回答 默认 最新

  • 亖夕 新星创作者: python技术领域 2022-09-09 15:33
    关注

    新版pytorch 已经弃用floordiv,要是使用floordiv可以降低pytorch 版本

    评论

报告相同问题?

问题事件

  • 创建了问题 9月9日