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

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日

悬赏问题

  • ¥20 有偿,学生成绩信息管理系统
  • ¥15 Arduino电机和openmv连接异常
  • ¥15 Arcgis河网分级报错
  • ¥200 java+appium2.1+idea
  • ¥20 请帮我做一个EXE的去重TXT文本
  • ¥15 工价表引用工艺路线,应如何制作py和xml文件
  • ¥15 根据历史数据,推荐问题类型
  • ¥15 需要仿真图,简单的二阶系统实例
  • ¥15 stm32光控照明仿真
  • ¥15 使用人工智能的方法生成满足一定统计参数要求的随机数序列