首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >result type Float can't be cast to the desired output type Long:BCE 标签应为浮点

result type Float can't be cast to the desired output type Long:BCE 标签应为浮点

作者头像
用户12833544
发布于 2026-11-22 04:49:13
发布于 2026-11-22 04:49:13
60
举报
概述
BCEWithLogitsLoss需要浮点目标,训练与验证中的long转换应一起修正,并保留单输出或多标签的任务定义。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档