A lrn_op test fail on CI
Created by: JiayiFeng
[05:13:15] : [Step 1/1] ======================================================================
[05:13:15] : [Step 1/1] FAIL: test_check_grad_normal (test_lrn_op.TestLRNMKLDNNOpWithIsTest)
[05:13:15] : [Step 1/1] ----------------------------------------------------------------------
[05:13:15] : [Step 1/1] Traceback (most recent call last):
[05:13:15] : [Step 1/1] File "test_lrn_op.py", line 116, in test_check_grad_normal
[05:13:15] : [Step 1/1] self.assertRaises(AttributeError, check_raise_is_test)
[05:13:15] : [Step 1/1] AssertionError: AttributeError not raised
[05:13:15] : [Step 1/1]
[05:13:15] : [Step 1/1] ----------------------------------------------------------------------
[05:13:15] : [Step 1/1] Ran 1400 tests in 165.524s
[05:13:15] : [Step 1/1]
[05:13:15] : [Step 1/1] FAILED (failures=1)
This test is used to check whether an exception is thrown correctly: https://github.com/PaddlePaddle/Paddle/blob/24100e1fb8d0380178a2722517f141fe463c5356/python/paddle/fluid/tests/unittests/test_lrn_op.py#L100-L116
However, only the MKLDNN kernel may throw this exception. So if there is no MKLDNN on the test machine, the test fails.