如果eos发生变化无法做infer的操作
Created by: xiaolvtaomi
attention_model.py这个文件中如果eos发生变化无法做infer的操作(比如因为要识别有数字所以eos改成了其他值) attention_infer的方法中
selected_ids, selected_scores = fluid.layers.beam_search(
pre_ids,
pre_score,
topk_indices,
accu_scores,
beam_size,
eos, # 这里应该从1改成eos,否则eos如果发生变化会导致无法做infer操作
#level=0
)