docstr: Generate valid partition splits of a Conv1D/2D layer.
  
  Essentially a list of divisors of the number of pixels of the output image.
  
  Args:
      out_height (int): The height of the output image
      out_width (int): The width of the output image
  
  Returns:
      list: List of valid partition splits
docstr_tok: ["Generate","valid","partition","splits","of","a","Conv1D\/2D","layer",".","Essentially","a","list","of","divisors","of","the","number","of","pixels","of","the","output","image",".","Args",":","out_height","(","int",")",":","The","height","of","the","output","image","out_width","(","int",")",":","The","width","of","the","output","image","Returns",":","list",":","List","of","valid","partition","splits"]
code: def get_valid_conv_partition_splits(self, out_height, out_width):
      """Generate valid partition splits of a Conv1D/2D layer.
  
      Essentially a list of divisors of the number of pixels of the output image.
  
      Args:
          out_height (int): The height of the output image
          out_width (int): The width of the output image
  
      Returns:
          list: List of valid partition splits
      """
      n_pixels = out_height * out_width
      valid_n_partitions = []
      for i in range(1, int(n_pixels / 2) + 1):
          if n_pixels % i == 0:
              valid_n_partitions.append(i)
      valid_n_partitions.append(n_pixels)
  
      return valid_n_partitions
  
imports: import math
  import os
  import re
  from bisect import bisect_left
  from collections.abc import Iterable
  import numpy
  from hls4ml.backends.backend import Backend
  from hls4ml.model.attributes import ChoiceAttribute, ConfigurableAttribute, TypeAttribute
  from hls4ml.model.layers import GRU, LSTM, Activation, BatchNormalization, Conv1D, Conv2D, Dense, Dot, Embedding, GarNet, GarNetStack, GlobalPooling1D, GlobalPooling2D, Pooling1D, Pooling2D, SeparableConv1D, SeparableConv2D, SimpleRNN, Softmax
  from hls4ml.model.optimizer import model_optimizer
  from hls4ml.model.types import ExponentPrecisionType, FixedPrecisionType, IntegerPrecisionType, RoundingMode, SaturationMode, XnorPrecisionType
  from hls4ml.writer import get_writer
label_desc: Use image node_id 12 for calling the FPGABackend obj's underlying member method code with example usage: obj.get_valid_conv_partition_splits(out_height, out_width) and returns: valid_n_partitions