From fb10df08e8a53cfae51dd693d40504ff6179b633 Mon Sep 17 00:00:00 2001 From: Michael Kuperstein Date: Thu, 16 Aug 2018 15:12:02 -0700 Subject: Add a ReduceWindow test with a large window. PiperOrigin-RevId: 209056517 --- tensorflow/compiler/xla/tests/BUILD | 1 + tensorflow/compiler/xla/tests/reduce_window_test.cc | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/tensorflow/compiler/xla/tests/BUILD b/tensorflow/compiler/xla/tests/BUILD index 76f2e519ae..49c7c680fc 100644 --- a/tensorflow/compiler/xla/tests/BUILD +++ b/tensorflow/compiler/xla/tests/BUILD @@ -1156,6 +1156,7 @@ xla_test( name = "reduce_window_test", timeout = "long", srcs = [], + shard_count = 20, tags = [ "enable_for_xla_interpreter", "optonly", diff --git a/tensorflow/compiler/xla/tests/reduce_window_test.cc b/tensorflow/compiler/xla/tests/reduce_window_test.cc index 92c93f08b2..cae029fd70 100644 --- a/tensorflow/compiler/xla/tests/reduce_window_test.cc +++ b/tensorflow/compiler/xla/tests/reduce_window_test.cc @@ -1261,6 +1261,12 @@ struct R1ReduceWindowTestData { /*pad_low=*/{5}, /*pad_high=*/{0}, /*reducer=*/Reducer::kAdd}, + + {/*base_bounds=*/{4096}, /*window_bounds=*/{4096}, + /*strides=*/{1}, + /*pad_low=*/{4095}, + /*pad_high=*/{0}, + /*reducer=*/Reducer::kMax}, }; string R1ReduceWindowTestDataToString( -- cgit v1.2.3