parameters: (self, paddings)
docstring: Initialize Pad
docstring_summary: Initialize Pad
docstring_tokens: Initialize Pad
function: def __init__(self, paddings):
          """Initialize Pad"""
          self.init_prim_io_names(inputs=['x'], outputs=['y'])
          if not isinstance(paddings, tuple):
              raise TypeError(f"For '{self.name}', the type of 'paddings' must be tuple, "
                              f"but got {type(paddings)}.")
          for item in paddings:
              if len(item) != 2:
                  raise ValueError(f"For '{self.name}', the shape of 'paddings' must be (n, 2), "
                                   f"but got {paddings}.")
          self.paddings = paddings
function_tokens: def __init__ ( self , paddings ) : self . init_prim_io_names ( inputs = [ 'x' ] , outputs = [ 'y' ] ) if not isinstance ( paddings , tuple ) : raise TypeError ( f"For '{self.name}', the type of 'paddings' must be tuple, " f"but got {type(paddings)}." ) for item in paddings : if len ( item ) != 2 : raise ValueError ( f"For '{self.name}', the shape of 'paddings' must be (n, 2), " f"but got {paddings}." ) self . paddings = paddings