Generate start of the docstring for `__call__` of Operator `op_name` assuming the docstrings were provided for all inputs separately Returns list of `Args` in appropriate section
(op_name, api)
| 315 | |
| 316 | |
| 317 | def _docstring_prefix_from_inputs(op_name, api): |
| 318 | """ |
| 319 | Generate start of the docstring for `__call__` of Operator `op_name` |
| 320 | assuming the docstrings were provided for all inputs separately |
| 321 | |
| 322 | Returns list of `Args` in appropriate section |
| 323 | """ |
| 324 | schema = _b.GetSchema(op_name) |
| 325 | # __call__ docstring |
| 326 | ret = f"\n{_call_description(api)}.\n" |
| 327 | # Args section |
| 328 | ret += _get_inputs_doc(schema, api) |
| 329 | return ret |
| 330 | |
| 331 | |
| 332 | def _docstring_prefix_auto(op_name, api="fn"): |
no test coverage detected