diff --git a/tensorflow/python/keras/integration_test/BUILD b/tensorflow/python/keras/integration_test/BUILD index 80d8fb86345..faf8894f813 100644 --- a/tensorflow/python/keras/integration_test/BUILD +++ b/tensorflow/python/keras/integration_test/BUILD @@ -75,6 +75,7 @@ cuda_py_test( name = "gradient_checkpoint_test", srcs = ["gradient_checkpoint_test.py"], python_version = "PY3", + tags = ["no_rocm"], deps = [ "//tensorflow:tensorflow_py", "//tensorflow/python:extra_py_tests_deps", diff --git a/tensorflow/python/keras/integration_test/gradient_checkpoint_test.py b/tensorflow/python/keras/integration_test/gradient_checkpoint_test.py index 100f3ca2022..9d9e0a062b3 100644 --- a/tensorflow/python/keras/integration_test/gradient_checkpoint_test.py +++ b/tensorflow/python/keras/integration_test/gradient_checkpoint_test.py @@ -75,7 +75,7 @@ def _limit_gpu_memory(): if gpus: tf.config.experimental.set_virtual_device_configuration( gpus[0], - [tf.config.experimental.VirtualDeviceConfiguration(memory_limit=1152)]) + [tf.config.experimental.VirtualDeviceConfiguration(memory_limit=1024)]) return True return False diff --git a/tensorflow/python/keras/optimizer_v2/BUILD b/tensorflow/python/keras/optimizer_v2/BUILD index 9e844b41332..be793378538 100644 --- a/tensorflow/python/keras/optimizer_v2/BUILD +++ b/tensorflow/python/keras/optimizer_v2/BUILD @@ -105,6 +105,7 @@ cuda_py_test( size = "medium", srcs = ["adam_test.py"], shard_count = 4, + tags = ["no_rocm"], deps = [ ":optimizer_v2", "//tensorflow/python:client_testlib",