MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / ReduceWindow1DAdd

Method ReduceWindow1DAdd

tensorflow/compiler/xla/reference_util.cc:175–185  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

173}
174
175/* static */ std::unique_ptr<std::vector<float>>
176ReferenceUtil::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,

Callers

nothing calls this directly

Calls 2

MakePaddingFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected