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 ac4e03a commit 53557d4Copy full SHA for 53557d4
numpy_array_api_compat/__init__.py
@@ -46,12 +46,14 @@
46
# These imports may overwrite names from the import * above.
47
from ._aliases import *
48
49
-# Don't know why, but we have to do this to import linalg. If we instead do
+# Don't know why, but we have to do an absolute import to import linalg. If we
50
+# instead do
51
#
52
# from . import linalg
53
-# It doesn't overwrite np.linalg from above.
54
-import numpy_array_api_compat.linalg
+# It doesn't overwrite np.linalg from above. The import is generated
55
+# dynamically so that the library can be vendored.
56
+__import__(__package__ + '.linalg')
57
58
from .linalg import matrix_transpose, vecdot
59
0 commit comments