code: public static void validateCnn1DKernelStridePadding(int kernel, int stride, int padding) {
  
          if (kernel <= 0) {
              throw new IllegalStateException("Invalid kernel size: value must be positive (> 0). Got: " + kernel);
          }
          if (stride <= 0) {
              throw new IllegalStateException("Invalid kernel size: value must be positive (> 0). Got: " + stride);
  
          }
          if (padding < 0) {
              throw new IllegalStateException("Invalid kernel size: value must be positive (> 0). Got: " + padding);
          }
      }
docs: Perform validation on the CNN layer kernel/stride/padding. Expect int, with values > 0 for kernel size and
  stride, and values >= 0 for padding.
  
  @param kernel  Kernel size  to check
  @param stride  Stride to check
  @param padding Padding to check