Skip to content

Implemented nin and nout property for elementwise functions #1712

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 29 commits into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
9aed47a
Implemented nin and nout property for elementwise functions
npolina4 Feb 15, 2024
ee25e14
address comments
npolina4 Feb 20, 2024
a249f46
Merge branch 'master' into update_element_wise_func
npolina4 Feb 20, 2024
fd9d272
Apply pylint
npolina4 Feb 21, 2024
7f7aedc
fix tests
npolina4 Feb 21, 2024
f90bc00
Deleted debugging print
npolina4 Feb 21, 2024
9bbfde2
Added TypeError for functions that do not support bool dtype
npolina4 Feb 23, 2024
88b5ec9
Merge branch 'master' into update_element_wise_func
npolina4 Feb 23, 2024
6ed744a
fix typo
npolina4 Feb 24, 2024
07bf71c
Fixed docstrings for element-wise functions
npolina4 Mar 21, 2024
9ade2ca
Merge branch 'master' into update_element_wise_func
npolina4 Mar 21, 2024
4fc2c9e
Merge branch 'master' into update_element_wise_func
antonwolfy Mar 23, 2024
0e3ea38
Remove call_origin for element-wise functions
npolina4 Mar 27, 2024
78dcaf7
address comments
npolina4 Mar 27, 2024
fd60107
Merge branch 'master' into update_element_wise_func
npolina4 Mar 27, 2024
d907016
Update dpnp_elementwise_common.py
npolina4 Mar 27, 2024
1a9b418
Fix linalg tests. Fix element-wise docs
npolina4 Mar 27, 2024
76bc8b6
address comments
npolina4 Mar 28, 2024
433f30e
Merge branch 'master' into update_element_wise_func
antonwolfy Mar 28, 2024
4281f08
Fix tests for Iris Xe
npolina4 Mar 28, 2024
8f2ef80
Improve code coverage
npolina4 Mar 29, 2024
b2a0fe6
Merge branch 'master' into update_element_wise_func
npolina4 Mar 29, 2024
fc9d00f
Merge branch 'master' into update_element_wise_func
antonwolfy Apr 2, 2024
74d4bce
Merge branch 'master' into update_element_wise_func
npolina4 Apr 4, 2024
fd6b68c
Update dpnp/dpnp_algo/dpnp_elementwise_common.py
npolina4 Apr 4, 2024
9b8c7c0
fix pre-commit
npolina4 Apr 4, 2024
615d56e
Merge branch 'master' into update_element_wise_func
npolina4 Apr 9, 2024
03ea526
fix typo
npolina4 Apr 9, 2024
8270ab6
Added missing call to _mkl_round_to_call
npolina4 Apr 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,4 @@ repos:
"--disable=redefined-builtin",
"--disable=unused-wildcard-import"
]
files: '^dpnp/dpnp_iface(|_arraycreation|_counting|_indexing|_libmath|_linearalgebra|_manipulation|_nanfunctions|_searching|_sorting|_statistics|_types).py$'
files: '^dpnp/dpnp_iface.*'
14 changes: 14 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config

from sphinx.ext.autodoc import FunctionDocumenter

from dpnp.dpnp_algo.dpnp_elementwise_common import DPNPBinaryFunc, DPNPUnaryFunc

try:
import comparison_generator
except ImportError:
Expand Down Expand Up @@ -188,7 +192,17 @@

# -- Extension configuration -------------------------------------------------


# -- Options for todo extension ----------------------------------------------
def _can_document_member(member, *args, **kwargs):
if isinstance(member, (DPNPBinaryFunc, DPNPUnaryFunc)):
return True
return orig(member, *args, **kwargs)


documenter = FunctionDocumenter
orig = documenter.can_document_member
documenter.can_document_member = _can_document_member

autosummary_generate = True

Expand Down
Loading