Implement the GPU kernel of fc operator (#19687)
* Refine the codes related to fc op. * Add GPU implementation for fc functor. * Apply fc_fuse_pass in GPU inference. test=develop * Change the cmake for fc op. * Change PADDLE_ENFORCE to PADDLE_ENFORCE_EQ. * Add an attribute to set the activation type in fc_op. * Enhance the unittest of fc_op. test=develop * Remove the declaration of FCOpGrad back to the header file. test=develop * Set default value for newly added arguments in test_fc_op. test=develop
Showing
paddle/fluid/operators/math/fc.cu
0 → 100644
paddle/fluid/operators/math/fc.h
0 → 100644
想要评论请 注册 或 登录