Make FFI tensor map more robust.
Make FFI tensor map more robust.

The 'default' tensor map (in generic/Tensor.c) makes sure that the
input tensors are of the same type. The FFI implementation (for the
contiguous case) doesn't do that. It should do so for consistency and also
to avoid segfaults when passing in a CudaTensor, for example.

alexbw/torch7,kidaa/torch7,wickedfoo/torch7,golden1232004/torch7,yt752/torch7,hmandal/torch7,nicholas-leonard/torch7,PrajitR/torch7,ilovecv/torch7,LinusU/torch7,massimobernava/torch7,Srisai85/torch7,nkhuyu/torch7,WangHong-yang/torch7,stein2013/torch7,Atcold/torch7,adamlerer/torch7,redbill/torch7,clementfarabet/torch7,kaustubhcs/torch7,breakds/torch7,PierrotLC/torch7,PrajitR/torch7,wgapl/torch7,eriche2016/torch7,hughperkins/torch7,kod3r/torch7,kidaa/torch7,syhw/torch7,nicholas-leonard/torch7,mr-justin/torch7,Cadene/torch7,szagoruyko/torch7,rotmanmi/torch7,mr-justin/torch7,rotmanmi/torch7,dariosena/torch7,chenfsjz/torch7,Moodstocks/torch7,jbeich/torch7,wangg12/torch7,MOUlili/torch7,u20024804/torch7,nkhuyu/torch7,adamlerer/torch7,akhti/torch7,syhw/torch7,hmandal/torch7,yaolubrain/torch7,diz-vara/torch7,ujjwalkarn/torch7,jlegendary/torch7,jibaro/torch7,hechenfon/torch7,LinusU/torch7,Peilong/torch7,kod3r/torch7,0wu/torch7,wangg12/torch7,colesbury/torch7,Cadene/torch7,chenfsjz/torch7,xindaya/torch7,ilovecv/torch7,eulerreich/torch7,breakds/torch7,eulerreich/torch7,voidException/torch7,ominux/torch7,bartvm/torch7,douwekiela/torch7,dhruvparamhans/torch7,golden1232004/torch7,ninjin/torch7,wheatwaves/torch7,u20024804/torch7,yozw/torch7,alexbw/torch7,bnk-iitb/torch7,Peilong/torch7,jlegendary/torch7,szagoruyko/torch7,dariosena/torch7,iamtrask/torch7,MOUlili/torch7,waitwaitforget/torch7,akhti/torch7,eriche2016/torch7,iamtrask/torch7,xindaya/torch7,ominux/torch7,dhruvparamhans/torch7,kirangonella/torch7,stein2013/torch7,pushups/torch7,redbill/torch7,yt752/torch7,bnk-iitb/torch7,wickedfoo/torch7,jibaro/torch7,0wu/torch7,ujjwalkarn/torch7,massimobernava/torch7,hughperkins/torch7,Moodstocks/torch7,WangHong-yang/torch7,Srisai85/torch7,yaolubrain/torch7,bartvm/torch7,diz-vara/torch7,kirangonella/torch7,kaustubhcs/torch7,hechenfon/torch7,jbeich/torch7,Atcold/torch7,pushups/torch7,yozw/torch7,voidException/torch7,wgapl/torch7,colesbury/torch7,PierrotLC/torch7,ninjin/torch7,douwekiela/torch7,jaak-s/torch7,wheatwaves/torch7,waitwaitforget/torch7,jaak-s/torch7,clementfarabet/torch7