Paddle
Paddle copied to clipboard
Need to document layers
All our layers are currently defined as Python functions in layers.py. In the future, when we are going to have more layers, we might have more modules.
At the right time, we need to document these layers by adding formal Python function comments, so could Sphinx automatically generate the documentation.
Thanks for creating the issue @wangkuiyi . I have a few questions:
- Do we add the comments to this file at the moment ?
- If we do, what would be the preferred way of doing so :
- Add in the beginning of the function, eg:
# # This function executes the following blob of code. # def fn(att): <code here> - Add after function definition, eg:
def fn(att): # # This function executes the following blob of code. # <code here>
- Add in the beginning of the function, eg:
As we have API doc standard and a list of API doc jobs now, this issue could be closed.