当前位置:网站首页>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
边栏推荐
- PD 源码分析- Checker: region 健康卫士
- [Punctuality Atom STM32 Serial] Chapter 4 STM32 First Experience Excerpted from [Punctual Atom] MiniPro STM32H750 Development Guide_V1.1
- Explanation of spark operator
- Shared_preload_libraries cause many syntaxes not supported
- The separation configuration Libpq is supported, speaking, reading and writing
- 2022年制冷与空调设备运行操作特种作业证考试题库及模拟考试
- sql在字段重复时 对某个字段根据最新时间取数
- Apache Druid 实时分析数据库入门介绍
- How to restore the Youxuan database with only data files
- 【Attention】Dual Attention(DANet) & Fully Attention(FLA)
猜你喜欢
微信消息从发送到接收,经历了什么?如何防止丢包
技术实现 | 图像检索及其在淘宝的应用
【论文笔记】Dynamic Convolution: Attention over Convolution Kernels
我和 TiDB 的故事 | 缘份在,那就终是能相遇的
【正点原子STM32连载】第三章 开发环境搭建 摘自【正点原子】MiniPro STM32H750 开发指南_V1.1
有坦荡的远方
注意力机制
spark算子讲解
ShuffleNet v2 network structure reproduction (Pytorch version)
[Cloud Residency Co-Creation] HCSD Celebrity Live Streaming – Employment Guide
随机推荐
ISO14443A读卡流程(作为示例参考)
Anton Paar Anton Paar Density Meter Hydrometer Repair DMA35 Performance Parameters
蘑菇书EasyRL学习笔记
leetcode二叉树系列(一)
Post-94 Byte P7 posted the salary slip: It's really good to make up for this...
软件工程国考总结——判断题
VRRP+MSTP配置详解【华为eNSP实验】
Detailed explanation of switch link aggregation [Huawei eNSP]
LVGL's multi-language conversion tool -- a good assistant for font settings
反序列化漏洞
菲沃泰科创板上市:市值123亿 宗坚赵静艳夫妇身价76亿
sql在字段重复时 对某个字段根据最新时间取数
微信消息从发送到接收,经历了什么?如何防止丢包
Could you please talk about how the website is accessed?[Interview questions in the web field]
GBsae 8 c database using an error, how to do?
字符串与正则表达式(C#)
grafana手册之可视化配置图表table
Four common methods of network attacks and their protection
【正点原子STM32连载】第三章 开发环境搭建 摘自【正点原子】MiniPro STM32H750 开发指南_V1.1
Libpq 是否支持读写分离配置