File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
cuda_core/cuda/core/experimental Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 1313
1414"""
1515
16- import warnings
17-
1816
1917def _warn_deprecated ():
2018 """Emit a deprecation warning for using the experimental namespace.
@@ -23,6 +21,7 @@ def _warn_deprecated():
2321 Subsequent accesses to attributes (like utils, Device, etc.) do not trigger
2422 additional warnings since they are already set in the module namespace.
2523 """
24+ import warnings
2625 warnings .warn (
2726 "The cuda.core.experimental namespace is deprecated. "
2827 "Please import directly from cuda.core instead. "
@@ -37,7 +36,6 @@ def _warn_deprecated():
3736# Import from new locations and re-export
3837_warn_deprecated ()
3938
40- del warnings
4139
4240from cuda .core import utils # noqa: E402
4341from cuda .core ._device import Device # noqa: E402
You can’t perform that action at this time.
0 commit comments