paddle.fluid.layers.layer_function_generator. templatedoc ( op_type=None ) [source]

Decorator of layer function. It will use the docstring from the layer function as the template. The template arguments are:

  • ${comment}: The operator comment written in CPP.

  • ${{name}_comment}: The comment of ${name} written with AddAttr, AddOutput,

    and AddInput. The ${name} is Python snake style. i.e., xxx_xxx.

  • ${{name}_type}: The type of ${name}.


Decorated function.