generate_layer_fn

paddle.fluid.layers.layer_function_generator. generate_layer_fn ( op_type ) [source]

Register the Python layer for an Operator.

Parameters

op_type – The name of the operator to be created.

This function takes in the operator type (sigmoid, mean , average etc) and creates the operator functionality.