

def check_forward(self, x_data, use_cudnn=True):
    x = chainer.Variable(x_data)
    y = functions.spatial_pyramid_pooling_2d(x, self.pyramid_height, self.pooling_class, use_cudnn=use_cudnn)
    self.assertEqual(y.data.dtype, numpy.float32)
    y_data = cuda.to_cpu(y.data)
    self.assertEqual(self.gy.shape, x_data.shape)

dataset/ETHPy150Open pfnet/chainer/tests/chainer_tests/functions_tests/pooling_tests/test_spatial_pyramid_pooling_2d.py TestSpatialPyramidPooling2D.check_forward/VarMisuse@82/111 `y_data`->`x_data`