Skip to content

Commit

Permalink
feat(testing): support all dtypes by default when a new version relea… (
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulasiraj authored Oct 9, 2023
1 parent 686ba2e commit d166150
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ivy/functional/ivy/data_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,14 @@ def _get_dtypes(fn, complement=True):
if isinstance(dtypes, dict):
dtypes = dtypes.get(ivy.current_backend_str(), base)
ivy.utils.assertions.check_isinstance(dtypes, tuple)
if dtypes == ():
dtypes = base
logging.warning(
"All valid dtypes will be used because no supported dtypes"
" detected, perhaps the unsupported dtypes"
" decorators need to updated with the"
" latest version"
)
dtypes = list(dtypes)
typeset_list = []
for i, dtype in reversed(list(enumerate(dtypes))):
Expand Down

0 comments on commit d166150

Please sign in to comment.