


'''simple docstring'''

from typing import Union

import fire
import torch
from tqdm import tqdm





def lowerCamelCase      (      lowerCAmelCase    :     str		,		lowerCAmelCase    :     str = "cpu"		,		lowerCAmelCase    :     Union[str, None] = None		):





	"""simple docstring"""







	__magic_name__	:   Tuple					     =					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'		)
		__magic_name__	:   Optional[int]					     =					v.half()
	if save_path is None:  # overwrite src_path
		__magic_name__	:   Optional[int]					     =					src_path
	torch.save(lowerCAmelCase		,		lowerCAmelCase		)


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



'''simple docstring'''

def lowerCamelCase      (      lowerCAmelCase    :     str		):





	"""simple docstring"""







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

	__magic_name__	:   int					     =					sorted(string.lower()		)
	return len(lowerCAmelCase		) == len(set(lowerCAmelCase		)		)


if __name__ == "__main__":
							lowerCAmelCase				:Any        =      input('''Enter a string ''').strip()

							lowerCAmelCase				:List[Any]        =      is_isogram(input_str)
							print(F'{input_str} is {"an" if isogram else "not an"} isogram.')