Skip to content

Commit e7a06a2

Browse files
committed
fix: pin tf version in tests
1 parent 8fb08aa commit e7a06a2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tests/data/tensorflow_mnist/mnist_v2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def main(args):
198198

199199
if args.current_host == args.hosts[0]:
200200
ckpt_manager.save()
201-
net.save("/opt/ml/model/1.keras")
201+
net.save("/opt/ml/model/1")
202202

203203

204204
if __name__ == "__main__":

tests/integ/test_tf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def _create_and_fit_estimator(sagemaker_session, tf_version, py_version, instanc
278278
instance_count=2,
279279
instance_type=instance_type,
280280
sagemaker_session=sagemaker_session,
281-
framework_version=tf_version,
281+
framework_version="2.14",
282282
py_version=py_version,
283283
distribution=PARAMETER_SERVER_DISTRIBUTION,
284284
disable_profiler=True,

tests/integ/test_tuner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ def test_tuning_tf(
701701
instance_count=1,
702702
instance_type=cpu_instance_type,
703703
sagemaker_session=sagemaker_session,
704-
framework_version=tensorflow_training_latest_version,
704+
framework_version="2.14",
705705
py_version=tensorflow_training_latest_py_version,
706706
)
707707

@@ -749,7 +749,7 @@ def test_tuning_tf_vpc_multi(
749749
entry_point=script_path,
750750
source_dir=resource_path,
751751
role="SageMakerRole",
752-
framework_version=tensorflow_training_latest_version,
752+
framework_version="2.14",
753753
py_version=tensorflow_training_latest_py_version,
754754
instance_count=instance_count,
755755
instance_type=instance_type,

0 commit comments

Comments
 (0)