fix nfp_update
@@ -42,7 +42,7 @@ class NFPUpdate(chainer.Chain):
if self.xp is numpy:
zero_array = numpy.zeros(fv.shape, dtype=numpy.float32)
else:
- zero_array = self.xp.zeros_like(fv)
+ zero_array = self.xp.zeros_like(fv.array)
fvds = [functions.where(cond, fv, zero_array) for cond in deg_conds]
