Fix to properly use the static ndim
Fix to properly use the static ndim

hvy/chainer,keisuke-umezawa/chainer,keisuke-umezawa/chainer,wkentaro/chainer,okuta/chainer,niboshi/chainer,keisuke-umezawa/chainer,chainer/chainer,wkentaro/chainer,ktnyt/chainer,chainer/chainer,jnishi/chainer,hvy/chainer,ktnyt/chainer,ktnyt/chainer,jnishi/chainer,okuta/chainer,wkentaro/chainer,jnishi/chainer,niboshi/chainer,niboshi/chainer,chainer/chainer,keisuke-umezawa/chainer,okuta/chainer,okuta/chainer,chainer/chainer,pfnet/chainer,jnishi/chainer,wkentaro/chainer,niboshi/chainer,tkerola/chainer,hvy/chainer,ktnyt/chainer,hvy/chainer