Skip to content

Commit 93563ef

Browse files
committed
fix doc
1 parent c096130 commit 93563ef

File tree

1 file changed

+13
-13
lines changed
  • python/paddle/trainer_config_helpers

1 file changed

+13
-13
lines changed

python/paddle/trainer_config_helpers/layers.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2722,14 +2722,14 @@ def img_pool_layer(input,
27222722
27232723
.. math::
27242724
2725-
w = 1 + int(ceil(input\_width + 2 * padding - pool\_size) / float(stride))
2725+
w = 1 + int(ceil(input\_width + 2 * padding - pool\_size) / float(stride)) \\\\
27262726
h = 1 + int(ceil(input\_height + 2 * padding\_y - pool\_size\_y) / float(stride\_y))
27272727
27282728
- ceil_mode=False:
27292729
27302730
.. math::
27312731
2732-
w = 1 + int(floor(input\_width + 2 * padding - pool\_size) / float(stride))
2732+
w = 1 + int(floor(input\_width + 2 * padding - pool\_size) / float(stride)) \\\\
27332733
h = 1 + int(floor(input\_height + 2 * padding\_y - pool\_size\_y) / float(stride\_y))
27342734
27352735
The example usage is:
@@ -2863,17 +2863,17 @@ def img_pool3d_layer(input,
28632863
28642864
.. math::
28652865
2866-
w = 1 + int(ceil(input\_width + 2 * padding - pool\_size) / float(stride))
2867-
h = 1 + int(ceil(input\_height + 2 * padding\_y - pool\_size\_y) / float(stride\_y))
2866+
w = 1 + int(ceil(input\_width + 2 * padding - pool\_size) / float(stride)) \\\\
2867+
h = 1 + int(ceil(input\_height + 2 * padding\_y - pool\_size\_y) / float(stride\_y)) \\\\
28682868
d = 1 + int(ceil(input\_depth + 2 * padding\_z - pool\_size\_z) / float(stride\_z))
28692869
28702870
- ceil_mode=False:
28712871
28722872
.. math::
28732873
2874-
w = 1 + int(floor(input\_width + 2 * padding - pool\_size) / float(stride))
2875-
h = 1 + int(floor(input\_height + 2 * padding\_y - pool\_size\_y) / float(stride\_y))
2876-
d = 1 + int(floor(input\_depth + 2 * padding\_z - pool\_size\_z) / float(stride\_z))
2874+
w = 1 + int(floor(input\_width + 2 * padding - pool\_size) / float(stride)) \\\\
2875+
h = 1 + int(floor(input\_height + 2 * padding\_y - pool\_size\_y) / float(stride\_y)) \\\\
2876+
d = 1 + int(floor(input\_depth + 2 * padding\_z - pool\_size\_z) / float(stride\_z)) \\\\
28772877
28782878
The example usage is:
28792879
@@ -5429,12 +5429,12 @@ def maxout_layer(input, groups, num_channels=None, name=None, layer_attr=None):
54295429
https://arxiv.org/pdf/1312.6082v4.pdf`_
54305430
54315431
.. math::
5432-
y_{si+j} = \max_k x_{gsi + sk + j}
5433-
g = groups
5434-
s = input.size / num_channels
5435-
0 \le i < num_channels / groups
5436-
0 \le j < s
5437-
0 \le k < groups
5432+
y_{si+j} = \max_k x_{gsi + sk + j} \\\\
5433+
g = groups \\\\
5434+
s = input.size / num\_channels \\\\
5435+
0 \le i < num\_channels / groups \\\\
5436+
0 \le j < s \\\\
5437+
0 \le k < groups \\\\
54385438
54395439
The simple usage is:
54405440

0 commit comments

Comments
 (0)