fix crash when disable WITH_SWIG_PY
fix crash when disable WITH_SWIG_PY

yu239/Paddle,hedaoyuan/Paddle,QiJune/Paddle,pengli09/Paddle,lispc/Paddle,QiJune/Paddle,lispc/Paddle,tensor-tang/Paddle,baidu/Paddle,pkuyym/Paddle,yu239/Paddle,putcn/Paddle,lispc/Paddle,pengli09/Paddle,PaddlePaddle/Paddle,Canpio/Paddle,luotao1/Paddle,jacquesqiao/Paddle,jacquesqiao/Paddle,Canpio/Paddle,Canpio/Paddle,PaddlePaddle/Paddle,lcy-seso/Paddle,luotao1/Paddle,Canpio/Paddle,lcy-seso/Paddle,hedaoyuan/Paddle,reyoung/Paddle,yu239/Paddle,Canpio/Paddle,hedaoyuan/Paddle,pkuyym/Paddle,pengli09/Paddle,baidu/Paddle,Canpio/Paddle,lispc/Paddle,luotao1/Paddle,jacquesqiao/Paddle,putcn/Paddle,hedaoyuan/Paddle,QiJune/Paddle,baidu/Paddle,lcy-seso/Paddle,tensor-tang/Paddle,pengli09/Paddle,baidu/Paddle,chengduoZH/Paddle,jacquesqiao/Paddle,pkuyym/Paddle,yu239/Paddle,PaddlePaddle/Paddle,Canpio/Paddle,reyoung/Paddle,PaddlePaddle/Paddle,chengduoZH/Paddle,baidu/Paddle,lispc/Paddle,luotao1/Paddle,hedaoyuan/Paddle,putcn/Paddle,PaddlePaddle/Paddle,lispc/Paddle,luotao1/Paddle,tensor-tang/Paddle,hedaoyuan/Paddle,pengli09/Paddle,yu239/Paddle,luotao1/Paddle,pengli09/Paddle,chengduoZH/Paddle,reyoung/Paddle,hedaoyuan/Paddle,PaddlePaddle/Paddle,tensor-tang/Paddle,reyoung/Paddle,lispc/Paddle,PaddlePaddle/Paddle,putcn/Paddle,pengli09/Paddle,lcy-seso/Paddle,tensor-tang/Paddle,QiJune/Paddle,yu239/Paddle,reyoung/Paddle,lcy-seso/Paddle,QiJune/Paddle,lispc/Paddle,chengduoZH/Paddle,pengli09/Paddle,pkuyym/Paddle,pkuyym/Paddle,chengduoZH/Paddle,Canpio/Paddle,QiJune/Paddle,jacquesqiao/Paddle,yu239/Paddle,reyoung/Paddle,putcn/Paddle,lcy-seso/Paddle,luotao1/Paddle,putcn/Paddle,yu239/Paddle,hedaoyuan/Paddle,jacquesqiao/Paddle,pkuyym/Paddle