当前位置:网站首页>MindSpore:mindspore有没有类似tf.GradientTape()用来求解梯度的?
MindSpore:mindspore有没有类似tf.GradientTape()用来求解梯度的?
2022-07-30 19:04:00 【小乐快乐】
问题描述:
MindSpore:mindspore有没有类似tf.GradientTape()用来求解梯度的?
方案解决:
在教程的快速入门页面有自动微分教程。其中可以通过sens_param参数对网络的输出值做缩放以改变最终梯度。首先将ops.GradOperation中的sens_param设置为True,并确定缩放指数,其维度与输出维度保持一致。
如果有其他使用问题欢迎继续提问,谢谢。
https://www.mindspore.cn/tutorial/zh-CN/r1.2/autograd.html
边栏推荐
- Read the "Language Model" in one article
- 常见链表题及其 Go 实现
- Immersive experience iFLYTEK 2022 Consumer Expo "Official Designated Product"
- Google's AlphaFold claims to have predicted almost every protein structure on Earth
- WEBSOCKETPP使用简介+demo
- NC | Tao Liang Group of West Lake University - TMPRSS2 "assists" virus infection and mediates the host invasion of Clostridium sothrix hemorrhagic toxin...
- How architects grow
- 防抖和节流有什么区别,分别用于什么场景?
- MongoDB打破了原则引入SQL?
- The use of @ symbol in MySql
猜你喜欢

运营 23 年,昔日“国内第一大电商网站”黄了...

浅聊对比学习(Contrastive Learning)第一弹

What is the difference between a cloud database and an on-premises database?

VS Code 连接SQL Server

Scrapy framework is introduced

经济新闻:错误# 15:初始化libiomp5md。dll,但发现libiomp5md。已经初始化dll。解决方法

生物医学论文有何价值 论文中译英怎样翻译效果好

What is the value of biomedical papers? How to translate the papers into Chinese and English?
![[Summary] 1396- 60+ VSCode plugins to create a useful editor](/img/e4/65e55d0e4948c011585b72733d4d19.jpg)
[Summary] 1396- 60+ VSCode plugins to create a useful editor

牛客刷题系列之进阶版(组队竞赛,排序子序列,倒置字符串, 删除公共字符,修理牧场)
随机推荐
经济新闻:错误# 15:初始化libiomp5md。dll,但发现libiomp5md。已经初始化dll。解决方法
MYSQL (Basic) - An article takes you into the wonderful world of MYSQL
Google's AlphaFold claims to have predicted almost every protein structure on Earth
Critical Reviews | 南农邹建文组综述全球农田土壤抗生素与耐药基因分布
Scrapy框架介绍
What kind of framework is friendly to developers?
常见链表题及其 Go 实现
在华为云,见证迷你世界的神奇觉醒
云数据库和本地数据库有什么区别?
"Ruffian Heng Embedded Bimonthly" Issue 59
JsonUtil基于字符串操作josn
Common linked list problems and their Go implementation
部分分类网络性能对比
scrapy基本使用
Chapter 4 Controlling the Execution Flow
Multiple instances of mysql
C# wpf borderless window add shadow effect
node封装一个控制台进度条插件
【hbuilder】运行不了部分项目 , 打开终端 无法输入指令
基于inquirer封装一个控制台文件选择器