static */
| 229 | } |
| 230 | |
| 231 | /* static */ std::unique_ptr<Array4D<float>> |
| 232 | ReferenceUtil::ReduceWindow4DGeneric( |
| 233 | const Array4D<float>& operand, float init, |
| 234 | const std::function<float(float, float)>& reduce_func, |
| 235 | absl::Span<const int64> window, absl::Span<const int64> stride, |
| 236 | Padding padding) { |
| 237 | std::vector<int64> dim_lengths{operand.n1(), operand.n2(), operand.n3(), |
| 238 | operand.n4()}; |
| 239 | return ReduceWindow4DGeneric( |
| 240 | operand, init, reduce_func, window, stride, |
| 241 | xla::MakePadding(dim_lengths, window, stride, padding)); |
| 242 | } |
| 243 | |
| 244 | /* static */ std::unique_ptr<Array4D<float>> |
| 245 | ReferenceUtil::ReduceWindow4DGeneric( |
nothing calls this directly
no test coverage detected