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

Function CheckStrides

tensorflow/lite/delegates/gpu/common/model_builder.cc:563–570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

561}
562
563Status CheckStrides(int strides_h, int strides_w) {
564 if (strides_h <= 0 || strides_w <= 0) {
565 return InvalidArgumentError(absl::StrFormat(
566 "Incorrect stride values: stride_height = %d, stride_width = %d.",
567 strides_h, strides_w));
568 }
569 return OkStatus();
570}
571
572Status CheckDilation(int dilation_h, int dilation_w) {
573 if (dilation_h <= 0 || dilation_w <= 0) {

Callers 4

CheckStridesAndDilationFunction · 0.85
CheckKernelsAndStridesFunction · 0.85
IsSupportedMethod · 0.85
IsSupportedMethod · 0.85

Calls 2

OkStatusFunction · 0.85
InvalidArgumentErrorFunction · 0.70

Tested by

no test coverage detected