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

Function CheckKernels

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

Source from the content-addressed store, hash-verified

552}
553
554Status CheckKernels(int kernel_h, int kernel_w) {
555 if (kernel_h <= 0 || kernel_w <= 0) {
556 return InvalidArgumentError(absl::StrFormat(
557 "Incorrect kernel values: kernel_height = %d, kernel_width = %d.",
558 kernel_h, kernel_w));
559 }
560 return OkStatus();
561}
562
563Status CheckStrides(int strides_h, int strides_w) {
564 if (strides_h <= 0 || strides_w <= 0) {

Callers 1

CheckKernelsAndStridesFunction · 0.85

Calls 2

OkStatusFunction · 0.85
InvalidArgumentErrorFunction · 0.70

Tested by

no test coverage detected