diff --git a/doc/fluid/user_guides/cv_case/gan/network.py b/doc/fluid/user_guides/cv_case/gan/network.py index b030e1190497741e3ab39de129e42551c6d52a83..6f0e85f4a81ff6938ec20f2cc4b8c63dffdc235a 100644 --- a/doc/fluid/user_guides/cv_case/gan/network.py +++ b/doc/fluid/user_guides/cv_case/gan/network.py @@ -91,7 +91,7 @@ def conv_cond_concat(x, y): """Concatenate conditioning vector on feature map axis.""" x_shape = fluid.layers.shape(x) ones = fluid.layers.fill_constant( - x, [x_shape[0], y.shape[1], x.shape[2], x.shape[3]], "float32", 1.0) + [x_shape[0], y.shape[1], x.shape[2], x.shape[3]], "float32", 1.0) return fluid.layers.concat([x, ones * y], 1)