generate_inplace_fn

paddle.fluid.layers.layer_function_generator. generate_inplace_fn ( inplace_op_type )

Register the Python layer for an Inplace Operator without Attribute.

Parameters

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.