From 1b1c46ebe85cb0cb0b182c87d896d6499a13b581 Mon Sep 17 00:00:00 2001 From: Deven Desai Date: Tue, 29 Oct 2019 17:03:52 +0000 Subject: [PATCH] disabling subtests that test 3D pooling ops, and removing the no_rocm tag from //tensorflow/cc:gradients_nn_grad_test --- tensorflow/cc/gradients/nn_grad_test.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tensorflow/cc/gradients/nn_grad_test.cc b/tensorflow/cc/gradients/nn_grad_test.cc index f5a09e09dcd..942ec08f451 100644 --- a/tensorflow/cc/gradients/nn_grad_test.cc +++ b/tensorflow/cc/gradients/nn_grad_test.cc @@ -259,6 +259,9 @@ TEST_F(NNGradTest, MaxPoolGradV2Helper) { RunTest(x, x_init_value, y, y_shape); } +// TODO(rocm): +// Re-enable this test once 3D pooling is supported on ROCm platform +#ifndef TENSORFLOW_USE_ROCM TEST_F(NNGradTest, MaxPool3DGradHelper) { TensorShape x_shape({1, 3, 3, 3, 1}); TensorShape y_shape({1, 1, 1, 1, 1}); @@ -271,6 +274,7 @@ TEST_F(NNGradTest, MaxPool3DGradHelper) { SetRandomValuesForMaxPooling(&x_init_value); RunTest(x, x_init_value, y, y_shape); } +#endif TEST_F(NNGradTest, AvgPoolGradHelper) { TensorShape x_shape({1, 2, 2, 1}); @@ -283,6 +287,9 @@ TEST_F(NNGradTest, AvgPoolGradHelper) { RunTest(x, x_shape, y, y_shape); } +// TODO(rocm): +// Re-enable this test once 3D pooling is supported on ROCm platform +#ifndef TENSORFLOW_USE_ROCM TEST_F(NNGradTest, AvgPool3DGradHelper) { TensorShape x_shape({1, 3, 3, 3, 1}); TensorShape y_shape({1, 1, 1, 1, 1}); @@ -293,6 +300,7 @@ TEST_F(NNGradTest, AvgPool3DGradHelper) { auto y = AvgPool3D(scope_, x, ksize, strides, "SAME"); RunTest(x, x_shape, y, y_shape); } +#endif TEST_F(NNGradTest, LRN) { TensorShape x_shape({1, 1, 2, 1});