Aded weight support to ClassNLLCriterion cuda.
Aded weight support to ClassNLLCriterion cuda.

lvdmaaten/nn,eriche2016/nn,Jeffyrao/nn,rotmanmi/nn,andreaskoepf/nn,colesbury/nn,douwekiela/nn,jonathantompson/nn,PierrotLC/nn,kmul00/nn,ominux/nn,PraveerSINGH/nn,LinusU/nn,nicholas-leonard/nn,sbodenstein/nn,bartvm/nn,lukasc-ch/nn,noa/nn,aaiijmrtt/nn,joeyhng/nn,vgire/nn,Djabbz/nn,mlosch/nn,abeschneider/nn,apaszke/nn,GregSatre/nn,davidBelanger/nn,diz-vara/nn,jhjin/nn,hughperkins/nn,EnjoyHacking/nn,forty-2/nn,ivendrov/nn,Moodstocks/nn,sagarwaghmare69/nn,elbamos/nn,adamlerer/nn,clementfarabet/nn,witgo/nn,Aysegul/nn,zhangxiangxiao/nn,eulerreich/nn,caldweln/nn,jzbontar/nn,xianjiec/nn