fc_op has been generated as USE_NO_KERNEL_OP(fc) in pybind.h
Created by: tonyyang-svail
To reproduce: https://github.com/PaddlePaddle/Paddle/pull/9663
In pybind.h
// Generated by the paddle/fluid/operator/CMakeLists.txt. DO NOT EDIT!
...
USE_NO_KERNEL_OP(fc);
...
I suspect this is the cause of
[16:48:49] : [Step 1/1] ======================================================================
[16:48:49] : [Step 1/1] ERROR: test_check_grad_no_weight (test_fc_op.TestFCMKLDNNOp)
[16:48:49] : [Step 1/1] ----------------------------------------------------------------------
[16:48:49] : [Step 1/1] Traceback (most recent call last):
[16:48:49] : [Step 1/1] File "test_fc_op.py", line 68, in test_check_grad_no_weight
[16:48:49] : [Step 1/1] ['Input'], 'Out', max_relative_error=0.5, no_grad_set=set('W'))
[16:48:49] : [Step 1/1] File "op_test.py", line 393, in check_grad
[16:48:49] : [Step 1/1] user_defined_grads)
[16:48:49] : [Step 1/1] File "op_test.py", line 426, in check_grad_with_place
[16:48:49] : [Step 1/1] in_place=in_place) for input_to_check in inputs_to_check
[16:48:49] : [Step 1/1] File "op_test.py", line 155, in get_numeric_gradient
[16:48:49] : [Step 1/1] y_pos = get_output()
[16:48:49] : [Step 1/1] File "op_test.py", line 114, in get_output
[16:48:49] : [Step 1/1] op.run(scope, place)
[16:48:49] : [Step 1/1] EnforceNotMet: There are no kernels which are registered in the fc operator. at [/paddle/paddle/fluid/framework/operator.cc:505]
[16:48:49] : [Step 1/1] PaddlePaddle Call Stacks:
[16:48:49] : [Step 1/1] 0 0x7f27e3efef9cp paddle::platform::EnforceNotMet::EnforceNotMet(std::__exception_ptr::exception_ptr, char const*, int) + 572
[16:48:49] : [Step 1/1] 1 0x7f27e4c588d9p paddle::framework::OperatorWithKernel::RunImpl(paddle::framework::Scope const&, boost::variant<paddle::platform::CUDAPlace, paddle::platform::CPUPlace, paddle::platform::CUDAPinnedPlace, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_> const&) const + 4073
[16:48:49] : [Step 1/1] 2 0x7f27e3ee057fp
[16:48:49] : [Step 1/1] 3 0x7f27e3f19364p pybind11::cpp_function::dispatcher(_object*, _object*, _object*) + 1236
[16:48:49] : [Step 1/1] 4 0x4c37edp PyEval_EvalFrameEx + 31165
[16:48:49] : [Step 1/1] 5 0x4b9ab6p PyEval_EvalCodeEx + 774
[16:48:49] : [Step 1/1] 6 0x4c1e6fp PyEval_EvalFrameEx + 24639
[16:48:49] : [Step 1/1] 7 0x4b9ab6p PyEval_EvalCodeEx + 774
[16:48:49] : [Step 1/1] 8 0x4c16e7p PyEval_EvalFrameEx + 22711
[16:48:49] : [Step 1/1] 9 0x4b9ab6p PyEval_EvalCodeEx + 774
[16:48:49] : [Step 1/1] 10 0x4c16e7p PyEval_EvalFrameEx + 22711
[16:48:49] : [Step 1/1] 11 0x4b9ab6p PyEval_EvalCodeEx + 774
[16:48:49] : [Step 1/1] 12 0x4c16e7p PyEval_EvalFrameEx + 22711
[16:48:49] : [Step 1/1] 13 0x4c136fp PyEval_EvalFrameEx + 21823
[16:48:49] : [Step 1/1] 14 0x4b9ab6p PyEval_EvalCodeEx + 774
[16:48:49] : [Step 1/1] 15 0x4d55f3p
[16:48:49] : [Step 1/1] 16 0x4a577ep PyObject_Call + 62
[16:48:49] : [Step 1/1] 17 0x4bed3dp PyEval_EvalFrameEx + 12045
[16:48:49] : [Step 1/1] 18 0x4b9ab6p PyEval_EvalCodeEx + 774
[16:48:49] : [Step 1/1] 19 0x4d54b9p
[16:48:49] : [Step 1/1] 20 0x4eebeep
[16:48:49] : [Step 1/1] 21 0x4a577ep PyObject_Call + 62
[16:48:49] : [Step 1/1] 22 0x548253p
[16:48:49] : [Step 1/1] 23 0x4c15bfp PyEval_EvalFrameEx + 22415
[16:48:49] : [Step 1/1] 24 0x4b9ab6p PyEval_EvalCodeEx + 774
[16:48:49] : [Step 1/1] 25 0x4d55f3p
[16:48:49] : [Step 1/1] 26 0x4a577ep PyObject_Call + 62
[16:48:49] : [Step 1/1] 27 0x4bed3dp PyEval_EvalFrameEx + 12045
[16:48:49] : [Step 1/1] 28 0x4b9ab6p PyEval_EvalCodeEx + 774
[16:48:49] : [Step 1/1] 29 0x4d54b9p
[16:48:49] : [Step 1/1] 30 0x4eebeep
[16:48:49] : [Step 1/1] 31 0x4a577ep PyObject_Call + 62
[16:48:49] : [Step 1/1] 32 0x548253p
[16:48:49] : [Step 1/1] 33 0x4c15bfp PyEval_EvalFrameEx + 22415
[16:48:49] : [Step 1/1] 34 0x4b9ab6p PyEval_EvalCodeEx + 774
[16:48:49] : [Step 1/1] 35 0x4d55f3p
[16:48:49] : [Step 1/1] 36 0x4a577ep PyObject_Call + 62
[16:48:49] : [Step 1/1] 37 0x4bed3dp PyEval_EvalFrameEx + 12045
[16:48:49] : [Step 1/1] 38 0x4b9ab6p PyEval_EvalCodeEx + 774
[16:48:49] : [Step 1/1] 39 0x4d54b9p
[16:48:49] : [Step 1/1] 40 0x4eebeep
[16:48:49] : [Step 1/1] 41 0x4a577ep PyObject_Call + 62
[16:48:49] : [Step 1/1] 42 0x548253p
[16:48:49] : [Step 1/1] 43 0x4c15bfp PyEval_EvalFrameEx + 22415
[16:48:49] : [Step 1/1] 44 0x4b9ab6p PyEval_EvalCodeEx + 774
[16:48:49] : [Step 1/1] 45 0x4d55f3p
[16:48:49] : [Step 1/1] 46 0x4a577ep PyObject_Call + 62
[16:48:49] : [Step 1/1] 47 0x4bed3dp PyEval_EvalFrameEx + 12045
[16:48:49] : [Step 1/1] 48 0x4b9ab6p PyEval_EvalCodeEx + 774
[16:48:49] : [Step 1/1] 49 0x4d54b9p
[16:48:49] : [Step 1/1] 50 0x4eebeep
[16:48:49] : [Step 1/1] 51 0x4a577ep PyObject_Call + 62
[16:48:49] : [Step 1/1] 52 0x548253p
[16:48:49] : [Step 1/1] 53 0x4c15bfp PyEval_EvalFrameEx + 22415
[16:48:49] : [Step 1/1] 54 0x4c136fp PyEval_EvalFrameEx + 21823
[16:48:49] : [Step 1/1] 55 0x4c136fp PyEval_EvalFrameEx + 21823
[16:48:49] : [Step 1/1] 56 0x4b9ab6p PyEval_EvalCodeEx + 774
[16:48:49] : [Step 1/1] 57 0x4d55f3p
[16:48:49] : [Step 1/1] 58 0x4eebeep
[16:48:49] : [Step 1/1] 59 0x4ee7f6p
[16:48:49] : [Step 1/1] 60 0x4aa9abp
[16:48:49] : [Step 1/1] 61 0x4c15bfp PyEval_EvalFrameEx + 22415
[16:48:49] : [Step 1/1] 62 0x4b9ab6p PyEval_EvalCodeEx + 774
[16:48:49] : [Step 1/1] 63 0x4bfa8dp PyEval_EvalFrameEx + 15453
[16:48:49] : [Step 1/1] 64 0x4b9ab6p PyEval_EvalCodeEx + 774
[16:48:49] : [Step 1/1] 65 0x4c16e7p PyEval_EvalFrameEx + 22711
[16:48:49] : [Step 1/1] 66 0x4b9ab6p PyEval_EvalCodeEx + 774
[16:48:49] : [Step 1/1] 67 0x4d54b9p
[16:48:49] : [Step 1/1] 68 0x4a577ep PyObject_Call + 62
[16:48:49] : [Step 1/1] 69 0x519a46p
[16:48:49] : [Step 1/1] 70 0x493b06p Py_Main + 1590
[16:48:49] : [Step 1/1] 71 0x7f28101d8830p __libc_start_main + 240
[16:48:49] : [Step 1/1] 72 0x4933e9p _start + 41
[16:48:49] : [Step 1/1]
[16:48:49] : [Step 1/1]
[16:48:49] : [Step 1/1] ======================================================================
[16:48:49] : [Step 1/1] ERROR: test_check_grad_normal (test_fc_op.TestFCMKLDNNOp)
[16:48:49] : [Step 1/1] ----------------------------------------------------------------------
[16:48:49] : [Step 1/1] Traceback (most recent call last):
[16:48:49] : [Step 1/1] File "test_fc_op.py", line 64, in test_check_grad_normal
[16:48:49] : [Step 1/1] self.check_grad(set(['Input', 'W']), 'Out', max_relative_error=0.9)
[16:48:49] : [Step 1/1] File "op_test.py", line 393, in check_grad
[16:48:49] : [Step 1/1] user_defined_grads)
[16:48:49] : [Step 1/1] File "op_test.py", line 426, in check_grad_with_place
[16:48:49] : [Step 1/1] in_place=in_place) for input_to_check in inputs_to_check
[16:48:49] : [Step 1/1] File "op_test.py", line 155, in get_numeric_gradient
[16:48:49] : [Step 1/1] y_pos = get_output()
[16:48:49] : [Step 1/1] File "op_test.py", line 114, in get_output
[16:48:49] : [Step 1/1] op.run(scope, place)
[16:48:49] : [Step 1/1] EnforceNotMet: There are no kernels which are registered in the fc operator. at [/paddle/paddle/fluid/framework/operator.cc:505]
[16:48:49] : [Step 1/1] PaddlePaddle Call Stacks:
[16:48:49] : [Step 1/1] 0 0x7f27e3efef9cp paddle::platform::EnforceNotMet::EnforceNotMet(std::__exception_ptr::exception_ptr, char const*, int) + 572
[16:48:49] : [Step 1/1] 1 0x7f27e4c588d9p paddle::framework::OperatorWithKernel::RunImpl(paddle::framework::Scope const&, boost::variant<paddle::platform::CUDAPlace, paddle::platform::CPUPlace, paddle::platform::CUDAPinnedPlace, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_> const&) const + 4073
[16:48:49] : [Step 1/1] 2 0x7f27e3ee057fp
[16:48:49] : [Step 1/1] 3 0x7f27e3f19364p pybind11::cpp_function::dispatcher(_object*, _object*, _object*) + 1236
[16:48:49] : [Step 1/1] 4 0x4c37edp PyEval_EvalFrameEx + 31165
[16:48:49] : [Step 1/1] 5 0x4b9ab6p PyEval_EvalCodeEx + 774
[16:48:49] : [Step 1/1] 6 0x4c1e6fp PyEval_EvalFrameEx + 24639
[16:48:49] : [Step 1/1] 7 0x4b9ab6p PyEval_EvalCodeEx + 774
[16:48:49] : [Step 1/1] 8 0x4c16e7p PyEval_EvalFrameEx + 22711
[16:48:49] : [Step 1/1] 9 0x4b9ab6p PyEval_EvalCodeEx + 774
[16:48:49] : [Step 1/1] 10 0x4c16e7p PyEval_EvalFrameEx + 22711
[16:48:49] : [Step 1/1] 11 0x4b9ab6p PyEval_EvalCodeEx + 774
[16:48:49] : [Step 1/1] 12 0x4c16e7p PyEval_EvalFrameEx + 22711
[16:48:49] : [Step 1/1] 13 0x4c136fp PyEval_EvalFrameEx + 21823
[16:48:49] : [Step 1/1] 14 0x4b9ab6p PyEval_EvalCodeEx + 774
[16:48:49] : [Step 1/1] 15 0x4d55f3p
[16:48:49] : [Step 1/1] 16 0x4a577ep PyObject_Call + 62
[16:48:49] : [Step 1/1] 17 0x4bed3dp PyEval_EvalFrameEx + 12045
[16:48:49] : [Step 1/1] 18 0x4b9ab6p PyEval_EvalCodeEx + 774
[16:48:49] : [Step 1/1] 19 0x4d54b9p
[16:48:49] : [Step 1/1] 20 0x4eebeep
[16:48:49] : [Step 1/1] 21 0x4a577ep PyObject_Call + 62
[16:48:49] : [Step 1/1] 22 0x548253p
[16:48:49] : [Step 1/1] 23 0x4c15bfp PyEval_EvalFrameEx + 22415
[16:48:49] : [Step 1/1] 24 0x4b9ab6p PyEval_EvalCodeEx + 774
[16:48:49] : [Step 1/1] 25 0x4d55f3p
[16:48:49] : [Step 1/1] 26 0x4a577ep PyObject_Call + 62
[16:48:49] : [Step 1/1] 27 0x4bed3dp PyEval_EvalFrameEx + 12045
[16:48:49] : [Step 1/1] 28 0x4b9ab6p PyEval_EvalCodeEx + 774
[16:48:49] : [Step 1/1] 29 0x4d54b9p
[16:48:49] : [Step 1/1] 30 0x4eebeep
[16:48:49] : [Step 1/1] 31 0x4a577ep PyObject_Call + 62
[16:48:49] : [Step 1/1] 32 0x548253p
[16:48:49] : [Step 1/1] 33 0x4c15bfp PyEval_EvalFrameEx + 22415
[16:48:49] : [Step 1/1] 34 0x4b9ab6p PyEval_EvalCodeEx + 774
[16:48:49] : [Step 1/1] 35 0x4d55f3p
[16:48:49] : [Step 1/1] 36 0x4a577ep PyObject_Call + 62
[16:48:49] : [Step 1/1] 37 0x4bed3dp PyEval_EvalFrameEx + 12045
[16:48:49] : [Step 1/1] 38 0x4b9ab6p PyEval_EvalCodeEx + 774
[16:48:49] : [Step 1/1] 39 0x4d54b9p
[16:48:49] : [Step 1/1] 40 0x4eebeep
[16:48:49] : [Step 1/1] 41 0x4a577ep PyObject_Call + 62
[16:48:49] : [Step 1/1] 42 0x548253p
[16:48:49] : [Step 1/1] 43 0x4c15bfp PyEval_EvalFrameEx + 22415
[16:48:49] : [Step 1/1] 44 0x4b9ab6p PyEval_EvalCodeEx + 774
[16:48:49] : [Step 1/1] 45 0x4d55f3p
[16:48:49] : [Step 1/1] 46 0x4a577ep PyObject_Call + 62
[16:48:49] : [Step 1/1] 47 0x4bed3dp PyEval_EvalFrameEx + 12045
[16:48:49] : [Step 1/1] 48 0x4b9ab6p PyEval_EvalCodeEx + 774
[16:48:49] : [Step 1/1] 49 0x4d54b9p
[16:48:49] : [Step 1/1] 50 0x4eebeep
[16:48:49] : [Step 1/1] 51 0x4a577ep PyObject_Call + 62
[16:48:49] : [Step 1/1] 52 0x548253p
[16:48:49] : [Step 1/1] 53 0x4c15bfp PyEval_EvalFrameEx + 22415
[16:48:49] : [Step 1/1] 54 0x4c136fp PyEval_EvalFrameEx + 21823
[16:48:49] : [Step 1/1] 55 0x4c136fp PyEval_EvalFrameEx + 21823
[16:48:49] : [Step 1/1] 56 0x4b9ab6p PyEval_EvalCodeEx + 774
[16:48:49] : [Step 1/1] 57 0x4d55f3p
[16:48:49] : [Step 1/1] 58 0x4eebeep
[16:48:49] : [Step 1/1] 59 0x4ee7f6p
[16:48:49] : [Step 1/1] 60 0x4aa9abp
[16:48:49] : [Step 1/1] 61 0x4c15bfp PyEval_EvalFrameEx + 22415
[16:48:49] : [Step 1/1] 62 0x4b9ab6p PyEval_EvalCodeEx + 774
[16:48:49] : [Step 1/1] 63 0x4bfa8dp PyEval_EvalFrameEx + 15453
[16:48:49] : [Step 1/1] 64 0x4b9ab6p PyEval_EvalCodeEx + 774
[16:48:49] : [Step 1/1] 65 0x4c16e7p PyEval_EvalFrameEx + 22711
[16:48:49] : [Step 1/1] 66 0x4b9ab6p PyEval_EvalCodeEx + 774
[16:48:49] : [Step 1/1] 67 0x4d54b9p
[16:48:49] : [Step 1/1] 68 0x4a577ep PyObject_Call + 62
[16:48:49] : [Step 1/1] 69 0x519a46p
[16:48:49] : [Step 1/1] 70 0x493b06p Py_Main + 1590
[16:48:49] : [Step 1/1] 71 0x7f28101d8830p __libc_start_main + 240
[16:48:49] : [Step 1/1] 72 0x4933e9p _start + 41
[16:48:49] : [Step 1/1]
[16:48:49] : [Step 1/1]