builder_.ReduceWindow(
input,
- CreateConstantFromLiteral(*Literal::CreateR0<float>(3.0f), &builder_),
+ CreateConstantFromLiteral(*Literal::CreateR0<float>(0.0f), &builder_),
reduce_fn,
/*window_dimensions=*/{1, 1, 2, 1},
/*window_strides=*/{1, 1, 1, 1}, padding);
};
auto expected =
- ReferenceUtil::ReduceWindow4DGeneric(input_array, 3.0f, reduce_func,
+ ReferenceUtil::ReduceWindow4DGeneric(input_array, 0.0f, reduce_func,
/*window=*/{1, 1, 2, 1},
/*stride=*/{1, 1, 1, 1}, padding);
/*pad_high=*/{1, 1, 0, 0},
/*layout=*/{3, 2, 1, 0},
/*reducer=*/kAdd},
+
+ R4ReduceWindowTestData{/*base_bounds=*/{1, 1, 32768 - 3, 2},
+ /*window_bounds=*/{1, 1, 4, 1},
+ /*strides=*/{1, 1, 4, 1},
+ /*pad_low=*/{0, 0, 1, 0},
+ /*pad_high=*/{0, 0, 2, 0},
+ /*layout=*/{3, 2, 1, 0},
+ /*reducer=*/kMax},
};
INSTANTIATE_TEST_CASE_P(