Skip to content

Commit 6bf651f

Browse files
committed
Add: Add pathwayutils to core in pyproject.toml to bypass modul import error
1 parent e4091bb commit 6bf651f

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

axlearn/common/test_utils.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@
1515
from typing import Any, NamedTuple, Optional, Protocol, TypeVar, Union
1616
from unittest.mock import patch
1717

18-
# For bypass pathwaysutil import error
19-
import sys
20-
from unittest.mock import MagicMock
21-
fakePathwaysuitls = MagicMock()
22-
sys.modules['pathwaysutils'] = fakePathwaysuitls
23-
2418
import jax
2519
import jax.random
2620
import numpy as np

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ core = [
3333
"optax==0.2.6", # Fix for TPU 7x
3434
"portpicker",
3535
"pyarrow<21.0.0", # Pin to v20.x to avoid PyExtensionType -> ExtensionType breaking change in v21
36+
"pathwaysutils @ git+https://github.com/AI-Hypercomputer/pathways-utils.git",
3637
"protobuf>4",
3738
"tensorboard-plugin-profile==2.20.4",
3839
# This has both x86 and arm64 wheels. Underneath the hood it uses tensorflow-macos since 2.13.

0 commit comments

Comments
 (0)