[ROCm] Fix for the broken ROCm CSB.
The following commit breaks the --config=rocm build
https://github.com/tensorflow/tensorflow/commit/f72695e1717a545bfc898b7230cc195bf28b43df
The above commit adds a couple of subtests that require support for the `StatefulUnirformFullInt` Op on the GPU. Currently ROCm does not support that Op on the GPU, which leads to those subtests failing.
The "fix" is to skip those subtests on the ROCm platform.
diff --git a/tensorflow/python/keras/layers/image_preprocessing_test.py b/tensorflow/python/keras/layers/image_preprocessing_test.py
index d33acbf..c25435a 100644
--- a/tensorflow/python/keras/layers/image_preprocessing_test.py
+++ b/tensorflow/python/keras/layers/image_preprocessing_test.py
@@ -187,6 +187,11 @@
self._run_test(expected_height, expected_width)
def test_training_with_mock(self):
+ if test.is_built_with_rocm():
+ # TODO(rocm):
+ # re-enable this test once ROCm adds support for
+ # the StatefulUniformFullInt Op (on the GPU)
+ self.skipTest("Feature not supported on ROCm")
np.random.seed(1337)
height, width = 3, 4
height_offset = np.random.randint(low=0, high=3)
@@ -207,6 +212,11 @@
('random_crop_4_by_6', 4, 6),
('random_crop_3_by_2', 3, 2))
def test_random_crop_output_shape(self, expected_height, expected_width):
+ if test.is_built_with_rocm():
+ # TODO(rocm):
+ # re-enable this test once ROCm adds support for
+ # the StatefulUniformFullInt Op (on the GPU)
+ self.skipTest("Feature not supported on ROCm")
with CustomObjectScope({'RandomCrop': image_preprocessing.RandomCrop}):
self._run_test(expected_height, expected_width)