当前位置:网站首页>Torch optimizer small parsing
Torch optimizer small parsing
2022-07-07 05:17:00 【Fun of construction】
I press torch 1.11 Version written :
With sgd For example :


Inside maximize = group[‘maximize’] Illustrates the maxmize Parameters can be divided group Appoint . Of course, it can also be used globally , also maxmize yes sgd Unique ( By 1.11 edition )
Be careful , Other versions of optimizer such as adam, I didn't see it maxmize Parameters . Want to perform gradient rise , My idea is to rewrite the optimizer .
Be careful ,self.param_groups It's a list , Is defined in the base class ,sgd Can't find in the . As can be seen from the picture above ,sgd Is in accordance with the self.param_groups To each params Perform gradient optimization ( Up or down )
Be careful sgd init Methods defaults Variable , This is for the base class init Methodical . of super, You can see b Stand a video , It's very detailed :
Back to base class , Pay attention to defaults notes :

The dictionary is used in the back setdefault Method to set the global default defaults For each group:
边栏推荐
- SQL injection - secondary injection and multi statement injection
- SQL injection HTTP header injection
- [ArcGIS tutorial] thematic map production - population density distribution map - population density analysis
- 2039: [Bluebridge cup 2022 preliminaries] Li Bai's enhanced version (dynamic planning)
- 背包问题(01背包,完全背包,动态规划)
- 一文搞懂常见的网络I/O模型
- 带你遨游银河系的 10 种分布式数据库
- NiO related knowledge points (I)
- National meteorological data / rainfall distribution data / solar radiation data /npp net primary productivity data / vegetation coverage data
- Batch normalization (Standardization) processing
猜你喜欢

SQL injection - secondary injection and multi statement injection

Full link voltage test: the dispute between shadow database and shadow table

Harmonyos fourth training

pmp真的有用吗?

Analysis -- MySQL statement execution process & MySQL architecture

pytest测试框架——数据驱动

Ansible overview and module explanation (you just passed today, but yesterday came to your face)

《二》标签

AttributeError: module ‘torch._ C‘ has no attribute ‘_ cuda_ setDevice‘

基于Bevy游戏引擎和FPGA的双人游戏
随机推荐
What changes will PMP certification bring?
[ArcGIS tutorial] thematic map production - population density distribution map - population density analysis
QT simple layout box model with spring
torch optimizer小解析
QT控件样式系列(一)之QSlider
AOSP ~Binder 通信原理 (一) - 概要
Y58. Chapter III kubernetes from entry to proficiency - continuous integration and deployment (Sany)
2.证券投资基金的概述
Disk monitoring related commands
最长回文子串(动态规划)
LabVIEW在打开一个新的引用,提示内存已满
The most complete learning rate adjustment strategy in history LR_ scheduler
Pointer and array are input in function to realize reverse order output
Autowired注解用于List时的现象解析
Complete code of C language neural network and its meaning
QSlider of QT control style series (I)
Leetcode (417) -- Pacific Atlantic current problem
腾讯云数据库公有云市场稳居TOP 2!
ASP. Net MVC - resource cannot be found error - asp Net MVC – Resource Cannot be found error
DBSync新增对MongoDB、ES的支持