Skip to content

Commit 96aed3d

Browse files
committed
clarify deprecation warning
1 parent 0865758 commit 96aed3d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

dpctl/tensor/__init__.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,9 @@
213213
# deprecation warning for the dpctl.tensor module
214214
_warnings.warn(
215215
"dpctl.tensor is deprecated since dpctl 0.21.1 and will be removed in a "
216-
"future release. Install dpnp and use 'import dpnp.tensor' instead.",
216+
"future release. The functionality will be moved to separate package, dpnp "
217+
"(see: https://github.com/IntelPython/dpnp). After that, use "
218+
"'import dpnp.tensor' instead.",
217219
DeprecationWarning,
218220
stacklevel=2,
219221
)
@@ -413,8 +415,10 @@ def __getattr__(name: str): # pragma: no cover
413415
if name in __all__:
414416
_warnings.warn(
415417
f"dpctl.tensor.{name} is deprecated; dpctl.tensor is deprecated "
416-
"since dpctl 0.21.1 and will be removed in a future release. "
417-
"Install dpnp and use 'import dpnp.tensor' instead.",
418+
"since dpctl 0.21.1 and will be removed in a future release. The "
419+
"functionality will be moved to separate package, dpnp (see: "
420+
"https://github.com/IntelPython/dpnp). After that, use 'import "
421+
"dpnp.tensor' instead.",
418422
DeprecationWarning,
419423
stacklevel=2,
420424
)

0 commit comments

Comments
 (0)