Fix input with extra 1's in the shape.
Fix input with extra 1's in the shape.

Shaswat27/scipy,pschella/scipy,dominicelse/scipy,Gillu13/scipy,giorgiop/scipy,argriffing/scipy,aman-iitj/scipy,raoulbq/scipy,juliantaylor/scipy,Eric89GXL/scipy,jseabold/scipy,surhudm/scipy,ales-erjavec/scipy,jor-/scipy,nvoron23/scipy,Gillu13/scipy,newemailjdm/scipy,apbard/scipy,sauliusl/scipy,ChanderG/scipy,bkendzior/scipy,fernand/scipy,vanpact/scipy,apbard/scipy,mtrbean/scipy,dch312/scipy,FRidh/scipy,mtrbean/scipy,gfyoung/scipy,jamestwebber/scipy,gef756/scipy,matthewalbani/scipy,felipebetancur/scipy,jakevdp/scipy,anielsen001/scipy,Dapid/scipy,andyfaff/scipy,giorgiop/scipy,ndchorley/scipy,pyramania/scipy,kalvdans/scipy,gdooper/scipy,ales-erjavec/scipy,jakevdp/scipy,piyush0609/scipy,aarchiba/scipy,gdooper/scipy,gdooper/scipy,nvoron23/scipy,rmcgibbo/scipy,mingwpy/scipy,FRidh/scipy,Shaswat27/scipy,WarrenWeckesser/scipy,vberaudi/scipy,Kamp9/scipy,njwilson23/scipy,efiring/scipy,pschella/scipy,efiring/scipy,vhaasteren/scipy,jonycgn/scipy,pizzathief/scipy,fredrikw/scipy,sonnyhu/scipy,ortylp/scipy,juliantaylor/scipy,sriki18/scipy,pizzathief/scipy,haudren/scipy,mortada/scipy,woodscn/scipy,Newman101/scipy,aarchiba/scipy,WarrenWeckesser/scipy,fredrikw/scipy,mortonjt/scipy,Srisai85/scipy,giorgiop/scipy,behzadnouri/scipy,rmcgibbo/scipy,trankmichael/scipy,cpaulik/scipy,richardotis/scipy,mhogg/scipy,endolith/scipy,mortada/scipy,tylerjereddy/scipy,andim/scipy,argriffing/scipy,pyramania/scipy,trankmichael/scipy,lhilt/scipy,niknow/scipy,arokem/scipy,jjhelmus/scipy,Eric89GXL/scipy,newemailjdm/scipy,bkendzior/scipy,Kamp9/scipy,njwilson23/scipy,ilayn/scipy,gertingold/scipy,mortada/scipy,niknow/scipy,josephcslater/scipy,Kamp9/scipy,giorgiop/scipy,josephcslater/scipy,andyfaff/scipy,kleskjr/scipy,efiring/scipy,zaxliu/scipy,pbrod/scipy,cpaulik/scipy,ales-erjavec/scipy,maniteja123/scipy,haudren/scipy,woodscn/scipy,gfyoung/scipy,apbard/scipy,zerothi/scipy,mikebenfield/scipy,minhlongdo/scipy,mdhaber/scipy,matthew-brett/scipy,vigna/scipy,felipebetancur/scipy,piyush0609/scipy,kleskjr/scipy,grlee77/scipy,Stefan-Endres/scipy,kalvdans/scipy,Gillu13/scipy,Eric89GXL/scipy,jakevdp/scipy,andim/scipy,josephcslater/scipy,mingwpy/scipy,kalvdans/scipy,hainm/scipy,nonhermitian/scipy,juliantaylor/scipy,petebachant/scipy,mtrbean/scipy,dominicelse/scipy,witcxc/scipy,mikebenfield/scipy,kleskjr/scipy,maniteja123/scipy,jonycgn/scipy,sargas/scipy,mhogg/scipy,apbard/scipy,gdooper/scipy,vhaasteren/scipy,ndchorley/scipy,vanpact/scipy,nvoron23/scipy,tylerjereddy/scipy,teoliphant/scipy,vigna/scipy,larsmans/scipy,gfyoung/scipy,matthew-brett/scipy,mikebenfield/scipy,gef756/scipy,njwilson23/scipy,cpaulik/scipy,sriki18/scipy,argriffing/scipy,pbrod/scipy,e-q/scipy,haudren/scipy,jseabold/scipy,anielsen001/scipy,Eric89GXL/scipy,pnedunuri/scipy,niknow/scipy,Shaswat27/scipy,aeklant/scipy,rmcgibbo/scipy,rmcgibbo/scipy,fernand/scipy,person142/scipy,witcxc/scipy,anielsen001/scipy,zerothi/scipy,Newman101/scipy,pnedunuri/scipy,maniteja123/scipy,tylerjereddy/scipy,aman-iitj/scipy,fredrikw/scipy,andim/scipy,raoulbq/scipy,josephcslater/scipy,vigna/scipy,zerothi/scipy,pizzathief/scipy,perimosocordiae/scipy,Srisai85/scipy,pbrod/scipy,jseabold/scipy,felipebetancur/scipy,jjhelmus/scipy,rgommers/scipy,newemailjdm/scipy,giorgiop/scipy,andyfaff/scipy,vanpact/scipy,jamestwebber/scipy,newemailjdm/scipy,andim/scipy,ortylp/scipy,arokem/scipy,lhilt/scipy,jsilter/scipy,WillieMaddox/scipy,surhudm/scipy,ogrisel/scipy,anielsen001/scipy,Stefan-Endres/scipy,arokem/scipy,bkendzior/scipy,vigna/scipy,teoliphant/scipy,juliantaylor/scipy,kleskjr/scipy,matthew-brett/scipy,scipy/scipy,behzadnouri/scipy,Kamp9/scipy,felipebetancur/scipy,Dapid/scipy,mortada/scipy,e-q/scipy,perimosocordiae/scipy,fernand/scipy,matthewalbani/scipy,anntzer/scipy,sargas/scipy,ilayn/scipy,mgaitan/scipy,WillieMaddox/scipy,pschella/scipy,mgaitan/scipy,dominicelse/scipy,jor-/scipy,endolith/scipy,pnedunuri/scipy,chatcannon/scipy,endolith/scipy,ortylp/scipy,person142/scipy,nonhermitian/scipy,lhilt/scipy,pbrod/scipy,Srisai85/scipy,Eric89GXL/scipy,aeklant/scipy,ogrisel/scipy,woodscn/scipy,person142/scipy,chatcannon/scipy,vberaudi/scipy,pnedunuri/scipy,ndchorley/scipy,argriffing/scipy,lhilt/scipy,behzadnouri/scipy,trankmichael/scipy,piyush0609/scipy,ndchorley/scipy,nvoron23/scipy,pbrod/scipy,surhudm/scipy,grlee77/scipy,endolith/scipy,zerothi/scipy,lukauskas/scipy,tylerjereddy/scipy,jonycgn/scipy,futurulus/scipy,sauliusl/scipy,jor-/scipy,raoulbq/scipy,hainm/scipy,pyramania/scipy,zxsted/scipy,pizzathief/scipy,dominicelse/scipy,jjhelmus/scipy,hainm/scipy,njwilson23/scipy,arokem/scipy,aman-iitj/scipy,andim/scipy,futurulus/scipy,mortada/scipy,jakevdp/scipy,Gillu13/scipy,kalvdans/scipy,gef756/scipy,jseabold/scipy,grlee77/scipy,ortylp/scipy,ilayn/scipy,vhaasteren/scipy,zxsted/scipy,mdhaber/scipy,jamestwebber/scipy,petebachant/scipy,nonhermitian/scipy,zaxliu/scipy,njwilson23/scipy,josephcslater/scipy,WarrenWeckesser/scipy,ales-erjavec/scipy,Kamp9/scipy,zxsted/scipy,andyfaff/scipy,Newman101/scipy,ChanderG/scipy,maciejkula/scipy,piyush0609/scipy,niknow/scipy,sauliusl/scipy,surhudm/scipy,minhlongdo/scipy,maniteja123/scipy,richardotis/scipy,befelix/scipy,jamestwebber/scipy,lukauskas/scipy,kleskjr/scipy,lukauskas/scipy,felipebetancur/scipy,gfyoung/scipy,gfyoung/scipy,Newman101/scipy,maciejkula/scipy,woodscn/scipy,andyfaff/scipy,grlee77/scipy,anntzer/scipy,sonnyhu/scipy,nmayorov/scipy,jonycgn/scipy,lukauskas/scipy,befelix/scipy,zaxliu/scipy,vhaasteren/scipy,newemailjdm/scipy,WillieMaddox/scipy,arokem/scipy,matthewalbani/scipy,behzadnouri/scipy,Shaswat27/scipy,mingwpy/scipy,nvoron23/scipy,jor-/scipy,sauliusl/scipy,mtrbean/scipy,fredrikw/scipy,anielsen001/scipy,teoliphant/scipy,mtrbean/scipy,scipy/scipy,jsilter/scipy,mikebenfield/scipy,larsmans/scipy,lhilt/scipy,nmayorov/scipy,argriffing/scipy,rgommers/scipy,jsilter/scipy,Shaswat27/scipy,aarchiba/scipy,scipy/scipy,Dapid/scipy,pschella/scipy,bkendzior/scipy,raoulbq/scipy,trankmichael/scipy,kalvdans/scipy,anntzer/scipy,petebachant/scipy,futurulus/scipy,rmcgibbo/scipy,aeklant/scipy,vberaudi/scipy,pschella/scipy,Newman101/scipy,matthew-brett/scipy,raoulbq/scipy,sonnyhu/scipy,argriffing/scipy,mdhaber/scipy,maciejkula/scipy,sargas/scipy,dominicelse/scipy,ogrisel/scipy,fernand/scipy,hainm/scipy,maniteja123/scipy,FRidh/scipy,jakevdp/scipy,fernand/scipy,larsmans/scipy,ilayn/scipy,cpaulik/scipy,ndchorley/scipy,minhlongdo/scipy,dch312/scipy,Eric89GXL/scipy,futurulus/scipy,jsilter/scipy,aarchiba/scipy,gertingold/scipy,mhogg/scipy,fernand/scipy,mtrbean/scipy,mortonjt/scipy,Srisai85/scipy,mgaitan/scipy,FRidh/scipy,ilayn/scipy,maciejkula/scipy,surhudm/scipy,andyfaff/scipy,zerothi/scipy,chatcannon/scipy,richardotis/scipy,anntzer/scipy,endolith/scipy,Srisai85/scipy,e-q/scipy,ortylp/scipy,njwilson23/scipy,matthewalbani/scipy,fredrikw/scipy,e-q/scipy,zxsted/scipy,sonnyhu/scipy,pizzathief/scipy,vhaasteren/scipy,haudren/scipy,gertingold/scipy,Stefan-Endres/scipy,zaxliu/scipy,mdhaber/scipy,tylerjereddy/scipy,mdhaber/scipy,WarrenWeckesser/scipy,Srisai85/scipy,piyush0609/scipy,niknow/scipy,vanpact/scipy,jseabold/scipy,chatcannon/scipy,ChanderG/scipy,Dapid/scipy,ndchorley/scipy,rgommers/scipy,matthew-brett/scipy,pyramania/scipy,pnedunuri/scipy,larsmans/scipy,mikebenfield/scipy,zxsted/scipy,mortonjt/scipy,dch312/scipy,endolith/scipy,ChanderG/scipy,person142/scipy,jamestwebber/scipy,jjhelmus/scipy,newemailjdm/scipy,sonnyhu/scipy,ogrisel/scipy,Stefan-Endres/scipy,mortonjt/scipy,Stefan-Endres/scipy,felipebetancur/scipy,teoliphant/scipy,nonhermitian/scipy,teoliphant/scipy,mhogg/scipy,mingwpy/scipy,Shaswat27/scipy,efiring/scipy,richardotis/scipy,andim/scipy,maniteja123/scipy,sargas/scipy,jsilter/scipy,WarrenWeckesser/scipy,dch312/scipy,nmayorov/scipy,ogrisel/scipy,ortylp/scipy,perimosocordiae/scipy,vberaudi/scipy,vhaasteren/scipy,nmayorov/scipy,zaxliu/scipy,fredrikw/scipy,sauliusl/scipy,petebachant/scipy,ChanderG/scipy,WarrenWeckesser/scipy,trankmichael/scipy,Dapid/scipy,matthewalbani/scipy,cpaulik/scipy,mhogg/scipy,befelix/scipy,zaxliu/scipy,nvoron23/scipy,befelix/scipy,mgaitan/scipy,larsmans/scipy,hainm/scipy,behzadnouri/scipy,pnedunuri/scipy,aman-iitj/scipy,zerothi/scipy,aman-iitj/scipy,richardotis/scipy,lukauskas/scipy,vberaudi/scipy,ChanderG/scipy,gertingold/scipy,haudren/scipy,witcxc/scipy,e-q/scipy,pbrod/scipy,jor-/scipy,aman-iitj/scipy,witcxc/scipy,apbard/scipy,niknow/scipy,Stefan-Endres/scipy,grlee77/scipy,maciejkula/scipy,WillieMaddox/scipy,gef756/scipy,anntzer/scipy,Gillu13/scipy,sriki18/scipy,scipy/scipy,lukauskas/scipy,jonycgn/scipy,petebachant/scipy,nonhermitian/scipy,chatcannon/scipy,FRidh/scipy,mingwpy/scipy,kleskjr/scipy,ilayn/scipy,mortonjt/scipy,WillieMaddox/scipy,cpaulik/scipy,jjhelmus/scipy,aeklant/scipy,petebachant/scipy,juliantaylor/scipy,piyush0609/scipy,witcxc/scipy,Kamp9/scipy,scipy/scipy,trankmichael/scipy,rgommers/scipy,FRidh/scipy,minhlongdo/scipy,mhogg/scipy,sargas/scipy,vanpact/scipy,perimosocordiae/scipy,WillieMaddox/scipy,gef756/scipy,gertingold/scipy,woodscn/scipy,anntzer/scipy,richardotis/scipy,pyramania/scipy,sriki18/scipy,mortonjt/scipy,woodscn/scipy,sonnyhu/scipy,haudren/scipy,vanpact/scipy,larsmans/scipy,giorgiop/scipy,sriki18/scipy,scipy/scipy,befelix/scipy,ales-erjavec/scipy,rgommers/scipy,gdooper/scipy,anielsen001/scipy,nmayorov/scipy,efiring/scipy,dch312/scipy,minhlongdo/scipy,zxsted/scipy,person142/scipy,mgaitan/scipy,efiring/scipy,ales-erjavec/scipy,aeklant/scipy,perimosocordiae/scipy,gef756/scipy,sriki18/scipy,hainm/scipy,jonycgn/scipy,jseabold/scipy,mdhaber/scipy,sauliusl/scipy,futurulus/scipy,vberaudi/scipy,chatcannon/scipy,mgaitan/scipy,Dapid/scipy,mortada/scipy,Gillu13/scipy,bkendzior/scipy,mingwpy/scipy,behzadnouri/scipy,futurulus/scipy,vigna/scipy,surhudm/scipy,perimosocordiae/scipy,minhlongdo/scipy,rmcgibbo/scipy,aarchiba/scipy,Newman101/scipy,raoulbq/scipy