当前位置:网站首页>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
边栏推荐
猜你喜欢
[STM32] STM32F103 series name and package, memory
NAT/NAPT地址转换(内外网通信)技术详解【华为eNSP】
2022-08-02 分析RK817 输出32k clock PMIC_32KOUT_WIFI给WiFi模块 clock 注册devm_clk_hw_register
今年37了,被大厂抢着要...
leetcode动态规划系列(求路径篇)
spark算子讲解
王爽汇编语言第四章:第一个程序
已解决No module named ‘flask_misaka‘【BUG解决】
DNS 查询原理详解—— 阮一峰的网络日志
Detailed Explanation of Addresses Delivered by DHCP on Routing/Layer 3 Switches [Huawei eNSP]
随机推荐
sync-diff-inspector 使用实践
交换机链路聚合详解【华为eNSP】
leetcode二叉树系列(二叉搜索树篇)
js - the first letter that appears twice
Yolov5 replaces the backbone network of "Megvii Lightweight Convolutional Neural Network ShuffleNetv2"
async - await
【论文笔记】Dynamic Convolution: Attention over Convolution Kernels
蘑菇书EasyRL学习笔记
他97年的,我既然卷不过他...
GBsae 8 c database using an error, how to do?
Detailed explanation of telnet remote login aaa mode [Huawei eNSP]
Detailed explanation of NAT/NAPT address translation (internal and external network communication) technology [Huawei eNSP]
TCP的四次挥手
[Computer recording screen] How to use bandicam to record the game setting graphic tutorial
下午14:00面试,14:08低着头出来了 ,问的实在是太...
Implementation of redis distributed lock
.NET深入解析LINQ框架(五:IQueryable、IQueryProvider接口详解)
RL学习笔记(一)
智汇华云 | 华云软件定义网络 DCI介绍
No module named 'flask_misaka' has been resolved [BUG solution]