| 552 | } |
| 553 | |
| 554 | Status 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 | |
| 563 | Status CheckStrides(int strides_h, int strides_w) { |
| 564 | if (strides_h <= 0 || strides_w <= 0) { |
no test coverage detected