generate_activation_fn¶
- paddle.fluid.layers.layer_function_generator. generate_activation_fn ( op_type ) [source]
-
Register the Python layer for an Operator without Attribute. :param 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.