MCPcopy Create free account
hub / github.com/NVIDIA/DALI / _docstring_prefix_from_inputs

Function _docstring_prefix_from_inputs

dali/python/nvidia/dali/ops/_docs.py:317–329  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

315
316
317def _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
332def _docstring_prefix_auto(op_name, api="fn"):

Callers 1

Calls 2

_call_descriptionFunction · 0.85
_get_inputs_docFunction · 0.85

Tested by

no test coverage detected