We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa7e1cc commit ef1ce03Copy full SHA for ef1ce03
dpnp/backend/extensions/lapack/lapack_py.cpp
@@ -83,9 +83,10 @@ PYBIND11_MODULE(_lapack_impl, m)
83
.value("C", oneapi::mkl::transpose::C)
84
.export_values(); // Optional, allows access like `Transpose.N`
85
86
- // Register a LinAlgError exception in the current submodule
87
- py::register_exception<lapack_ext::LinAlgError>(m, "LinAlgError",
88
- PyExc_ValueError);
+ // Register a LinAlgError exception with local scope, meaning this is a
+ // module-private exception (only used in that module)
+ py::register_local_exception<lapack_ext::LinAlgError>(m, "LinAlgError",
89
+ PyExc_ValueError);
90
91
init_dispatch_vectors();
92
init_dispatch_tables();
0 commit comments