Closed
Description
Right now, when constructing a ProgramDesc instance from a proto::ProgramDesc, there will be error for test_rnn_encoder_decoder.
The reason is the following code:
Paddle/paddle/framework/op_desc.cc
Lines 121 to 129 in 445c74c
where it tries to assign a block pointer that hasn't been created yet (because the ProgramDesc constructor calls the BlockDesc constructor one by one following the order of the block idx) as a attribute to a RNN while operator.