{"action":"created","issue":{"url":"https://api.github.com/repos/BVLC/caffe/issues/1252","labels_url":"https://api.github.com/repos/BVLC/caffe/issues/1252/labels{/name}","comments_url":"https://api.github.com/repos/BVLC/caffe/issues/1252/comments","events_url":"https://api.github.com/repos/BVLC/caffe/issues/1252/events","html_url":"https://github.com/BVLC/caffe/issues/1252","id":45449757,"number":1252,"title":"TestPowerGradientShiftZero, TestPowerGradient fail with certain boost","user":{"login":"shelhamer","id":311113,"avatar_url":"https://avatars.githubusercontent.com/u/311113?v=3","gravatar_id":"","url":"https://api.github.com/users/shelhamer","html_url":"https://github.com/shelhamer","followers_url":"https://api.github.com/users/shelhamer/followers","following_url":"https://api.github.com/users/shelhamer/following{/other_user}","gists_url":"https://api.github.com/users/shelhamer/gists{/gist_id}","starred_url":"https://api.github.com/users/shelhamer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shelhamer/subscriptions","organizations_url":"https://api.github.com/users/shelhamer/orgs","repos_url":"https://api.github.com/users/shelhamer/repos","events_url":"https://api.github.com/users/shelhamer/events{/privacy}","received_events_url":"https://api.github.com/users/shelhamer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/BVLC/caffe/labels/compatibility","name":"compatibility","color":"fbe58a"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2014-10-10T06:15:57Z","updated_at":"2015-01-31T14:42:47Z","closed_at":null,"body":"The `PowerLayer::Backward` checks seem to fail with certain versions of boost on OS X / ubuntu.\r\n\r\nboost 1.55 passes, but boost 1.56 and and 1.57 fail.\r\n\r\n```\r\n[ RUN      ] PowerLayerTest/0.TestPowerGradientShiftZero\r\n./include/caffe/test/test_gradient_check_util.hpp:166: Failure\r\nThe difference between computed_gradient and estimated_gradient is 0.16171693801879883, which exceeds threshold_ * scale, where\r\ncomputed_gradient evaluates to 6.6543664932250977,\r\nestimated_gradient evaluates to 6.8160834312438965, and\r\nthreshold_ * scale evaluates to 0.068160831928253174.\r\ndebug: (top_id, top_data_id, blob_id, feat_id)=0,65,0,65; feat = 0.027440188452601433; objective+ = 0.55363553762435913; objective- = 0.41731387376785278\r\n[  FAILED  ] PowerLayerTest/0.TestPowerGradientShiftZero, where TypeParam = caffe::FloatCPU (3 ms)\r\n\r\n#######################################################################################################################\r\n[ RUN      ] PowerLayerTest/1.TestPowerGradientShiftZero\r\n./include/caffe/test/test_gradient_check_util.hpp:166: Failure\r\nThe difference between computed_gradient and estimated_gradient is 0.66645549482483268, which exceeds threshold_ * scale, where\r\ncomputed_gradient evaluates to 9.0545713301684909,\r\nestimated_gradient evaluates to 9.7210268249933236, and\r\nthreshold_ * scale evaluates to 0.097210268249933243.\r\ndebug: (top_id, top_data_id, blob_id, feat_id)=0,66,0,66; feat = 0.016829367669263143; objective+ = 0.48941214282974049; objective- = 0.29499160632987403\r\n./include/caffe/test/test_gradient_check_util.hpp:166: Failure\r\nThe difference between computed_gradient and estimated_gradient is 0.48462038369962279, which exceeds threshold_ * scale, where\r\ncomputed_gradient evaluates to 8.4754232528829139,\r\nestimated_gradient evaluates to 8.9600436365825367, and\r\nthreshold_ * scale evaluates to 0.089600436365825362.\r\ndebug: (top_id, top_data_id, blob_id, feat_id)=0,71,0,71; feat = 0.01869104873835549; objective+ = 0.50171265479916738; objective- = 0.32251178206751663\r\n./include/caffe/test/test_gradient_check_util.hpp:166: Failure\r\nThe difference between computed_gradient and estimated_gradient is 0.24489777273781588, which exceeds threshold_ * scale, where\r\ncomputed_gradient evaluates to 7.3061654292184715,\r\nestimated_gradient evaluates to 7.5510632019562873, and\r\nthreshold_ * scale evaluates to 0.075510632019562873.\r\ndebug: (top_id, top_data_id, blob_id, feat_id)=0,99,0,99; feat = 0.023657563288965969; objective+ = 0.53224239845290788; objective- = 0.38122113441378214\r\n[  FAILED  ] PowerLayerTest/1.TestPowerGradientShiftZero, where TypeParam = caffe::DoubleCPU (4 ms)\r\n\r\n#######################################################################################################################\r\n[ RUN      ] PowerLayerTest/1.TestPowerGradient\r\n./include/caffe/test/test_gradient_check_util.hpp:166: Failure\r\nThe difference between computed_gradient and estimated_gradient is 1.206900511134485, which exceeds threshold_ * scale, where\r\ncomputed_gradient evaluates to 10.15816285551514,\r\nestimated_gradient evaluates to 11.365063366649625, and\r\nthreshold_ * scale evaluates to 0.11365063366649626.\r\ndebug: (top_id, top_data_id, blob_id, feat_id)=0,57,0,57; feat = 2.9055876775560447; objective+ = 0.46979585546340097; objective- = 0.24249458813040844\r\n[  FAILED  ] PowerLayerTest/1.TestPowerGradient, where TypeParam = caffe::DoubleCPU (3 ms)\r\n```"},"comment":{"url":"https://api.github.com/repos/BVLC/caffe/issues/comments/72320303","html_url":"https://github.com/BVLC/caffe/issues/1252#issuecomment-72320303","issue_url":"https://api.github.com/repos/BVLC/caffe/issues/1252","id":72320303,"user":{"login":"lazywei","id":2840571,"avatar_url":"https://avatars.githubusercontent.com/u/2840571?v=3","gravatar_id":"","url":"https://api.github.com/users/lazywei","html_url":"https://github.com/lazywei","followers_url":"https://api.github.com/users/lazywei/followers","following_url":"https://api.github.com/users/lazywei/following{/other_user}","gists_url":"https://api.github.com/users/lazywei/gists{/gist_id}","starred_url":"https://api.github.com/users/lazywei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lazywei/subscriptions","organizations_url":"https://api.github.com/users/lazywei/orgs","repos_url":"https://api.github.com/users/lazywei/repos","events_url":"https://api.github.com/users/lazywei/events{/privacy}","received_events_url":"https://api.github.com/users/lazywei/received_events","type":"User","site_admin":false},"created_at":"2015-01-31T14:42:47Z","updated_at":"2015-01-31T14:42:47Z","body":"Confirm the same problem here. CentOS6, boost 1.57, mkl-203\r\n\r\n```\r\n[----------] Global test environment tear-down\r\n[==========] 838 tests from 169 test cases ran. (98290 ms total)\r\n[  PASSED  ] 832 tests.\r\n[  FAILED  ] 6 tests, listed below:\r\n[  FAILED  ] PowerLayerTest/0.TestPowerGradientShiftZero, where TypeParam = caffe::FloatCPU\r\n[  FAILED  ] PowerLayerTest/1.TestPowerGradient, where TypeParam = caffe::DoubleCPU\r\n[  FAILED  ] PowerLayerTest/1.TestPowerGradientShiftZero, where TypeParam = caffe::DoubleCPU\r\n[  FAILED  ] PowerLayerTest/2.TestPowerGradientShiftZero, where TypeParam = caffe::FloatGPU\r\n[  FAILED  ] PowerLayerTest/3.TestPowerGradient, where TypeParam = caffe::DoubleGPU\r\n[  FAILED  ] PowerLayerTest/3.TestPowerGradientShiftZero, where TypeParam = caffe::DoubleGPU\r\n```"}}