generate_inplace_fn

paddle.fluid.layers.layer_function_generator. generate_inplace_fn ( inplace_op_type ) [source]

Register the Python layer for an Inplace Operator without Attribute. :param inplace_op_type: The name of the inplace operator to be created.

This function takes in the inplace operator type (exp_ , ceil_ etc) and creates the operator functionality.