您当前的位置: 首页 >  pytorch

不牌不改

暂无认证

  • 0浏览

    0关注

    422博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Pytorch学习笔记(五)

不牌不改 发布时间:2022-01-21 11:28:56 ,浏览量:0

讲解以下内容:(基础) class torch.nn.parameter.Parameter

  1. 参数注册

class torch.nn.Module

  1. .add_module()
  2. .children()
  3. .named_children()
  4. .modules()
  5. .named_modules()
  6. .zero_grad()
  7. .parameters()
  8. .named_parameters()
  9. .state_dict()
  10. load_state_dict()

class torch.nn.Sequential

  1. .add_module()

class torch.nn.ModuleList class torch.nn.ModuleDict class torch.nn.ParameterList class torch.nn.ParameterDict

  1. .clear()
  2. .items()
  3. .keys()
  4. .pop()
  5. .update()
  6. .values()
torch.nn.parameter.Parameter

可以理解为与torch.nn.Parameter一样。

(点开nn.parameter源码和nn

关注
打赏
1662186765
查看更多评论
立即登录/注册

微信扫码登录

0.0412s