





'''simple docstring'''




def 	UpperCAmelCase_							(					__lowercase							:      list       )		->       list:


     '''simple docstring'''



     if len(__lowercase       ) <= 1:
          return lst

     _UpperCAmelCase     							=   1

     while i < len(__lowercase       ):
          if lst[i - 1] <= lst[i]:
               i += 1
          else:
               _UpperCAmelCase							,  _UpperCAmelCase     							=   lst[i], lst[i - 1]
               i -= 1
               if i == 0:
                    _UpperCAmelCase     							=   1

     return lst


if __name__ == "__main__":
  __SCREAMING_SNAKE_CASE     :Tuple       =				input('''Enter numbers separated by a comma:\n''').strip()
  __SCREAMING_SNAKE_CASE     :List[str]       =				[int(item) for item in user_input.split(''',''')]
  print(gnome_sort(unsorted))









"""simple docstring"""







from typing import Union

import fire
import torch
from tqdm import tqdm

def 				UpperCamelCase_    (    lowerCAmelCase__      :				str    ,   lowerCAmelCase__      :				str = "cpu"    ,   lowerCAmelCase__      :				Union[str, None] = None						)						->   None:

  """simple docstring"""




  lowerCAmelCase_   :				Any								= torch.load(lowerCAmelCase__    ,   map_location=lowerCAmelCase__						)
  for k, v in tqdm(state_dict.items()						):
    if not isinstance(lowerCAmelCase__    ,   torch.Tensor						):
      raise TypeError('FP16 conversion only works on paths that are saved state dicts, like pytorch_model.bin'						)
    lowerCAmelCase_   :				str								= v.half()
  if save_path is None:  # overwrite src_path
    lowerCAmelCase_   :				Dict								= src_path
  torch.save(lowerCAmelCase__    ,   lowerCAmelCase__						)


if __name__ == "__main__":
     fire.Fire(convert)





