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

Function IsTrivialWindowDimension

tensorflow/compiler/xla/window_util.cc:217–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217bool IsTrivialWindowDimension(const WindowDimension& window_dimension) {
218 return window_dimension.size() == 1 && window_dimension.stride() == 1 &&
219 window_dimension.padding_low() == 0 &&
220 window_dimension.padding_high() == 0 &&
221 window_dimension.window_dilation() == 1 &&
222 window_dimension.base_dilation() == 1;
223}
224
225bool HasOverlappingWindow(const Window& window) {
226 for (const auto& dim : window.dimensions()) {

Callers 3

HandleReduceWindowMethod · 0.85
InferWindowOutputShapeFunction · 0.85

Calls 2

sizeMethod · 0.45
strideMethod · 0.45

Tested by

no test coverage detected