Add `TernaryOp` that takes three input: lhs, mhs, rhs. Also, add  a ternary operator `fill_element_0index` , which fills the specific element in each line of the `lhs` according to the index in `rhs` and value in `mhs`
Add `TernaryOp` that takes three input: lhs, mhs, rhs.
Also, add  a ternary operator `fill_element_0index` , which fills the specific element in each line of the `lhs` according to the index in `rhs` and value in `mhs`

tornadomeet/mxnet,precedenceguo/mxnet,Mega-DatA-Lab/mxnet,tlby/mxnet,jermainewang/mxnet,larroy/mxnet,solin319/incubator-mxnet,kevinthesun/mxnet,TuSimple/mxnet,likelyzhao/mxnet,weleen/mxnet,fullfanta/mxnet,ForkedReposBak/mxnet,yuruofeifei/mxnet,DR08/mxnet,mbaijal/incubator-mxnet,Mega-DatA-Lab/mxnet,Northrend/mxnet,reminisce/mxnet,Ldpe2G/mxnet,ZihengJiang/mxnet,Guneet-Dhillon/mxnet,zhreshold/mxnet,solin319/incubator-mxnet,larroy/mxnet,tlby/mxnet,weleen/mxnet,stefanhenneking/mxnet,eric-haibin-lin/mxnet,ptrendx/mxnet,gautamkmr/incubator-mxnet,larroy/mxnet,weleen/mxnet,jiajiechen/mxnet,crazy-cat/incubator-mxnet,EvanzzzZ/mxnet,ptrendx/mxnet,DR08/mxnet,hpi-xnor/BMXNet,rishita/mxnet,crazy-cat/incubator-mxnet,Guneet-Dhillon/mxnet,ForkedReposBak/mxnet,xcgoner/dist-mxnet,ptrendx/mxnet,xcgoner/dist-mxnet,antoan2/incubator-mxnet,ykim362/mxnet,crazy-cat/incubator-mxnet,ptrendx/mxnet,piiswrong/mxnet,saurabh3949/mxnet,yuruofeifei/mxnet,Guneet-Dhillon/mxnet,hpi-xnor/BMXNet,DR08/mxnet,saurabh3949/mxnet,eric-haibin-lin/mxnet,smolix/incubator-mxnet,eric-haibin-lin/mxnet,ykim362/mxnet,kevinthesun/mxnet,TuSimple/mxnet,vikingMei/mxnet,reminisce/mxnet,yajiedesign/mxnet,Northrend/mxnet,jamesliu/mxnet,rahul003/mxnet,TuSimple/mxnet,EvanzzzZ/mxnet,tlby/mxnet,LinkHS/incubator-mxnet,apaleyes/mxnet,EvanzzzZ/mxnet,Prasad9/incubator-mxnet,jennyzhang0215/incubator-mxnet,yajiedesign/mxnet,jennyzhang0215/incubator-mxnet,likelyzhao/mxnet,eric-haibin-lin/mxnet,rahul003/mxnet,arank/mxnet,eric-haibin-lin/mxnet,jennyzhang0215/incubator-mxnet,wangyum/mxnet,Ldpe2G/mxnet,hesseltuinhof/mxnet,leezu/mxnet,jamesliu/mxnet,rishita/mxnet,hesseltuinhof/mxnet,sergeykolychev/mxnet,smolix/incubator-mxnet,apaleyes/mxnet,szha/mxnet,madjam/mxnet,indhub/mxnet,leezu/mxnet,TuSimple/mxnet,smolix/incubator-mxnet,reminisce/mxnet,ZihengJiang/mxnet,gautamkmr/incubator-mxnet,zhreshold/mxnet,ShownX/incubator-mxnet,piiswrong/mxnet,formath/mxnet,Northrend/mxnet,thirdwing/mxnet,ptrendx/mxnet,hpi-xnor/BMXNet,coder-james/mxnet,pluskid/mxnet,formath/mxnet,dmlc/mxnet,apache/incubator-mxnet,rishita/mxnet,DR08/mxnet,pluskid/mxnet,luoyetx/mxnet,leezu/mxnet,sxjscience/mxnet,Mega-DatA-Lab/mxnet,DR08/mxnet,larroy/mxnet,szha/mxnet,arank/mxnet,gautamkmr/incubator-mxnet,jamesliu/mxnet,DR08/mxnet,weleen/mxnet,pluskid/mxnet,apaleyes/mxnet,pluskid/mxnet,navrasio/mxnet,CodingCat/mxnet,sergeykolychev/mxnet,kkk669/mxnet,ShownX/incubator-mxnet,tornadomeet/mxnet,dmlc/mxnet,thirdwing/mxnet,dmlc/mxnet,xcgoner/dist-mxnet,dmlc/mxnet,dmlc/mxnet,jermainewang/mxnet,larroy/mxnet,LinkHS/incubator-mxnet,navrasio/mxnet,tornadomeet/mxnet,antoan2/incubator-mxnet,coder-james/mxnet,yuruofeifei/mxnet,arank/mxnet,mbaijal/incubator-mxnet,tornadomeet/mxnet,fullfanta/mxnet,pluskid/mxnet,Guneet-Dhillon/mxnet,Guneet-Dhillon/mxnet,ptrendx/mxnet,arank/mxnet,kkk669/mxnet,coder-james/mxnet,hotpxl/mxnet,hotpxl/mxnet,hesseltuinhof/mxnet,kevinthesun/mxnet,eric-haibin-lin/mxnet,tornadomeet/mxnet,hotpxl/mxnet,ForkedReposBak/mxnet,reminisce/mxnet,luoyetx/mxnet,Prasad9/incubator-mxnet,formath/mxnet,Mega-DatA-Lab/mxnet,ForkedReposBak/mxnet,crazy-cat/incubator-mxnet,rahul003/mxnet,LinkHS/incubator-mxnet,jermainewang/mxnet,LinkHS/incubator-mxnet,hesseltuinhof/mxnet,thirdwing/mxnet,zhreshold/mxnet,thirdwing/mxnet,reminisce/mxnet,madjam/mxnet,kkk669/mxnet,TuSimple/mxnet,yajiedesign/mxnet,pluskid/mxnet,tlby/mxnet,apaleyes/mxnet,xcgoner/dist-mxnet,yajiedesign/mxnet,CodingCat/mxnet,ykim362/mxnet,vikingMei/mxnet,arikpoz/mxnet,Northrend/mxnet,coder-james/mxnet,danithaca/mxnet,arank/mxnet,hotpxl/mxnet,jennyzhang0215/incubator-mxnet,piiswrong/mxnet,wangyum/mxnet,leezu/mxnet,gautamkmr/incubator-mxnet,yajiedesign/mxnet,formath/mxnet,dmlc/mxnet,kevinthesun/mxnet,Mega-DatA-Lab/mxnet,kkk669/mxnet,formath/mxnet,precedenceguo/mxnet,CodingCat/mxnet,navrasio/mxnet,hpi-xnor/BMXNet,saurabh3949/mxnet,rishita/mxnet,ShownX/incubator-mxnet,kkk669/mxnet,sergeykolychev/mxnet,ShownX/incubator-mxnet,vikingMei/mxnet,hpi-xnor/BMXNet,apache/incubator-mxnet,indhub/mxnet,coder-james/mxnet,szha/mxnet,smolix/incubator-mxnet,kkk669/mxnet,indhub/mxnet,larroy/mxnet,jennyzhang0215/incubator-mxnet,arikpoz/mxnet,ZihengJiang/mxnet,jiajiechen/mxnet,xcgoner/dist-mxnet,jennyzhang0215/incubator-mxnet,gautamkmr/incubator-mxnet,apaleyes/mxnet,ykim362/mxnet,precedenceguo/mxnet,Northrend/mxnet,coder-james/mxnet,precedenceguo/mxnet,jennyzhang0215/incubator-mxnet,stefanhenneking/mxnet,Guneet-Dhillon/mxnet,DickJC123/mxnet,luoyetx/mxnet,jermainewang/mxnet,jermainewang/mxnet,gautamkmr/incubator-mxnet,arank/mxnet,xcgoner/dist-mxnet,navrasio/mxnet,jamesliu/mxnet,apaleyes/mxnet,hesseltuinhof/mxnet,sxjscience/mxnet,TuSimple/mxnet,precedenceguo/mxnet,dmlc/mxnet,EvanzzzZ/mxnet,piiswrong/mxnet,crazy-cat/incubator-mxnet,indhub/mxnet,likelyzhao/mxnet,weleen/mxnet,CodingCat/mxnet,ykim362/mxnet,lxn2/mxnet,jermainewang/mxnet,nicklhy/mxnet,apache/incubator-mxnet,larroy/mxnet,szha/mxnet,LinkHS/incubator-mxnet,Mega-DatA-Lab/mxnet,sxjscience/mxnet,jiajiechen/mxnet,jiajiechen/mxnet,Northrend/mxnet,nicklhy/mxnet,smolix/incubator-mxnet,pluskid/mxnet,Ldpe2G/mxnet,sergeykolychev/mxnet,ykim362/mxnet,zhreshold/mxnet,kkk669/mxnet,precedenceguo/mxnet,mbaijal/incubator-mxnet,Northrend/mxnet,nicklhy/mxnet,LinkHS/incubator-mxnet,coder-james/mxnet,wangyum/mxnet,crazy-cat/incubator-mxnet,jiajiechen/mxnet,dmlc/mxnet,ForkedReposBak/mxnet,saurabh3949/mxnet,thirdwing/mxnet,kevinthesun/mxnet,antoan2/incubator-mxnet,antoan2/incubator-mxnet,solin319/incubator-mxnet,LinkHS/incubator-mxnet,hotpxl/mxnet,thirdwing/mxnet,Northrend/mxnet,saurabh3949/mxnet,jamesliu/mxnet,ykim362/mxnet,sxjscience/mxnet,ZihengJiang/mxnet,Mega-DatA-Lab/mxnet,eric-haibin-lin/mxnet,stefanhenneking/mxnet,solin319/incubator-mxnet,leezu/mxnet,Prasad9/incubator-mxnet,wangyum/mxnet,CodingCat/mxnet,likelyzhao/mxnet,precedenceguo/mxnet,solin319/incubator-mxnet,vikingMei/mxnet,crazy-cat/incubator-mxnet,EvanzzzZ/mxnet,apaleyes/mxnet,sergeykolychev/mxnet,luoyetx/mxnet,vikingMei/mxnet,CodingCat/mxnet,ShownX/incubator-mxnet,saurabh3949/mxnet,lxn2/mxnet,reminisce/mxnet,ptrendx/mxnet,CodingCat/mxnet,piiswrong/mxnet,piiswrong/mxnet,dmlc/mxnet,Ldpe2G/mxnet,nicklhy/mxnet,yuruofeifei/mxnet,danithaca/mxnet,rishita/mxnet,weleen/mxnet,likelyzhao/mxnet,stefanhenneking/mxnet,jennyzhang0215/incubator-mxnet,sergeykolychev/mxnet,tlby/mxnet,indhub/mxnet,likelyzhao/mxnet,jermainewang/mxnet,formath/mxnet,coder-james/mxnet,stefanhenneking/mxnet,arikpoz/mxnet,yuruofeifei/mxnet,eric-haibin-lin/mxnet,Guneet-Dhillon/mxnet,Prasad9/incubator-mxnet,tornadomeet/mxnet,weleen/mxnet,Ldpe2G/mxnet,ptrendx/mxnet,leezu/mxnet,Northrend/mxnet,thirdwing/mxnet,fullfanta/mxnet,indhub/mxnet,madjam/mxnet,eric-haibin-lin/mxnet,hpi-xnor/BMXNet,DickJC123/mxnet,tlby/mxnet,jiajiechen/mxnet,hesseltuinhof/mxnet,precedenceguo/mxnet,tlby/mxnet,apache/incubator-mxnet,ptrendx/mxnet,EvanzzzZ/mxnet,sergeykolychev/mxnet,luoyetx/mxnet,madjam/mxnet,jermainewang/mxnet,nicklhy/mxnet,rishita/mxnet,arank/mxnet,hpi-xnor/BMXNet,rahul003/mxnet,Mega-DatA-Lab/mxnet,navrasio/mxnet,navrasio/mxnet,tlby/mxnet,piiswrong/mxnet,leezu/mxnet,coder-james/mxnet,lxn2/mxnet,Prasad9/incubator-mxnet,madjam/mxnet,Ldpe2G/mxnet,larroy/mxnet,rahul003/mxnet,wangyum/mxnet,arikpoz/mxnet,Guneet-Dhillon/mxnet,solin319/incubator-mxnet,danithaca/mxnet,kkk669/mxnet,tornadomeet/mxnet,saurabh3949/mxnet,jiajiechen/mxnet,hotpxl/mxnet,yuruofeifei/mxnet,zhreshold/mxnet,wangyum/mxnet,gautamkmr/incubator-mxnet,arikpoz/mxnet,DR08/mxnet,arank/mxnet,rishita/mxnet,yajiedesign/mxnet,danithaca/mxnet,Guneet-Dhillon/mxnet,rishita/mxnet,CodingCat/mxnet,ZihengJiang/mxnet,hotpxl/mxnet,zhreshold/mxnet,precedenceguo/mxnet,formath/mxnet,likelyzhao/mxnet,arank/mxnet,lxn2/mxnet,piiswrong/mxnet,tornadomeet/mxnet,gautamkmr/incubator-mxnet,danithaca/mxnet,hpi-xnor/BMXNet,navrasio/mxnet,indhub/mxnet,formath/mxnet,xcgoner/dist-mxnet,mbaijal/incubator-mxnet,Mega-DatA-Lab/mxnet,fullfanta/mxnet,zhreshold/mxnet,DickJC123/mxnet,mbaijal/incubator-mxnet,szha/mxnet,hesseltuinhof/mxnet,ptrendx/mxnet,mbaijal/incubator-mxnet,vikingMei/mxnet,rahul003/mxnet,saurabh3949/mxnet,vikingMei/mxnet,antoan2/incubator-mxnet,TuSimple/mxnet,saurabh3949/mxnet,antoan2/incubator-mxnet,arikpoz/mxnet,stefanhenneking/mxnet,pluskid/mxnet,reminisce/mxnet,navrasio/mxnet,sxjscience/mxnet,Prasad9/incubator-mxnet,nicklhy/mxnet,yajiedesign/mxnet,mbaijal/incubator-mxnet,nicklhy/mxnet,smolix/incubator-mxnet,luoyetx/mxnet,apaleyes/mxnet,jamesliu/mxnet,szha/mxnet,larroy/mxnet,madjam/mxnet,ForkedReposBak/mxnet,fullfanta/mxnet,ykim362/mxnet,Ldpe2G/mxnet,kevinthesun/mxnet,stefanhenneking/mxnet,DickJC123/mxnet,luoyetx/mxnet,vikingMei/mxnet,kkk669/mxnet,indhub/mxnet,hpi-xnor/BMXNet,gautamkmr/incubator-mxnet,yuruofeifei/mxnet,mbaijal/incubator-mxnet,CodingCat/mxnet,apaleyes/mxnet,kevinthesun/mxnet,TuSimple/mxnet,stefanhenneking/mxnet,pluskid/mxnet,stefanhenneking/mxnet,reminisce/mxnet,lxn2/mxnet,lxn2/mxnet,EvanzzzZ/mxnet,fullfanta/mxnet,smolix/incubator-mxnet,tornadomeet/mxnet,jermainewang/mxnet,ZihengJiang/mxnet,antoan2/incubator-mxnet,leezu/mxnet,szha/mxnet,antoan2/incubator-mxnet,Ldpe2G/mxnet,Prasad9/incubator-mxnet,madjam/mxnet,danithaca/mxnet,indhub/mxnet,luoyetx/mxnet,jiajiechen/mxnet,kevinthesun/mxnet,antoan2/incubator-mxnet,ForkedReposBak/mxnet,xcgoner/dist-mxnet,smolix/incubator-mxnet,DR08/mxnet,ZihengJiang/mxnet,EvanzzzZ/mxnet,navrasio/mxnet,reminisce/mxnet,TuSimple/mxnet,LinkHS/incubator-mxnet,yuruofeifei/mxnet,ForkedReposBak/mxnet,lxn2/mxnet,madjam/mxnet,sxjscience/mxnet,hotpxl/mxnet,solin319/incubator-mxnet,jamesliu/mxnet,yuruofeifei/mxnet,crazy-cat/incubator-mxnet,TuSimple/mxnet,kevinthesun/mxnet,xcgoner/dist-mxnet,ShownX/incubator-mxnet,Prasad9/incubator-mxnet,formath/mxnet,weleen/mxnet,likelyzhao/mxnet,arikpoz/mxnet,nicklhy/mxnet,lxn2/mxnet,jennyzhang0215/incubator-mxnet,zhreshold/mxnet,szha/mxnet,mbaijal/incubator-mxnet,Prasad9/incubator-mxnet,zhreshold/mxnet,DR08/mxnet,solin319/incubator-mxnet,sxjscience/mxnet,fullfanta/mxnet,wangyum/mxnet,jiajiechen/mxnet,wangyum/mxnet,madjam/mxnet,sergeykolychev/mxnet,danithaca/mxnet,rahul003/mxnet,arikpoz/mxnet,jamesliu/mxnet,yajiedesign/mxnet,arikpoz/mxnet,nicklhy/mxnet,leezu/mxnet,ForkedReposBak/mxnet,ZihengJiang/mxnet,hesseltuinhof/mxnet,reminisce/mxnet,weleen/mxnet,sergeykolychev/mxnet,jamesliu/mxnet,rishita/mxnet,tlby/mxnet,ykim362/mxnet,fullfanta/mxnet,ShownX/incubator-mxnet,Ldpe2G/mxnet,luoyetx/mxnet,hesseltuinhof/mxnet,piiswrong/mxnet,sxjscience/mxnet,fullfanta/mxnet,smolix/incubator-mxnet,crazy-cat/incubator-mxnet,ZihengJiang/mxnet,EvanzzzZ/mxnet,rahul003/mxnet,LinkHS/incubator-mxnet,ShownX/incubator-mxnet,tlby/mxnet,thirdwing/mxnet,yajiedesign/mxnet,rahul003/mxnet,sxjscience/mxnet,szha/mxnet,danithaca/mxnet,danithaca/mxnet,vikingMei/mxnet,hotpxl/mxnet,wangyum/mxnet,ShownX/incubator-mxnet,solin319/incubator-mxnet,lxn2/mxnet,thirdwing/mxnet,likelyzhao/mxnet