Skip to content

Commit d7c57ca

Browse files
authored
Update pytorch.md
1 parent d5b6bd4 commit d7c57ca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pytorch.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ nn.CrossEntropyLoss 等于 nn.LogSoftmax和nn.NLLLoss的组合
9090
- conv:
9191
一个输入channel个数(比如RGB),一个输出channel个数
9292
- subclass nn.Module
93+
- functional API
94+
- torch.tanh
95+
- nn.functional.max_pool2d
96+
- 模型是状态的容器,以Parameters,submodules和instructions一起做forward.
9397
- 保存和加载模型
9498
- 在GPU上训练时:
9599
- 把从dataloader中得到的tensor传入GPU(nn.tensor.to)

0 commit comments

Comments
 (0)