



def  __lowerCamelCase (       lowerCamelCase__						):

				"""simple docstring"""


				return str(lowerCamelCase__						) == str(lowerCamelCase__						)[::-1]


def  __lowerCamelCase (       lowerCamelCase__						):

				"""simple docstring"""


				return int(lowerCamelCase__						) + int(str(lowerCamelCase__						)[::-1]						)


def  __lowerCamelCase (       lowerCamelCase__ = 10_000						):

				"""simple docstring"""


				lowercase__					:   Optional[int]													=					[]
				for num in range(1					,			lowerCamelCase__						):
								lowercase__					:   Tuple													=					0
								lowercase__					:   int													=					num
								while iterations < 50:
												lowercase__					:   Optional[int]													=					sum_reverse(lowerCamelCase__						)
												iterations += 1
												if is_palindrome(lowerCamelCase__						):
																break
								else:
												lychrel_nums.append(lowerCamelCase__						)
				return len(lowerCamelCase__						)


if __name__ == "__main__":
				print(f'''{solution() = }''')









from typing import Union

import fire
import torch
from tqdm import tqdm


def  __lowerCamelCase (       lowerCamelCase__					,			lowerCamelCase__ = "cpu"					,			lowerCamelCase__ = None						):

				"""simple docstring"""


				lowercase__					:   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"						)
								lowercase__					:   int													=					v.half()
				if save_path is None:  # overwrite src_path
								lowercase__					:   Optional[Any]													=					src_path
				torch.save(lowerCamelCase__					,			lowerCamelCase__						)


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




