| 561 | } |
| 562 | |
| 563 | Status 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 | |
| 572 | Status CheckDilation(int dilation_h, int dilation_w) { |
| 573 | if (dilation_h <= 0 || dilation_w <= 0) { |
no test coverage detected