From 1dd639ebbe0763bc0fa36bbe713c8f4ce319e46b Mon Sep 17 00:00:00 2001 From: hedaoyuan Date: Wed, 13 Sep 2017 17:02:32 +0800 Subject: [PATCH] Bug fix. --- paddle/operators/conv_op.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/operators/conv_op.cc b/paddle/operators/conv_op.cc index 174f777f0e..593fdc0e7e 100644 --- a/paddle/operators/conv_op.cc +++ b/paddle/operators/conv_op.cc @@ -33,7 +33,7 @@ class Conv2DOp : public framework::OperatorWithKernel { auto out = ctx.Output("Output"); std::vector strides = Attr>("strides"); std::vector paddings = Attr>("paddings"); - int groups = context.Attr("groups"); + int groups = Attr("groups"); int input_channels = in->dims()[1]; int output_channels = filter->dims()[0]; -- GitLab