Skip to content

Commit 03f4b1d

Browse files
author
wangyang59
committed
minor changes on deconv per luotao1 comments
1 parent 7a322df commit 03f4b1d

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

paddle/gserver/tests/test_LayerGrad.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,6 @@ TEST(Layer, convTransLayer) {
353353
testConvTransLayer("exconvt", /* trans= */ false, /* useGpu= */ false);
354354
#ifndef PADDLE_ONLY_CPU
355355
testConvTransLayer("exconvt", /* trans= */ false, /* useGpu= */ true);
356-
// testConvLayer("cudnn_conv", /* trans= */ false, /* useGpu= */ true);
357356
#endif
358357
}
359358

python/paddle/trainer_config_helpers/layers.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1619,10 +1619,7 @@ def img_conv_layer(input, filter_size, num_filters,
16191619
param_attr.attr["initial_strategy"] = 0
16201620
param_attr.attr["initial_smart"] = False
16211621

1622-
if trans:
1623-
lt = LayerType.CONVTRANS_LAYER
1624-
else:
1625-
lt = LayerType.CONV_LAYER
1622+
lt = LayerType.CONVTRANS_LAYER if trans else LayerType.CONV_LAYER
16261623

16271624
Layer(
16281625
name=name,

0 commit comments

Comments
 (0)