Skip to content

Commit 382f144

Browse files
Move dpnp_iface exports to __init__.py
1 parent 47d599e commit 382f144

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

dpnp/__init__.py

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@
6767
from .dpnp_array_api_info import __array_namespace_info__
6868
from .dpnp_flatiter import flatiter as flatiter
6969
from .dpnp_iface_types import *
70-
from .dpnp_iface import *
71-
from .dpnp_iface import __all__ as _iface__all__
7270
from .dpnp_iface_utils import *
7371
from .dpnp_iface_utils import __all__ as _ifaceutils__all__
7472
from ._version import get_versions
@@ -493,9 +491,30 @@
493491
var,
494492
)
495493

494+
# -----------------------------------------------------------------------------
495+
# DPNP iface functions
496+
# -----------------------------------------------------------------------------
497+
from .dpnp_iface import (
498+
are_same_logical_tensors,
499+
asnumpy,
500+
as_usm_ndarray,
501+
check_limitations,
502+
check_supported_arrays_type,
503+
default_float_type,
504+
get_dpnp_descriptor,
505+
get_include,
506+
get_normalized_queue_device,
507+
get_result_array,
508+
get_usm_ndarray,
509+
get_usm_ndarray_or_scalar,
510+
is_cuda_backend,
511+
is_supported_array_or_scalar,
512+
is_supported_array_type,
513+
synchronize_array_data,
514+
)
515+
496516

497-
__all__ = _iface__all__
498-
__all__ += _ifaceutils__all__
517+
__all__ = _ifaceutils__all__
499518

500519
# add submodules
501520
__all__ += ["exceptions", "fft", "linalg", "random", "scipy"]

dpnp/dpnp_iface.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -53,25 +53,6 @@
5353
import dpnp
5454
from dpnp.dpnp_array import dpnp_array
5555

56-
__all__ = [
57-
"are_same_logical_tensors",
58-
"asnumpy",
59-
"as_usm_ndarray",
60-
"check_limitations",
61-
"check_supported_arrays_type",
62-
"default_float_type",
63-
"get_dpnp_descriptor",
64-
"get_include",
65-
"get_normalized_queue_device",
66-
"get_result_array",
67-
"get_usm_ndarray",
68-
"get_usm_ndarray_or_scalar",
69-
"is_cuda_backend",
70-
"is_supported_array_or_scalar",
71-
"is_supported_array_type",
72-
"synchronize_array_data",
73-
]
74-
7556
# pylint: disable=no-name-in-module
7657
from .dpnp_utils import (
7758
dpnp_descriptor,

0 commit comments

Comments
 (0)