Skip to content

Commit 6ace929

Browse files
committed
Rename variable name.
1 parent 52be2a2 commit 6ace929

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

python/paddle/trainer/config_parser.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3863,17 +3863,17 @@ def __init__(self, name, inputs, reshape, **xargs):
38633863
if reshape is None:
38643864
self.set_layer_size(input_layer.size)
38653865
else:
3866-
inH = input_layer.height
3867-
inW = input_layer.width
3866+
in_h = input_layer.height
3867+
in_w = input_layer.width
38683868
if input_layer.has_depth():
3869-
inD = input_layer.depth
3870-
inC = input_layer.size / inH / inW / inD
3871-
out_dims = [0, inD, inH, inW, inC]
3869+
in_d = input_layer.depth
3870+
in_c = input_layer.size / in_h / in_w / in_d
3871+
out_dims = [0, in_d, in_h, in_w, in_c]
38723872
size = reduce(lambda x, y: x * y,
38733873
out_dims[reshape['width'][0]:])
38743874
else:
3875-
inC = input_layer.size / inH / inW
3876-
out_dims = [0, inH, inW, inC]
3875+
in_c = input_layer.size / in_h / in_w
3876+
out_dims = [0, in_h, in_w, in_c]
38773877
size = reduce(lambda x, y: x * y,
38783878
out_dims[reshape['width'][0]:])
38793879

0 commit comments

Comments
 (0)