def __call__(self, x):
if self.has_uninitialized_params:
with chainer.cuda.get_device(self._device_id):
self._initialize_params(x.shape[1])
return chainer.functions.connection.convolution_2d.convolution_2d(
x, self.W * self.mask, self.b, self.stride, self.pad, self.use_cudnn,
deterministic=self.deterministic)
评论列表
文章目录