def check_forward(self, x_data):
x = chainer.Variable(x_data)
y = functions.maxout(x, self.pool_size, self.axis)
self.assertEqual(y.data.dtype, self.dtype)
gradient_check.assert_allclose(self.y, y.data)
文章目录