generate_activation_fn

paddle.fluid.layers.layer_function_generator. generate_activation_fn ( op_type )

Register the Python layer for an Operator without Attribute.

Parameters

op_type – The name of the operator to be created.

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