当前位置:网站首页>MindSpore:损失函数问题
MindSpore:损失函数问题
2022-08-04 09:03:00 【小乐快乐】
问题描述:
【功能模块】
【操作步骤&问题现象】
1、mindspore中有和pytoch功能一模一样的binary_cross_entropy_with_logits的loss函数吗
2、
【截图信息】
【日志信息】(可选,上传日志内容或者附件)
解决方案:
nn.BCEWithLogitsLoss和ops.BCEWithLogitsLoss 这两个 GPU和Ascend 都不支持,没有这两个
通过查看MindSpore官网API,对上面两个loss是支持Ascend硬件平台的。
·https://www.mindspore.cn/doc/api_python/zh-CN/r1.2/mindspore/ops/mindspore.ops.BCEWithLogitsLoss.html#mindspore.ops.BCEWithLogitsLoss
·https://www.mindspore.cn/doc/api_python/zh-CN/r1.2/mindspore/nn/mindspore.nn.BCEWithLogitsLoss.html#mindspore.nn.BCEWithLogitsLoss
如果使用r1.1以及之前的版本是不能直接使用的,但是底层算子应该都是不缺的,你可以试试直接copy https://gitee.com/mindspore/mindspore/blob/master/mindspore/nn/loss/loss.py#L924 这个Cell
边栏推荐
- 如何从PG导入数据到kingbaseES
- 技术实现 | 图像检索及其在高德的应用
- leetcode每天5题-Day06
- 【论文笔记】Delving into the Estimation Shift of Batch Normalization in a Network
- binder通信实现
- Quick tips for getting out of a single
- spark算子讲解
- [Punctuality Atom STM32 Serial] Chapter 4 STM32 First Experience Excerpted from [Punctual Atom] MiniPro STM32H750 Development Guide_V1.1
- [STM32] STM32F103 series name and package, memory
- 【云驻共创】HCSD 大咖直播–就业指南
猜你喜欢

反序列化漏洞

从零开始的tensorflow小白使用指北

BFM模型和Landmarks可视化

云函数实现网站自动化签到配置详解【Web函数/Nodejs/cookie】

外包干了四年,秋招终于上岸了

基于cRIO-904X搭建Simulink与Labview环境

.NET深入解析LINQ框架(五:IQueryable、IQueryProvider接口详解)

PD 源码分析- Checker: region 健康卫士

请你谈谈网站是如何进行访问的?【web领域面试题】

Interview at 14:00 in the afternoon, I came out at 14:08 with my head down, asking too much...
随机推荐
DNS 查询原理详解—— 阮一峰的网络日志
Get the number of cpu cores
预测性维护学习之路
Shared_preload_libraries导致很多语法不支持
VRRP + MSTP configuration, huawei eNSP experiment 】 【
leetcode动态规划系列(求路径篇)
2022年制冷与空调设备运行操作特种作业证考试题库及模拟考试
用OpenGL绘制winXP版扫雷的笑脸表情
binder通信实现
OAK-FFC-4P全网首次测试
注意力机制
cannot import name 'import_string' from 'werkzeug' [bug solution]
yuv420sp转jpg
四大网络攻击常见手段及防护
Interview at 14:00 in the afternoon, I came out at 14:08 with my head down, asking too much...
发现WRH几个表被锁了,怎么办?
华为od项目
抬升市场投资情绪,若羽臣是否还需“自身硬”?
SQL后计算的利器
已解决No module named ‘flask_misaka‘【BUG解决】