Fix type check for linear
Fix type check for linear

elviswf/chainer,ytoyama/yans_chainer_hackathon,muupan/chainer,sinhrks/chainer,chainer/chainer,wkentaro/chainer,muupan/chainer,tscohen/chainer,pfnet/chainer,woodshop/complex-chainer,t-abe/chainer,okuta/chainer,masia02/chainer,truongdq/chainer,keisuke-umezawa/chainer,cupy/cupy,tkerola/chainer,cupy/cupy,kashif/chainer,keisuke-umezawa/chainer,woodshop/chainer,wavelets/chainer,hvy/chainer,kuwa32/chainer,ktnyt/chainer,benob/chainer,bayerj/chainer,wkentaro/chainer,ysekky/chainer,hvy/chainer,benob/chainer,1986ks/chainer,cupy/cupy,niboshi/chainer,niboshi/chainer,hvy/chainer,tereka114/chainer,aonotas/chainer,kikusu/chainer,jfsantos/chainer,Kaisuke5/chainer,t-abe/chainer,yanweifu/chainer,laysakura/chainer,chainer/chainer,jnishi/chainer,okuta/chainer,chainer/chainer,wkentaro/chainer,chainer/chainer,keisuke-umezawa/chainer,kiyukuta/chainer,delta2323/chainer,ktnyt/chainer,rezoo/chainer,ikasumi/chainer,hvy/chainer,kikusu/chainer,sou81821/chainer,hidenori-t/chainer,sinhrks/chainer,umitanuki/chainer,anaruse/chainer,tigerneil/chainer,jnishi/chainer,cemoody/chainer,jnishi/chainer,minhpqn/chainer,AlpacaDB/chainer,truongdq/chainer,jnishi/chainer,ronekko/chainer,ktnyt/chainer,okuta/chainer,AlpacaDB/chainer,cupy/cupy,niboshi/chainer,keisuke-umezawa/chainer,ktnyt/chainer,okuta/chainer,wkentaro/chainer,niboshi/chainer