Skip to content

Commit ff376d8

Browse files
author
Chuyang Deng
committed
fix import error
1 parent fa84753 commit ff376d8

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

tests/conftest.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
from sagemaker.pytorch import PyTorch
2828
from sagemaker.rl import RLEstimator
2929
from sagemaker.sklearn.defaults import SKLEARN_VERSION
30-
from sagemaker.tensorflow.defaults import _LATEST_1X_VERSION, LATEST_VERSION, LATEST_SERVING_VERSION
30+
from sagemaker.tensorflow import TensorFlow
31+
from sagemaker.tensorflow.defaults import LATEST_VERSION, LATEST_SERVING_VERSION
3132

3233
DEFAULT_REGION = "us-west-2"
3334
CUSTOM_BUCKET_NAME_PREFIX = "sagemaker-custom-bucket"
@@ -259,7 +260,7 @@ def sklearn_full_version(request):
259260
return request.config.getoption("--sklearn-full-version")
260261

261262

262-
@pytest.fixture(scope="module", params=[_LATEST_1X_VERSION, LATEST_VERSION])
263+
@pytest.fixture(scope="module", params=[TensorFlow._LATEST_1X_VERSION, LATEST_VERSION])
263264
def tf_full_version(request):
264265
tf_version = request.config.getoption("--tf-full-version")
265266
if tf_version is None:

tests/integ/test_tuner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
from sagemaker.predictor import json_deserializer
3838
from sagemaker.pytorch import PyTorch
3939
from sagemaker.tensorflow import TensorFlow
40-
from sagemaker.tensorflow.defaults import _LATEST_1X_VERSION, LATEST_VERSION
40+
from sagemaker.tensorflow.defaults import LATEST_VERSION
4141
from sagemaker.tuner import (
4242
IntegerParameter,
4343
ContinuousParameter,
@@ -52,7 +52,7 @@
5252

5353
DATA_PATH = os.path.join(DATA_DIR, "iris", "data")
5454

55-
PY37_SUPPORTED_FRAMEWORK_VERSION = [_LATEST_1X_VERSION, LATEST_VERSION]
55+
PY37_SUPPORTED_FRAMEWORK_VERSION = [TensorFlow._LATEST_1X_VERSION, LATEST_VERSION]
5656

5757

5858
@pytest.fixture(scope="module")

0 commit comments

Comments
 (0)