diff --git a/tests/data/tensorflow_mnist/mnist_v2.py b/tests/data/tensorflow_mnist/mnist_v2.py index bf1750b386..05467dee49 100644 --- a/tests/data/tensorflow_mnist/mnist_v2.py +++ b/tests/data/tensorflow_mnist/mnist_v2.py @@ -198,7 +198,7 @@ def main(args): if args.current_host == args.hosts[0]: ckpt_manager.save() - net.save("/opt/ml/model/1.keras") + net.save("/opt/ml/model/1") if __name__ == "__main__": diff --git a/tests/integ/test_tf.py b/tests/integ/test_tf.py index b03b0e60ec..8befd0efeb 100644 --- a/tests/integ/test_tf.py +++ b/tests/integ/test_tf.py @@ -85,6 +85,11 @@ def test_mnist_with_checkpoint_config( tensorflow_training_latest_version, tensorflow_training_latest_py_version, ): + if Version(tensorflow_training_latest_version) >= Version("2.16"): + pytest.skip( + "This test is failing in TensorFlow 2.16 beacuse of an upstream bug: " + "https://github.com/tensorflow/io/issues/2039" + ) checkpoint_s3_uri = "s3://{}/checkpoints/tf-{}".format( sagemaker_session.default_bucket(), sagemaker_timestamp() ) @@ -235,6 +240,11 @@ def test_mnist_distributed_cpu( tensorflow_training_latest_version, tensorflow_training_latest_py_version, ): + if Version(tensorflow_training_latest_version) >= Version("2.16"): + pytest.skip( + "This test is failing in TensorFlow 2.16 beacuse of an upstream bug: " + "https://github.com/tensorflow/io/issues/2039" + ) _create_and_fit_estimator( sagemaker_session, tensorflow_training_latest_version, diff --git a/tests/integ/test_tuner.py b/tests/integ/test_tuner.py index 3a41ea0094..78e1e50180 100644 --- a/tests/integ/test_tuner.py +++ b/tests/integ/test_tuner.py @@ -19,6 +19,7 @@ import numpy as np import pytest from botocore.exceptions import ClientError +from packaging.version import Version import tests.integ from sagemaker import KMeans, LDA, RandomCutForest, image_uris @@ -691,6 +692,11 @@ def test_tuning_tf( tensorflow_training_latest_version, tensorflow_training_latest_py_version, ): + if Version(tensorflow_training_latest_version) >= Version("2.16"): + pytest.skip( + "This test is failing in TensorFlow 2.16 beacuse of an upstream bug: " + "https://github.com/tensorflow/io/issues/2039" + ) resource_path = os.path.join(DATA_DIR, "tensorflow_mnist") script_path = "mnist.py" @@ -735,6 +741,11 @@ def test_tuning_tf_vpc_multi( tensorflow_training_latest_py_version, ): """Test Tensorflow multi-instance using the same VpcConfig for training and inference""" + if Version(tensorflow_training_latest_version) >= Version("2.16"): + pytest.skip( + "This test is failing in TensorFlow 2.16 beacuse of an upstream bug: " + "https://github.com/tensorflow/io/issues/2039" + ) instance_type = cpu_instance_type instance_count = 2