parameters: (inputs)
return_statement: return shapes, dtypes
docstring: Get input shape list by given inputs in Model initialization.
docstring_summary: Get input shape list by given inputs in Model initialization.
docstring_tokens: Get input shape list by given inputs in Model initialization .
function: def _update_input_info(inputs):
      "Get input shape list by given inputs in Model initialization."
      shapes = None
      dtypes = None
      if isinstance(inputs, Input):
          shapes = [list(inputs.shape)]
          dtypes = [inputs.dtype]
      elif isinstance(inputs, (list, tuple)):
          shapes = [list(input.shape) for input in inputs]
          dtypes = [input.dtype for input in inputs]
      elif isinstance(inputs, dict):
          shapes = [list(inputs[name].shape) for name in inputs]
          dtypes = [inputs[name].dtype for name in inputs]
      else:
          return None
      return shapes, dtypes
function_tokens: def _update_input_info ( inputs ) : shapes = None dtypes = None if isinstance ( inputs , Input ) : shapes = [ list ( inputs . shape ) ] dtypes = [ inputs . dtype ] elif isinstance ( inputs , ( list , tuple ) ) : shapes = [ list ( input . shape ) for input in inputs ] dtypes = [ input . dtype for input in inputs ] elif isinstance ( inputs , dict ) : shapes = [ list ( inputs [ name ] . shape ) for name in inputs ] dtypes = [ inputs [ name ] . dtype for name in inputs ] else : return None return shapes , dtypes