We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52be2a2 commit 6ace929Copy full SHA for 6ace929
python/paddle/trainer/config_parser.py
@@ -3863,17 +3863,17 @@ def __init__(self, name, inputs, reshape, **xargs):
3863
if reshape is None:
3864
self.set_layer_size(input_layer.size)
3865
else:
3866
- inH = input_layer.height
3867
- inW = input_layer.width
+ in_h = input_layer.height
+ in_w = input_layer.width
3868
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]
+ in_d = input_layer.depth
+ in_c = input_layer.size / in_h / in_w / in_d
+ out_dims = [0, in_d, in_h, in_w, in_c]
3872
size = reduce(lambda x, y: x * y,
3873
out_dims[reshape['width'][0]:])
3874
3875
- inC = input_layer.size / inH / inW
3876
- out_dims = [0, inH, inW, inC]
+ in_c = input_layer.size / in_h / in_w
+ out_dims = [0, in_h, in_w, in_c]
3877
3878
3879
0 commit comments