

def test_call_cudnn_forward(self):
    with mock.patch('cupy.cudnn.cudnn.poolingForward') as func:
        self.forward()
        func.assertEqual(func.called, self.use_cudnn)

dataset/ETHPy150Open pfnet/chainer/tests/chainer_tests/functions_tests/pooling_tests/test_spatial_pyramid_pooling_2d.py TestMaxPooling2DCudnnCall.test_call_cudnn_forward/VarMisuse@28/47 `self`->`func`