def sym_has_params(sym, input_names):
  """ Judge if a model has parameters.

  Args:
    sym: A Symbol instance of the model.
    input_names: A list of input tensor names.

  Return:
    True for the model has parameters and Flase for not.
  """
  args = set(sym.list_arguments())
  params = args - set(input_names)
  ret = True
  if not params:
  #if len(params) == 0:
    ret = False
  return ret