



from typing import Union

import fire
import torch
from tqdm import tqdm





def 		a__      (		_UpperCamelCase      :			str			,_UpperCamelCase      :			str = "cpu"			,_UpperCamelCase      :			Union[str, None] = None				):
   __lowerCamelCase    				=     torch.load(_UpperCamelCase			,map_location=_UpperCamelCase				)
   for k, v in tqdm(state_dict.items()				):
      if not isinstance(_UpperCamelCase			,torch.Tensor				):
         raise TypeError('''FP16 conversion only works on paths that are saved state dicts, like pytorch_model.bin'''				)
      __lowerCamelCase    				=     v.half()
   if save_path is None:  # overwrite src_path
      __lowerCamelCase    				=     src_path
   torch.save(_UpperCamelCase			,_UpperCamelCase				)


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











def 		a__      (		_UpperCamelCase      :			str				):
   if not all(x.isalpha() for x in string				):
      raise ValueError('''String must only contain alphabetic characters.'''				)

   __lowerCamelCase    				=     sorted(string.lower()				)
   return len(_UpperCamelCase				) == len(set(_UpperCamelCase				)				)


if __name__ == "__main__":
  a_								=       input("""Enter a string """).strip()

  a_								=       is_isogram(input_str)
  print(f"{input_str} is {'an' if isogram else 'not an'} isogram.")






