Skip to content

Commit 6aebc34

Browse files
Update custom_function_conv_bn_tutorial.md
1 parent 3da7eba commit 6aebc34

File tree

1 file changed

+4
-46
lines changed

1 file changed

+4
-46
lines changed

docs/2.0/tutorials/intermediate/custom_function_conv_bn_tutorial.md

+4-46
Original file line numberDiff line numberDiff line change
@@ -46,53 +46,11 @@
4646

4747

4848

49+
For simplicity, in this tutorial we hardcode bias=False, stride=1, padding=0, dilation=1, and groups=1 for Conv2D. For BatchNorm2D, we hardcode eps=1e-3, momentum=0.1, affine=False, and track_running_statistics=False.
4950

50-
为简单起见,在本教程中我们硬编码
51+
为简单起见,在本教程中, 对于 Conv2D,我们硬编码 bias=False、 stride=1 、 padding=0 、 dilation=1 和 groups=1 。对于 BatchNorm2D,我们硬编码 eps=1e-3 、momentum=0.1 、 affine=False 和 track_running_statistics=False 。另一个小差异是我们在批量范数的计算中在平方根之外的分母中添加了epsilon。
5152

52-
bias=False
53-
54-
55-
56-
stride=1
57-
58-
59-
60-
padding=0
61-
62-
63-
64-
Conv2D 的 dilation=1
65-
66-
67-
and
68-
69-
groups=1
70-
71-
。对于 BatchNorm2D,我们硬编码
72-
73-
eps=1e-3
74-
75-
76-
77-
动量=0.1
78-
79-
80-
81-
affine=False
82-
83-
84-
85-
track\ \_running_statistics=False
86-
87-
。另一个小差异
88-
是我们在批量范数的计算中
89-
在平方根之外的分母中添加了epsilon。
90-
91-
92-
93-
94-
[0]
95-
<https://nenadmarkus.com/p/fusing-batchnorm-and-conv/>
53+
[0] <https://nenadmarkus.com/p/fusing-batchnorm-and-conv/>
9654

9755

9856

@@ -105,7 +63,7 @@ and
10563

10664
实现自定义函数需要我们自己实现向后的
10765
。在这种情况下,我们需要 Conv2D
108-
和 BatchNorm2D 的后向公式。最终我们’d 在统一的
66+
和 BatchNorm2D 的后向公式。最终我们 在统一的
10967
后向函数中将它们链接在一起,但下面我们首先将它们实现为自己的
11068
自定义函数,以便我们可以单独验证它们的正确性
11169

0 commit comments

Comments
 (0)