Generate full docstring for `__call__` of Operator `op_name`.
(op_name, api="ops", args=None)
| 356 | |
| 357 | |
| 358 | def _docstring_generator_call(op_name, api="ops", args=None): |
| 359 | """ |
| 360 | Generate full docstring for `__call__` of Operator `op_name`. |
| 361 | """ |
| 362 | schema = _b.GetSchema(op_name) |
| 363 | if schema.IsDocPartiallyHidden(): |
| 364 | return "" |
| 365 | if schema.HasCallDox(): |
| 366 | ret = schema.GetCallDox() |
| 367 | elif schema.HasInputDox(): |
| 368 | ret = _docstring_prefix_from_inputs(op_name, api) |
| 369 | elif schema.CanUseAutoInputDox(): |
| 370 | ret = _docstring_prefix_auto(op_name, api) |
| 371 | else: |
| 372 | op_full_name, _, _ = _names._process_op_name(op_name) |
| 373 | ret = "See :meth:`nvidia.dali.ops." + op_full_name + "` class for complete information.\n" |
| 374 | if schema.AppendKwargsSection(): |
| 375 | # Kwargs section |
| 376 | tensor_kwargs = _get_kwargs(schema, api=api, args=args) |
| 377 | if tensor_kwargs: |
| 378 | ret += """ |
| 379 | Keyword Args |
| 380 | ------------ |
| 381 | """ |
| 382 | ret += tensor_kwargs |
| 383 | return ret |
| 384 | |
| 385 | |
| 386 | def _docstring_generator_fn(schema_name, api="fn", args=None): |
nothing calls this directly
no test coverage detected