Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass

UserWarning: adaptive_avg_pool2d_backward_cuda does not have a deterministic implementation, but you set 'torch.use_deterministic_algorithms(True, warn_only=True)'. You can file an issue at https://github.com/pytorch/pytorch/issues to help us prioritize adding deterministic support for this operation. (Triggered internally at C:\cb\pytorch_1000000000000\work\aten\src\ATen\Context.cpp:75.) Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass

在训练yolov10的时候,打印训练结果的时候,旁边出现这个警告的话。

解决方法:ultralytics/engine/trainer.py找到这个trainer.py,使用ctrl+F,输入 Backward

在他的上一行加入这行代码即可。

                # 训练的时候不报警告
                torch.use_deterministic_algorithms(False)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值