Created by: yihuaxu
When run MM_DNN tester, it will show "std::exception" issue. Checked and fix it.
Steps: 1. Applied the patch of this PR and enable mkldnn. 2. run the below command. ./paddle/fluid/inference/tests/api/test_analyzer_mm_dnn --infer_model=third_party/inference_demo/mm_dnn/model --infer_data=third_party/inference_demo/mm_dnn/data.txt --gtest_filter=Analyzer_MM_DNN.profile_mkldnn --batch_size=1 --repeat=1 --test_all_data=false --num_threads=1 --profile
Associated PR#14998