diff --git a/paddle/operators/rnn/recurrent_op_utils.cc b/paddle/operators/rnn/recurrent_op_utils.cc index d63c86b301c72c8bd07c0a070b46ae87c9b64cec..a767009d2366e20d2ebd35f562b8df7d408f2d4e 100644 --- a/paddle/operators/rnn/recurrent_op_utils.cc +++ b/paddle/operators/rnn/recurrent_op_utils.cc @@ -112,14 +112,11 @@ void InitArgument(const ArgumentName& name, Argument* arg, const framework::OperatorBase& op, bool is_grad) { arg->step_scopes = is_grad ? op.Input(name.step_scopes) : op.Output(name.step_scopes); - arg->inlinks = op.Inputs(name.inlinks); - arg->outlinks = op.Outputs(name.outlinks); auto boot_memories = is_grad ? op.Outputs(name.boot_memories) : op.Inputs(name.boot_memories); - // attributes auto memories = op.Attr>(name.memories); auto pre_memories = op.Attr>(name.pre_memories);