load_op_library( lib_filename )
Load a dynamic library, including custom operators and kernels. When library is loaded, ops and kernels registered in the library will be available in PaddlePaddle main process. Please note, the type of custom operators can’t have the same type with the existing operators in the framework.
lib_filename (str) – name of dynamic library.
new registered custom op names.
- Return type
import paddle.fluid as fluid #fluid.load_op_library('custom_op.so')