-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_LayerGrad fails with a certain chance #8480
Comments
Able to reproduce now with Could whoever on duty today follow up? Thanks! I think we need to set threshold so that the chance of a failing test is really low. Currently it's probably too high.
|
Happens to me too. I had to create dummy commits to re-run tests twice. |
close due |
If I do CTest in Paddle, the test case 'test_LayerGrad' fails with a certain chance: different runs give inconsistent results. Sometimes it succeeds while sometimes it fails with a segfault error. Has anyone observed the same behavior?
45: I0221 18:51:27.907557 7077 LayerGradUtil.cpp:684] layer_type=pool useGpu=0
45: I0221 18:51:27.919493 7077 LayerGradUtil.cpp:724] cost 39190.1
45: I0221 18:51:27.938329 7077 LayerGradUtil.cpp:43] pool layer_0 step=3.93599e-06 cost1=39190.3 cost2=39190 true_delta=0.390625 analytic_delta=0.391901 diff=-0.0032571
45: I0221 18:51:27.938544 7077 LayerGradUtil.cpp:684] layer_type=pool useGpu=0
45: I0221 18:51:27.949440 7077 LayerGradUtil.cpp:724] cost 35550
45: I0221 18:51:27.967047 7077 LayerGradUtil.cpp:43] pool layer_0 step=4.38988e-06 cost1=35550.1 cost2=35549.8 true_delta=0.355469 analytic_delta=0.3555 diff=-8.67664e-05
45: I0221 18:51:27.967440 7077 LayerGradUtil.cpp:684] layer_type=pool useGpu=0
45: I0221 18:51:27.973249 7077 LayerGradUtil.cpp:724] cost 46682.2
45: I0221 18:51:27.990454 7077 LayerGradUtil.cpp:43] pool layer_0 step=1e-06 cost1=46682.5 cost2=46681.9 true_delta=0.597656 analytic_delta=0.596637 diff=0.00170841
45: I0221 18:51:27.990739 7077 LayerGradUtil.cpp:684] layer_type=pool useGpu=0
45: I0221 18:51:27.997279 7077 LayerGradUtil.cpp:724] cost 46688.5
45: *** Aborted at 1519267887 (unix time) try "date -d @1519267887" if you are using GNU date ***
45: PC: @ 0x0 (unknown)
45: *** SIGSEGV (@0x8) received by PID 7077 (TID 0x7fbc54fe38c0) from PID 8; stack trace: ***
45: @ 0x7fbc54be8340 (unknown)
45: @ 0x8af57a paddle::CpuMatrix::maxPoolBackward()
45: @ 0x6c2154 paddle::MaxPoolWithMaskLayer::backward()
45: @ 0x637e95 paddle::testLayerGradKernel()
45: @ 0x638ed0 paddle::testLayerGrad()
45: @ 0x619976 testPoolLayer()
45: @ 0x61a04c Layer_PoolLayer_Test::TestBody()
45: @ 0xb7d823 testing::internal::HandleExceptionsInMethodIfSupported<>()
45: @ 0xb70587 testing::Test::Run()
45: @ 0xb7062e testing::TestInfo::Run()
45: @ 0xb70e6d testing::TestCase::Run()
45: @ 0xb74c65 testing::internal::UnitTestImpl::RunAllTests()
45: @ 0xb74f10 testing::UnitTest::Run()
45: @ 0x5f06a4 main
45: @ 0x7fbc49f28ec5 __libc_start_main
45: @ 0x60cfd0 (unknown)
45: @ 0x0 (unknown)
1/1 Test #45: test_LayerGrad ...................***Exception: SegFault 9.94 sec
The text was updated successfully, but these errors were encountered: