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

Function HasPadding

tensorflow/compiler/xla/window_util.cc:147–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147bool HasPadding(const Window& window) {
148 for (const auto& dim : window.dimensions()) {
149 if (dim.padding_low() != 0 || dim.padding_high() != 0) {
150 return true;
151 }
152 }
153 return false;
154}
155
156bool HasSymmetricPadding(const Window& window) {
157 return absl::c_all_of(window.dimensions(), [](const WindowDimension& dim) {

Callers 3

ToStringFunction · 0.85
HandleReduceWindowMethod · 0.85
SimplifyConvToDotMethod · 0.85

Calls 1

dimensionsMethod · 0.45

Tested by

no test coverage detected