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 8b81716 commit 67bba1eCopy full SHA for 67bba1e
tests/examples/test_gemm_all_scatter.py
@@ -7,10 +7,16 @@
7
import iris
8
9
import importlib.util
10
+import sys
11
from pathlib import Path
12
13
current_dir = Path(__file__).parent
14
15
+# Add the repository root to Python path so relative imports work
16
+repo_root = current_dir.parent.parent
17
+if str(repo_root) not in sys.path:
18
+ sys.path.insert(0, str(repo_root))
19
+
20
# Import the matmul wrapper
21
matmul_path = (current_dir / "../../examples/07_gemm_all_scatter/matmul_wrapper.py").resolve()
22
matmul_spec = importlib.util.spec_from_file_location("matmul_wrapper", matmul_path)
0 commit comments