当前位置:网站首页>PyTorch 9. optimizer
PyTorch 9. optimizer
2022-04-23 07:28:00 【DCGJ666】
PyTorch 9. Optimizer
Optimizer
pytorch Optimizer : Manage and update the values of learnable parameters in the model , Make the model output closer to the real label
Basic attributes :
defaults: Optimizer parameters
state: Parameter cache , Such as momentum The cache of
param_groups: Managed parameter groups
_step_count: Record the number of updates , Use... In learning rate adjustment
operation :
zero_grad(): Clear the gradient of managed parameters
step(): Perform one step update
add_param_group(): Add parameter group
state_dict(): Get the optimizer's current state information dictionary
load_state_dict(): Load state information dictionary
- nn.optim.SGD
main parameter :
params: Managed parameter groups
lr: Initial learning rate
momentum: Momentum coefficient
weight_decay:L2 Regularization coefficient
nesterov: Whether to adopt NAG, Nesterov gradient optimization method - nn.optim.Adagrad
Adaptive learning rate gradient descent method - nn.optim.RMSprop
Adagrad Improvement - nn.optim.Adam
RMSprop combination Momentum - nn.optim.AdamW
Weighted adam
版权声明
本文为[DCGJ666]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230611344012.html
边栏推荐
- Paddleocr image text extraction
- 基于51单片机的三路超声波测距系统(定时器方式测距)
- 美摄助力百度“度咔剪辑”,让知识创作更容易
- Are realrange and einsum really elegant
- The simplest and complete example of libwebsockets
- 带低压报警的51单片机太阳能充电宝设计与制作(完整代码资料)
- . net encountered failed to decode downloaded font while loading font:
- Pymysql connection database
- imx6ull-qemu 裸机教程2:USDHC SD卡
- Detailed explanation of unwind stack backtracking
猜你喜欢

【点云系列】Relationship-based Point Cloud Completion

LPDDR4笔记

【点云系列】Unsupervised Multi-Task Feature Learning on Point Clouds

美摄科技推出桌面端专业视频编辑解决方案——美映PC版

MySQL installation and configuration - detailed tutorial

【点云系列】SO-Net:Self-Organizing Network for Point Cloud Analysis

Machine learning II: logistic regression classification based on Iris data set

基于Labview上位机的51单片机步进电机控制系统(上位机代码+下位机源码+ad原理图+51完整开发环境)

AMBA协议学习小记

Int8 quantification and inference of onnx model using TRT
随机推荐
Infrared sensor control switch
重大安保事件应急通信系统解决方案
【点云系列】Learning Representations and Generative Models for 3D pointclouds
Systrace 解析
PyTorch 19. PyTorch中相似操作的区别与联系
基于openmv的无人机Apriltag动态追踪降落完整项目资料(labview+openmv+apriltag+正点原子四轴)
Visual studio 2019 installation and use
Modifying a column with the 'identity' pattern is not supported
F.pad 的妙用
Warning "force fallback to CPU execution for node: gather_191" in onnxruntime GPU 1.7
关于短视频技术轮廓探讨
AUTOSAR从入门到精通100讲(八十七)-高级EEA的关键利器-AUTOSAR与DDS
【点云系列】FoldingNet:Point Cloud Auto encoder via Deep Grid Deformation
Thanos. SH kill bully script, easily delete half of the files in the system at random
unhandled system error, NCCL version 2.7.8
“Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated
LPDDR4笔记
带低压报警的51单片机太阳能充电宝设计与制作(完整代码资料)
安装 pycuda 出现 PEP517 的错误
Detailed explanation of device tree