Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyTorch02-神经网络的“组件” | 少年歌行 #15

Open
lyb92nlf opened this issue Jan 19, 2022 · 0 comments
Open

PyTorch02-神经网络的“组件” | 少年歌行 #15

lyb92nlf opened this issue Jan 19, 2022 · 0 comments

Comments

@lyb92nlf
Copy link
Owner

https://lyb92nlf.github.io/2022/01/18/pytorch02-%E7%A5%9E%E7%BB%8F%E7%BD%91%E7%BB%9C%E7%9A%84%E2%80%9C%E7%BB%84%E4%BB%B6%E2%80%9D/

torch.nn文档在这里!!! ContainersMoudle对于所有神经网络的基础类。自定义模型需要继承这个类,必须重写forward方法 12345678910111213141516import torch.nn as nnclass Model(nn.Module): def init(self): super(Model, self).init()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant