[XLA:GPU]: Remove unused method from all reduce test

PiperOrigin-RevId: 821742010
This commit is contained in:
Sohaib Iftikhar 2025-10-20 11:59:46 -07:00 committed by TensorFlower Gardener
parent cc9fd2b254
commit cbeeef926f

View File

@ -76,15 +76,6 @@ struct TestParams {
int64_t num_elements;
};
template <typename T>
std::vector<T> ToVector(const Array<T>& array) {
std::vector<T> result;
result.reserve(array.num_elements());
array.Each(
[&](absl::Span<const int64_t> indices, T val) { result.push_back(val); });
return result;
}
class AllReduceKernelTest : public ::testing::Test,
public ::testing::WithParamInterface<TestParams> {
public: