Created by: FrostML
cherry-pick #23712 . cherry-pick #24513 . cherry-pick error message enhancement for dynamic_gru, chunk_eval, BeamSearchDecoder and sequence_expand_as.