当前位置:网站首页>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
边栏推荐
猜你喜欢
![[Punctuality Atomic STM32 Serial] Chapter 1 Learning Method of the Book Excerpted from [Punctuality Atomic] MiniPro STM32H750 Development Guide_V1.1](/img/99/23e3dcb426769a415e33f7ff51bbb8.png)
[Punctuality Atomic STM32 Serial] Chapter 1 Learning Method of the Book Excerpted from [Punctuality Atomic] MiniPro STM32H750 Development Guide_V1.1

sync-diff-inspector 使用实践

Post-94 Byte P7 posted the salary slip: It's really good to make up for this...

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

如何设计一个注册中心

有坦荡的远方

inject() can only be used inside setup() or functional components.

【论文笔记】Understanding Long Programming Languages with Structure-Aware Sparse Attention
![[NOI Simulation Competition] Paper Tiger Game (Game Theory SG Function, Long Chain Division)](/img/b7/21f82453576b81e64dafbc3975125f.png)
[NOI Simulation Competition] Paper Tiger Game (Game Theory SG Function, Long Chain Division)

C Language Lectures from Scratch Part 6: Structure
随机推荐
【正点原子STM32连载】第二章 STM32简介 摘自【正点原子】MiniPro STM32H750 开发指南_V1.1
TiDB升级与案例分享(TiDB v4.0.1 → v5.4.1)
区分惯性环节与延迟环节
Could you please talk about how the website is accessed?[Interview questions in the web field]
grafana手册之可视化配置图表table
How to import data from PG to kingbaseES
Detailed explanation of MSTP protocol configuration on Layer 3 switches [Huawei eNSP experiment]
[Cloud Residency Co-Creation] HCSD Celebrity Live Streaming – Employment Guide
MATLAB/Simulink快捷键
How to restore the Youxuan database with only data files
思想茶叶蛋 (Jul 31,2022)| 元宇宙(Metaverse)下了一枚什么样的蛋
张朝阳对话俞敏洪:谈宇宙、谈焦虑、谈创业、谈退休、谈人生
ShuffleNet v2 network structure reproduction (Pytorch version)
Detailed explanation of NAT/NAPT address translation (internal and external network communication) technology [Huawei eNSP]
已解决No module named ‘flask_misaka‘【BUG解决】
王爽汇编语言第四章:第一个程序
菲沃泰科创板上市:市值123亿 宗坚赵静艳夫妇身价76亿
Explanation of spark operator
PD 源码分析- Checker: region 健康卫士
Detailed explanation of switch link aggregation [Huawei eNSP]