

def setUp(self):
    shape = (2, 3, 9, 8)
    size = (((2 * 3) * 9) * 8)
    self.x = cuda.cupy.arange(size, dtype=numpy.float32).reshape(shape)
    self.gy = cuda.cupy.random.uniform((- 1), 1, (2, 63, 1, 1)).astype(numpy.float32)

dataset/ETHPy150Open pfnet/chainer/tests/chainer_tests/functions_tests/pooling_tests/test_spatial_pyramid_pooling_2d.py TestMaxPooling2DCudnnCall.setUp/original