Apply suggestions from code review
Apply suggestions from code review

Co-Authored-By: beam2d <ab71f832b971699d6f6eb15fc83fe86f19113df6@gmail.com>
wkentaro/chainer,okuta/chainer,chainer/chainer,ktnyt/chainer,keisuke-umezawa/chainer,ktnyt/chainer,keisuke-umezawa/chainer,niboshi/chainer,keisuke-umezawa/chainer,pfnet/chainer,tkerola/chainer,niboshi/chainer,wkentaro/chainer,okuta/chainer,jnishi/chainer,ktnyt/chainer,hvy/chainer,hvy/chainer,okuta/chainer,ktnyt/chainer,jnishi/chainer,hvy/chainer,chainer/chainer,keisuke-umezawa/chainer,niboshi/chainer,jnishi/chainer,jnishi/chainer,chainer/chainer,chainer/chainer,wkentaro/chainer,hvy/chainer,wkentaro/chainer,okuta/chainer,niboshi/chainer