static */
| 173 | } |
| 174 | |
| 175 | /* static */ std::unique_ptr<std::vector<float>> |
| 176 | ReferenceUtil::ReduceWindow1DAdd(absl::Span<const float> operand, float init, |
| 177 | absl::Span<const int64> window, |
| 178 | absl::Span<const int64> stride, |
| 179 | Padding padding) { |
| 180 | const auto add_reduce = [](float arg1, float arg2) { return arg1 + arg2; }; |
| 181 | std::vector<int64> dim_lengths{static_cast<int64>(operand.size())}; |
| 182 | return ReduceWindow1DGeneric( |
| 183 | operand, init, add_reduce, window, stride, |
| 184 | xla::MakePadding(dim_lengths, window, stride, padding)); |
| 185 | } |
| 186 | |
| 187 | /* static */ std::unique_ptr<Array3D<float>> ReferenceUtil::ReduceWindow3DAdd( |
| 188 | const Array3D<float>& operand, float init, absl::Span<const int64> window, |
nothing calls this directly
no test coverage detected