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

Method WindowCount

tensorflow/compiler/xla/reference_util.cc:134–141  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

132}
133
134/* static */ int64 ReferenceUtil::WindowCount(int64 unpadded_width,
135 int64 window_len, int64 stride,
136 Padding padding) {
137 if (padding == Padding::kValid) {
138 return window_util::StridedBound(unpadded_width, window_len, stride);
139 }
140 return tensorflow::MathUtil::CeilOfRatio(unpadded_width, stride);
141}
142
143/* static */ std::unique_ptr<std::vector<float>>
144ReferenceUtil::ReduceWindow1DGeneric(

Callers

nothing calls this directly

Calls 2

StridedBoundFunction · 0.85
CeilOfRatioFunction · 0.70

Tested by

no test coverage detected