mirror of
https://github.com/zebrajr/tensorflow.git
synced 2025-12-06 00:19:58 +01:00
[XLA:GPU]: Remove unused method from all reduce test
PiperOrigin-RevId: 821742010
This commit is contained in:
parent
cc9fd2b254
commit
cbeeef926f
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user