You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The sphinx html generated from the docstring for tensor functions is a bit weird. The "->" in the description looks awkward and seems like a typo. Is it the intended rendering? E.g.,
broadcast_to()
-> usm_ndarray Broadcast an array to a new shape; returns the broadcasted array as a view.
Activity
Closes gh-1114
diptorupd commentedon Mar 14, 2023
The issue stems from how dpctl's documentation generation script extracts the summary line from a docstring in case a signature is specified.
The following logic is the culprit:
generate_rst.py:dpctl/docs/generate_rst.py
Line 378 in 8f828f2
The function assumes that the closing parenthesis signifies the end of the signature and does not check for an
->followed by the return type.Merge pull request #1123 from IntelPython/tensor-docs-cleanup