Skip to content

Commit 0503ad6

Browse files
authored
Some fixes in Python level (#532)
1 parent f8ef20a commit 0503ad6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

dpnp/dpnp_iface_arraycreation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,12 @@ def arange(start, stop=None, step=1, dtype=None):
115115
[3, 5]
116116
117117
"""
118-
if use_origin_backend():
118+
if not use_origin_backend():
119119
if not isinstance(start, int):
120120
pass
121-
if not isinstance(stop, int) or stop is not None:
121+
elif not isinstance(stop, int) or stop is not None:
122122
pass
123-
if not isinstance(step, int) or step is not None:
123+
elif not isinstance(step, int) or step is not None:
124124
pass
125125
else:
126126
if dtype is None:

dpnp/dpnp_iface_trigonometric.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ def exp(x1):
514514
[1.0, 2.718281828, 7.389056099]
515515
516516
"""
517-
if use_origin_backend(x1):
517+
if not use_origin_backend(x1):
518518
if not isinstance(x1, dparray):
519519
pass
520520
else:
@@ -662,7 +662,7 @@ def log(x1):
662662
[0.0, 1.0, 2.0, -inf]
663663
664664
"""
665-
if use_origin_backend(x1):
665+
if not use_origin_backend(x1):
666666
if not isinstance(x1, dparray):
667667
pass
668668
else:

0 commit comments

Comments
 (0)