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

Method ReduceWindow4DGeneric

tensorflow/compiler/xla/reference_util.cc:231–242  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

229}
230
231/* static */ std::unique_ptr<Array4D<float>>
232ReferenceUtil::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>>
245ReferenceUtil::ReduceWindow4DGeneric(

Callers

nothing calls this directly

Calls 7

MakePaddingFunction · 0.85
StridedBoundFunction · 0.85
n4Method · 0.80
n1Method · 0.45
n2Method · 0.45
n3Method · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected